Hui’s World ! – An Excel Project of Global Scale.

Share

Facebook
Twitter
LinkedIn

Following the completion of my 3D Dancing Pendulum in 2011 I have had three follow up Excel projects in mind.

This post explores the first of them, Hui’s World.

Hui’s World is an animated Excel Chart which displays the Earth and key features.

 

Hui’s World consists on an Excel chart comprising 111 series containing 2,775 data points. The 111 series are supported by 380 Named Formula. The rotation is driven by 10 lines of VBA code.

Hui’s World displays the following items:

  • The planar projection of the World as a Sphere with a select number of countries/continents;
  • The lines of Latitude and Longitude, International Date Line and Greenwich datum line (Prime meridian) and Arctic/Antarctic circles;
  • Major cities throughout the world;
  • The location of all the Chandoo.org Excel Ninja’s;
  • The States boundaries and State Capital cities in Australia;
  • Labels of Latitude, Longitude and Key Global points and optionally;
  • A User Defined Location (Marker and Label)

The globe can be rotated manually or animated with user control of the speed and direction of the rotation.

Many of the above items can be toggled to be displayed or be hidden, even as the globe turns using toggle buttons.

The Country boundaries, Cities and Lines of Longitude can be shown as if the earth is transparent or they can be hidden as they pass around the back of the earth from your view point.

There are a number of predefined views for major countries/continents and other features.

This post will look at how Hui’s World was constructed.

It will not be focusing on the math behind model, but that will be mentioned from time to time where it is important.

Apology: In simplifying the world to 2,775 points, compromises have been made. So if your Country, City etc is missing, simplified or merged to your neighboring countries I apologize in advance.

Download

If you want to download Hui’s World click here: Download Hui’s WorldDownload Hui’s World Pre Excel 2007

If you want to download the Helper File click here: Download Hui’s World Helper File


Coordinate System

Hui’s World uses an Excel Scatter Chart as the basis of the Chart.

Excel scatter charts do not understand latitudes and longitudes, they only understand a standard orthogonal x & y grid. As such we need to convert the data into the system that Excel understands.

Excel performs the trigonometry functions according to the Anti-clockwise rule.

The World uses a similar coordinate system where the base or 0 Azimuth is the Greenwich time line. All Azimuth values are taken from here.

As such we can use the Latitude and Longitudes for the locations and apply some math to work out where things should be plotted.

As such we need to determine the Location of each point of each data item and how it will be plotted on a 2D X/Y plane. I have assumed that we will look at the globe from a point level with the equator.


Data

Data was required for the location of all the elements required to be displayed. Data for the project was sourced from freely available sources.

This includes:

DataSource
Countrieshttps://www.naturalearthdata.com/
http://thematicmapping.org/downloads/world_borders.php
Citieshttps://www.worldatlas.com/travelaids/citysearch.html
Circles of the Earthhttps://en.wikipedia.org/wiki/Circle_of_latitude
Date Linehttps://ithoughthecamewithyou.com/post/international-date-line-longitude-latitude-coordinates

Even though the Country data is Low Resolution, the original file still contained 26,264 points.

Before I even started I knew that I would have to simplify this data set, if for no other reason than moving twenty thousand points in an Excel chart would have speed implications.

As a Mining Engineer I have access to a number of mining / GIS related software tools.

I used one of these, to allow me to import the various GIS files, edit the files and save the edited data out as a CSV file type.

I could have also used any CAD style program just as simply.


World Coordinates

The World Country Co-ordinates file was a CSV File containing the Latitude and Longitude coordinates and Names for all the worlds countries.

As a CSV File I imported it into a mine planning package as X & Y values.

Next I manually digitised around the key countries and continents I wanted to display. Whilst digitising I snapped to points to ensure a basic level of geographical accuracy.

This resulted in a simpler file that now only contained 1,400 points.

The new simpler file was written out as a CSV file.

Most CAD package could have been used to perform this.

In fact a number of Free Online websites also offer SHP to CSV file conversion

eg: https://mygeodata.cloud/converter/shp-to-csv

Working with the Latitudes and Longitudes in an X/Y Display system results in the file being displayed in an Equirectangular projection, with exaggerated distances in the Lower and Higher Latitudes. ie: Greenland isn’t that large. In this case that doesn’t matter as the resultant file is saved in Latitudes and Longitudes and it is the Latitudes and Longitudes that are read into Excel and then converted to X/Y values on a Spherical projection where they appear in the correct locations.

Australian Coordinates

I repeated the process for Australia and included the states. This took the source file with 108,000 data points down to a manageable 210 data points.

This data was also written out as a CSV file.

These CSV File contained columns of Line ID, Latitudes, Longitudes and sometimes other data.

ie: ID 1 in the first column above is Western Australia and ID 2 is Northern Territory etc

International Time Line and Major Cities

I used a similar process to that described above downloading a set of co-ordinates for the International Date Line as well as Major Cities of the world.

Chandoo.org Ninja Location Data

The Chandoo.org Ninja locations was sourced from Chandoo.org and the Cities coordinates manually sourced from World Atlas.com and saved in Excel.


Import and Standardisation of Data

The text files above were imported into Excel as Comma Delimitered Text Files and cleaned up.

Header and Footer lines were removed, Segment break lines were cleared and The Names were shifted to the First Column.

Next was to standardise the data.

The GIS data downloaded came in a number of formats. Most typically Longitudes are expressed in terms of Degrees East (positive) and Degrees West (negative) from the Prime Meridian.

For the purposes of use in Excel it was simpler to simply have the Longitudes expressed as degrees of a circle ie: starting at 0 deg at the Prime Meridian and extending to 360 deg. I choose to use East as Positive as I am used to having Perth as +115 Deg in my day job.

This was done using a helper column where required.

Eg: E3: =360+D3

Similarily with Latitudes, some data was sourced where zero degrees was North pole and 180 deg was the South pole.

See Column B below

The data was standardised to have Zero degrees at the equator with positive 90 Deg at the North Pole and –90 Deg at the South Pole.

Once again helper cells were used if required to transform the data to this format.

Note the Formula in C1043: =90-B1043

Any system of locations could have been used. I just choose to use what I am familiar with. With other coordinate systems the math would need to be set up accordingly.


Use of Named Formula

To add animation to the system we will need to have the following data sets

  • Original data, Latitudes and Longitudes
  • Transformation data, Details of the required view azimuth
  • Transformed data, The transformed data after the Transformation data is applied to the Original data.
  • Projected data, The Projection of the transformed data onto a 2D viewing plane

Once we have the projected data we can plot the data.

By changing the transformation data above and recalculating the worksheet, the chart will update and give the user the impression of animation.

But for this to work smoothly it needs to be fast.

One of the main skills I learned from completing [sic] the Excel Hero Academy was the benefit of using Named Formula. Named Formula store data in arrays that are stored in Memory. As such they don’t need to access the Excel grid and so performance is significantly improved.

But as I already have point data for 25 countries, 7 Australian States, 36 Lines of Longitude and 17 lines of Latitude, Cities of the World, Australian Capital Cities and the Chandoo.org Ninjas, and need between 4 and 5 sets of data for each plotted line, resulting in a total of 374 Named Formula, I could see that if I wasn’t organised and methodical this could become a real mess.

What was needed was a Named Formula Naming Convention.


Named Formula Naming Convention

To plot a line on a Scatter Chart within Excel we need to obtain the X & Y coordinates for each point along the line.

The data we have imported is a series of Latitude and Longitudes for each point.

Each line on the chart will be a Chart Series and will be made up of an array of x and an array of y values

Each Array of x and y values will be derived from the appropriate Latitudes and Longitudes. And each series may need a list (array) of values for annotation, eg: City names.

The following naming convention was setup and used for the project

Data type_Name_Type of data

Hence

Data Types used:

Countries,           C

Cities,                  Cit

Ninja’s                 Nin

Latitude Line,   Lat

Long Lines,        Lon

Other Lines         o              Other data

Variables                          Used to store variables to interact between the user controls, VBA and the Named Formula

Boolean               b             Boolean switches to toggle controls on/off

Names used:

Africa, Japan, etc

 

Type of Data:

Latitude               Lat

Longitude            Lon

X Value                 x

Y Value                 y

Names                  Nam

A Separator of an _ (underscore) was used to separate the fields

Example:

Countries:

C_Africa_Lat

C_Africa_Lon

C_Africa_X

C_Africa_Y

Cities:

Cit_CoW_Lat

Cit_CoW_Lon

Cit_CoW_X

Cit_CoW_Y

Cit_CoW_Nam

Lines of Latitude

Lat_010N_Lat

Lat_010N_Lon

Lat_010N_x

Lat_010N_y

Lat_010S_Lat

Lat_010S_Lon

Lat_010S_x

Lat_010S_y

Lines of Longitude

Lon_010_Lat

Lon_010_Lon

Lon_010_x

Lon_010_y

The benefits of using a Naming Convention like this is that in the Name Manager with Excel the Names are grouped and sorted according to there names. As such it simplifies the editing of formula.


Transforming the Data

We can transform the data from Latitudes and Longitudes to X & Y values using some simple math.

Pic

X = COS(RADIANS(C_Alaska_Lat))*Sin(RADIANS(C_Alaska_Lon + View_Az))

Y = SIN(RADIANS(C_Alaska_Lat))

So using Alaska as an example

The following formulas were added next to the top of the data set

You will notice in the above formula that we need to have a Named Formula setup to store and access the Latitudes and Longitudes for each data set.

Once again to allow for maximum performance it was chosen that the Latitudes and Longitudes would be stored as Named Formula, rather than being accessed directly from Excel ranges.

Using Alaska as an example

C_Alaska_Lat      ={55.122;57.643;59.151;58.655;60.555;62.417;63.869;65.189;66.448;68.351;70.307;71.163;69.968;69.642;60.307;60.899;57.604;54.941;51.213;55.122}

C_Alaska_Lon     ={196.677;202.293;203.221;198.887;194.575;195.364;199.223;193.038;198.399;193.172;198.058;204.413;215.048;218.997;219.004;212.925;207.849;200.566;180.895;196.677}


Named Formula

Setup the Named Formula

We can see above that we need to establish at least 4 Named formula and sometimes 5 for each item we wish to plot.

The fifth Named Formula will hold the City Names etc for annotation, where required.

Using Alaska as an example 8 formula were added adjacent to the Country data

These allow for the following constructions

Column A contains the name of our country, in this case Alaska

Column B contains a line identifier that is an artifact from the CAD processing. It has been maintained so that countries could be separated and identified

Column C & D are the Latitudes and Longitudes of the points which were digitised for Alaska

Column E Is the corrected Longitudes of the points which were digitised for Alaska going from 0 to 360 deg

Column G is a list of Named Formula names. Each is constructed suing a formula.

G3:         C_Alaska_Lat     =”C_”&A3&”_lat”

G4:         C_Alaska_Lon    =”C_”&A3&”_lon”

G5:         C_Alaska_x         =”C_”&A3&”_x”

G6:         C_Alaska_y         =”C_”&A3&”_y”

Column H is a series of formula that will setup the formula for the Named Formula

H3:        =”={“&Concat(C3:C22,”;”)&”}”

={55.122;57.643;59.151;58.655;60.555;62.417;63.869;65.189;66.448;68.351;70.307;71.163;69.968;69.642;60.307;60.899;57.604;54.941;51.213;55.122}

H4:        =”={“&Concat(E3:E22,”;”)&”}”

={196.677;202.293;203.221;198.887;194.575;195.364;199.223;193.038;198.399;193.172;198.058;204.413;215.048;218.997;219.004;212.925;207.849;200.566;180.895;196.677}

H5:        =”=COS(RADIANS(“&G3&”))*COS(RADIANS(“&G4&” + v_View_Az))”

=COS(RADIANS(C_Alaska_lat))*COS(RADIANS(C_Alaska_lon + v_View_Az))

H6:        =”=SIN(RADIANS(“&G3&”))”

=SIN(RADIANS(C_Alaska_lat))

The Formula in Columns G & H are setup to return a Text String, that replicates the formula required for the Name Manager.

The formula in Cells H3 and H4 use a User Defined Function, Concat(), to append the Latitude and Longitude values into a string with ; as a separator and appropriate ={ and } leading and trailing brackets.

I modified the Concat UDF to allow an optional Surrounding character ” as well as to skip over blank cells.

This change allowed Names to be stored as strings and also allowed large ranges to be uploaded at once

Eg:

={test1;test2;test3} is not permitted as a Named Formula formula unless test1, test 2 and test3 are existing Named Formula

={“test1”;”test2”;”test3”} is permitted, as test1 is a Text string.

H5 & H6 setup formula to return the X & Y values for each of the Points defining Alaska. Note that these formulas make use of the Named Formula in H3 and H4 above them. They also refer to a Named Formula v_View_Az. We haven’t set this up yet, but don’t worry about that yet. It simply contains the viewing azimuth of the view that the user wants to see the globe from, ie: How far to rotate the data so that it looks like the globe has turned.

The Concat() UDF

The use of Concat() UDF was described in a previous post at: Concat

Load Named Formula

Finally we need to load these new named formula into the Name Manager

We could do this manually, by selecting each range and ….

No, no no

In one of my previous posts I describe a technique to load named Formula from the worksheet. It is described in:  Automating Repetitive Tasks

The Automating Repetitive Tasks post above also describes the use of a small pieces of VBA Code which will allow these named formula to be uploaded quickly. This code is supplied included in the Hui’s World model.

For Alaska Select G3:G6

Execute a VBA Macro by using Alt+F8

 

Select aa_Load_Named_Ranges and press Ok. The aa_ prefix was simply added to the macro’s name so that it appears at the top of the Module List and is hence easier to find. So easy that you don’t need to select it, simply press Enter. This will be discussed in the section Formula Updates.

The 4 Named Formula selected were just created or updated if they previously existed.

Each Named Formula contains the formula comprised of the text to the right of it in Column H

Now just repeat this for the other Countries, Cities and other details.

Or setup all the countries and other data and upload them all in once step.

The aa_Load_Named_Ranges module skips blank lines, so you can setup a whole block of these adjacent to each set of data and then upload the entire lot by selecting say G1:G2000, then running the aa_Load_Named_Ranges module described above.


Adding Series to the Chart

Once the Named Formula for the Countries, Cities and Date Lines we can add a chart and upload each Country as a series

Select a single cell then got the Insert Tab and click on the Scatter Chart Icon,

Select any of the Scatter Charts as we will be formatting the Chart’s series later on.

Take note of the Charts Name

Each series requires a Name, a Range for X values and a Range for Y Values.

These are usually entered via the Add Series Dialog shown above.

However as we will require some x & y series to be added it is a lot easier to use some VBA to add the series.

For Alaska we have the Name: Alaska, with the X Series: C_Alaska_x and Y Series: C_Alaska_y

Again we can do this manually for each of the data sets or we can set this up and then use a small VBA snippet to add all the series to the chart in one go.

To achieve this I will use another code from the Automation post, Add_Cht_Series

To run this I setup 3 formulas for each series, then copied these down and relink the ranges for the other series

Using Alaska as the example

I10:           =”=”””&A3&””””

J10:           =”=Globe!”&G5

K10:          =“=Globe!”&G6

Setup a list of Country names, with adjacent x & Y values named Formula names

Note they are offset from columns G & H to avoid being uploaded as Named Formula

You can add other formula for the other ranges below eg: USA and Canada etc

Then Select the First column and run the Add_Cht_Series macro by pressing Alt+F8 the select Add_Cht_Series and press Run.

The Add_Cht_Series code will select every cell in the first column and add a New Series to the Chart based on the Values in the 3 Columns I, J & K.


Lines of Longitude

Lines of Longitude are the vertical lines or Great Circle Lines that extend North & South from the North Pole to the South Pole.

For each line we know the Longitude it will have as it is a fixed Longitude or Azimuth from the Prime Meridian.

eg: The Longitude +120 Deg is  North South line passing through Western Australia.

Pic

We know that it extends from -90 Deg to +-90 Deg.

So we can use a Named Formula to calculate the Latitudes and the Longitude for the line.

Because the Latitudes of the lines of Longitude are know and are the same for each line of Longitude I setup a Named Formula _t2

_t2={-90;-80;-70;-60;-50;-40;-30;-20;-10;0;10;20;30;40;50;60;70;80;90}

This named formula of Latitudes can be used for all the lines of Longitude.

We don’t need to store the Longitude for each line as it is fixed

We can directly calculate the X & Y values for each line of Longitude

The X Value is calculated by:

Lon_030_x: =COS(RADIANS(_t2))*SIN(RADIANS(360-30 + v_View_Az))

This is setup as before for all lines of Longitude and uploaded to the Name manager as described before

The Y Value is calculated by:

_y2: =SIN(RADIANS(_t2))

The _y2 Named Formula is then used for all the Lines of Longitude.

That is there is no Named Formula Lon_010_y, Lon_020_y, Lon_030_y etc, as they are all the same _y2.


Lines of Latitude

Lines of Latitude are the horizontal lines that are parallel to the Equator and points on the lines are the same distance from the North or South poles.

For each line we know the Latitude it will have as it is a fixed Latitude or Bearing North or South of the equator.

eg: The Latitude 30 Deg south or -30 Degrees is the East West line passing just north of Perth Western Australia.

Pic

The important part to realise here is that we could easily setup a Named Formula for the Latitude and Longitude for these lines.

Lat_010S_Lat:  ={-10;-10;-10 … -10;-10;-10}

Lat_010S_Lon: ={0;10;20;30;40 …. 340;350;360} or  =(ROW(OFFSET($A$1,,,37,1))-1)*10

and then calculate the X & Y values for each circle.

But there is an easier way.

Because I haven’t implemented vertical tilting of the earth yet, the lines of Latitude will always be straight and extend from one side of the globe to the other.

Knowing this I can cheat and simply workout the starting and finishing x & y coordinates for each line

This is done using the following formula:

Lat_S010_x:   ={-1;1}*SIN(RADIANS(100))

={-0.98; 0.98}

This formula calculates the Sin of the Angle 100 and then multiplies it by the array {-1;1}

In this example this creates the X values of -0.98 and 0.98

Similarily we know the Latitude of the Line of Latitude and so we can use that to calculate the Y Values for each line

Note here that we use the Multiplication array of {1;1}

Lon_S010_y:   ={1;1}*COS(RADIANS(100))

={0.17; 0.17}

In this example this creates the X values of 0.17 and 0.17

Excel then plots these two points as a Flat Line at -10 Deg South, extending from -0.98 to +0.98.

Note that we haven’t stored an array of Latitudes and Longitudes saving both a Named Formula and saving calculations

 

Circles of Latitude

The same technique described for the Lines of Latitude was applied to the Arctic and Antarctic Circles as well as the Tropic of Cancer and the Tropic of Capricorn lines

The Arctic Circle is located at: North 66.50 Deg, The Antarctic circle is located at South 66.55 Deg.

The Tropic of Cancer is located at: North 23.5Deg, The Tropic of Capricorn is located at South 26.43 Deg.


Hidden Lines

One of the first issues that arose during construction of the model is that data was being displayed in its normal projection but also in the negative projection as the various objects traveled around the back of the globe as the globe rotated.

Technically this is what would be seen if the Earth was made of Glass.

But this isn’t what we are used to seeing.

I have used two techniques for solving this

Simple Objects

For simple objects like Lines of Longitude, Markers and Annotation etc, the easiest way was to check the location of the object and if it was behind the earth, simply add a large number so that it plots outside the Plot area for the chart.

As the chart extends from -1 to +1 in both x and y directions, it was as simple as adding a large number say 5 to the data

This is simple and works well with minimal overheads.

It works well in that it shifts the entire object off the Charts’ Plot area.

Eg:

The basic formula for the Lines of Longitude at 210 Deg East:

=COS(RADIANS(_t2))*SIN(RADIANS(360-210 +v_View_Az))

The adjusted formula to allow Hidden Line removal:

=COS(RADIANS(_t2))*SIN(RADIANS(360-210 +v_View_Az)) + 5 * AND((AND(IF(210<v_View_Min,210+360,210) > v_View_Max, IF(210<v_View_Min,210+360,210)<(v_View_Min+360))), b_View_Hidden)

The Red part of the formula above is what checks the location of the line of Longitude and if it should be hidden shifts the location off the chart’s plot area (+5). It also incorporates the logic to enable the Toggling on/off of Hidden Lines, using the b_View_Hidden name.

Despite being complex, the logic is fairly simple, and it is great for lines of Longitude and for controlling the location of the the various annotations on the chart.

But because of this it can’t be used for when a country or continent starts to move behind the globe. Ideally we want to just hide the bits of the countries as they go off the view plan of the earth, not the whole country.

Complex Objects

For more complex objects like Countries a number of techniques were investigated, including:

The use of VBA to hide line segments was considered, but that would mean checking every line segment every time the chart is updated. If the segment was behind the Globe, then the fill color of the line could be set to None.

This was dismissed as potentially adding too much overhead to the chart.

The next technique was to plot every line segment as a series of 2 points. Doing this would mean that I could use the same technique that was used for simple objects and simply plot them outside the charts plot area. The downside here was with 1,275 data points there would be 2,550 named formula and 2,550 chart series.

No, there was a better way.

I have been having some conversations with Peter Bartholomew, Peter is well know for his innovative uses of Named Formula.

Peter is a former Senior Fellow at QinetiQ and is internationally known for his research in the area of the optimal design of aeronautics structures, having published over 80 papers. Peter has interests in data management and graphic design that are evident in his use of Excel to capture and convey information. He has made a particular specialty of the programmatic use of shapes in Excel to create diagrams as controls and also moderates a leading Excel Group on LinkedIn. Peter can been seen trolling around the Excel communities at the Linkedin Excel Hero Group and here at the Chandoo.org Forums amongst others.

Peter suggested changing the x Value of the data for all points behind the earth so that they plot on the boundary of the globe. Then plotting a Black or White circle in front of the earth circumference so that the edge lines were hidden. The good thing about this technique is that only the X Values need to be checked and altered, cutting down processing effort.

Peter then also gave me the formula to implement this:

So using Africa as an example

Original Formula:         =COS(RADIANS(C_Africa_Lat))*SIN(RADIANS(C_Africa_Lon+v_View_Az))

Hidden Line Formula:   =IF(COS(RADIANS(C_Africa_Lon+v_View_Az))>0, COS(RADIANS(C_Africa_Lat)) * SIN(RADIANS(C_Africa_Lon+v_View_Az)), IF(b_View_Hidden, COS(RADIANS(C_Africa_Lat)) * SIGN(SIN(RADIANS(INDEX(C_Africa_Lon,1)+v_View_Az))), COS(RADIANS(C_Africa_Lat)) * SIN(RADIANS(C_Africa_Lon+v_View_Az))))

I owe a huge gratitude of thanks to Peter for this assistance on this as it took the visuals from being great to being stunning.

You can see the hidden edges of the countries from behind the globe on the same view as the image above. The Areas of the countries resting on the edge of the globe are highlighted below.


User Defined Locations

As nice as the display of the world maybe, the project couldn’t cater for every location on the planet.

So I added the ability to display a user selected point from a predefined list or to add a user defined location for a specific point.

I setup 4 predefined locations, Ayers Rock, Great Barrier Reef, Grand Canyons & Pyramids of Cheops.

These are user selectable from a Drop Down menu

or by choosing User Defined, the user can define there own location

This allows the user to enter the Coordinates and Name for a single point which is then plotted.

In the example above we can see that the Amazon Rain Forest has been plotted at the correct location of -3.8 deg South and 297.5 Deg East.

The User Defined Location is setup using 5 Named Formula:

o_UDL_Lat:   =IF($P$31=”User Defined”,P32,INDEX(o_UDL_Latlist,MATCH($P$31,o_UDL_NamList,0)))

o_UDL_Lon:  =IF($P$31=”User Defined”,$P$33,INDEX(o_UDL_LonList,MATCH($P$31,o_UDL_NamList,0)))

o_UDL_Nam: =IF($P$31=”User Defined”,$P$34,INDEX(o_UDL_NamList,MATCH($P$31,o_UDL_NamList,0)))

o_UDL_x:       =IF(LEN(o_UDL_Lat)=0, 2, COS(RADIANS(o_UDL_Lat))*SIN(RADIANS(o_UDL_Lon+v_View_Az)))

o_UDL_y:       =IF(LEN(o_UDL_Lon)=0, 2, SIN(RADIANS(o_UDL_Lat)))

The Names controlling the Predefined locations are:

o_UDL_LatList: ={-25.345,-18.3,36.1,29.98}

o_UDL_LonList: ={131.035,147.7,247.89,31.13}

o_UDL_NamList: ={“Ayres Rock”,”Great Barrier Reef”,”Grand Canyon”,”Pyramids”}

These contain the locations and Names of the 4 predefined locations.

If None is selected as a Predefined location then the User Defined Location is not plotted.

Note the formula has been adjusted so that if the Latitude or longitude cells are blank the data point is plotted off the charts plot area, .


Annotation

Annotation of the model has been handled in exactly the same way as the countries has been described above except that for the annotation the Series in the Chart have no line, Markers are enabled and set differently for each data type and Data Labels have been used to annotate the points values eg: City Names etc.

In the example below I have set the Australian/NZ Capitals charts series line to be Red instead of None

 


Formula Updates

You can see by the shear number of Named Formula that the management of them was a critical aspect of the construction of Hui’s World.

However it was a lot simpler than you may imagine.

I use a technique where the formulas are developed on the worksheet and uploaded into the Name Manager.

Let me demonstrate with two examples

Countries

The basic formula for the conversion of the Lat and Long arrays to X & Y for each country are shown by

x value:  =COS(RADIANS(C_Africa_Lat))*SIN(RADIANS(C_Africa_Lon+v_View_Az))

y value:  =SIN(RADIANS(C_Africa_Lat))

These two names have to be made for every country

So I setup a list of the 46 countries

Next to the list I added formula to develop both the Named Formula’s Name as well as the Function for the named Formula

Once these formulas are setup I simply select the column of Named Formula Names and run the macro aa_Load_Named_Ranges

Using this technique allows very rapid prototyping of new formula

The corresponding X Value formula for the countries is

x value:  =COS(RADIANS(C_Africa_Lat))*SIN(RADIANS(C_Africa_Lon+v_View_Az))

This is applied to the list of countries using

=”COS(RADIANS(C_“&E368&”_Lat))*SIN(RADIANS(C_“&E368&”_Lon+v_View_Az))”

The x Values formula to allow Hidden lines is

=COS(RADIANS(C_Africa_Lon+v_View_Az))>0 COS(RADIANS(C_Africa_Lat))*SIN(RADIANS(C_Africa_Lon+v_View_Az)) b_View_Hidden COS(RADIANS(C_Africa_Lat))*SIGN(SIN(RADIANS(INDEX(C_Africa_Lon,1)+v_View_Az))) COS(RADIANS(C_Africa_Lat)) C_Africa_Lon+v_View_Az

But using this technique a formula of

=”=IF(COS(RADIANS(C_“&E368&”_Lon+v_View_Az))>0,COS(RADIANS(C_“&E368&”_Lat))*SIN(RADIANS(C_“&E368&”_Lon+v_View_Az)),IF(b_View_Hidden,COS(RADIANS(C_“&E368&”_Lat))*SIGN(SIN(RADIANS(INDEX(C_“&E368&”_Lon,1)+v_View_Az))),COS(RADIANS(C_“&E368&”_Lat))*SIN(RADIANS(C_“&E368&”_Lon+v_View_Az))))”

is developed once and then applied to the list of countyries

Lines of Longitude

Similarily for the X Values for the Lines of Longitude

The formula including allowance for hidden line removal is:

=COS(RADIANS(_t2))*COS(RADIANS(MOD(v_View_Az+10,360)))+5*AND(10>MOD(v_View_Max,360),10<MOD(v_View_Min,360),b_View_Hidden)

In this case a list of 10 to 360 was used

The Named Formula Name and Named Formula Formula were setup as shown above.

Then the entire range was loaded in one pass into the Name Manager using aa_Load_Named_Formula

 


Controls

A number of controls were included in the model.

These controls allow the following functionality

Animation

View Point Slider – Allows the rotation of the earth to the desired view point.

This is a simple slider control linked to a Named cell v_View_Az_Entry

Animate/Stop – Start rotation of the model and once started stops the model

This is a control button and is linked to the Macro: StartStop

<< / >> – Change direction button

This is a control button and is linked to the Macro: Change_Direction

Reset – Reset button. Resets the model to the starting conditions

This is a control button and is linked to the Macro: Reset

Rotation speed – Allows the change of rotation speed and direction from -10 degrees per step to +10 degrees per step

This is a Spin Control and is connected a a Named Cell: v_Rotate_Speed_Link

Predefined Views

Six predefined views have been established for viewing the model from preset locations. This includes Australia, the Americas, India, Africa/Europe, The Pacific and Greenwich Time Line (The Prime Meridian).

Each button is a Shaped linked to a macro that rotates the model from the current view point to a pre-defined view point for that position.

example:

All code is available in the model, by pressing Alt+F11.

Feature Display

Check box controls were added to enable or disable the visualization of 7 sets of data.

Each checkbox is connected to a Named Cell on the worksheet.

These names are then available for use in the various formula to hide or view data as appropriate.


Animation

Animation is achieved by use of a small piece of VBA code that simply adds a value, the rotation speed, v_Rotate_Speed, to the View Azimuth v_View_Az_Entry.

If the new view azimuth is greater than 360 it subtracts 360 degrees from the new view azimuth

If the new view azimuth is less than 0 it adds 360 degrees to the new view azimuth

All code is available in the model by pressing Alt+F11 to enter the Visual Basic Editor.

The modularisation of the code and use of worksheet cells to store key variables allows for interactive control of the model whilst it is running

that is you can press any of the controls eg: <<, >> or the Speed change spinner while the model is running and they will have an immediate effect on the model.

 


Chart Background

The background of the chart was originally set to White and then Black.

However as I regularly use Google Earth, I though of replicating the stars that rotate as the globe rotates behind the Earth in Google Earth, but without the rotation. I was already sick of Rotation by this point.

To achieve this I setup a view in Google Earth that had an appealing background

Then simply took a Screen shot of the Google Earth screen

I then added a Grey Circle to cover the view if the earth, so that only the Background was visible.

This image was loaded as the background to the Chart Area.

This involved a bit of fiddling to get it the right size and centered but I think the impact is much better.


Future Development

Zooming: It would not be hard to add the ability to zoom in/out on areas of the chart.

User Defined Data: Similar to the Point Input it would be easy to add the ability for a user to add a line or number of lines of data including annotation.

Earth Tilt: The Earth doesn’t rotate on a vertical axis. The earths rotational axis is tilted about 23.5 deg and is constantly changing. The ability to alter the tilt was considered and then put into the version 2 basket.

ps: I already have a working version of Hui’s World with Axis tilt and will release it quite soon.

Note the countries are rotating about a 23 deg tilted axis, I haven’t updated the Latitudes or Longitudes as yet.

Speed Improvements: I have considered saving the Latitudes and Longitudes in arrays of Radians instead of Degrees. ie: Pre-process the Degrees into Radians before uploading them. This would remove the need to convert the Latitudes and Longitudes to radians on the fly. The downside is that it makes checking and editting formula much more difficult.


Download

If you want to download Hui’s World click here: Download Hui’s WorldDownload Hui’s World Pre-Excel 2007

If you want to download the Helper File click here: Download Hui’s World Helper File.


Other and Future Animated Excel Posts

My previous animated chart is: 3D Dancing Pendulums

I have two more advanced chart projects in mind and both are way beyond this project in scope…

The first is at a proof of concept stage and works. The second is still bouncing around in my head.

If you have any ideas or suggestions for similar projects please let me know in the comments below:


Final Comments

This project has been on my bucket list for several years. Probably since Keyhole developed what is now Google Earth.

Most of that time was spent on spreadsheet/data design thoughts. The actual implementation time was just under 20 Hours spread over about 3 months. In fact it has taken about twice as long to write this post as it did to develop the model.

I’m quite proud of how it has turned out I would love to hear your thoughts and comments about this model in the comments below.

And a final Thanx to Peter Bartholomew for his assistance with the Hidden Line logic.

Why did I do it? Because they said it couldn’t be done.

If you have suggestions for other Excel models please also leave them as a comment below:

 

 

Facebook
Twitter
LinkedIn

Share this tip with your colleagues

Excel and Power BI tips - Chandoo.org Newsletter

Get FREE Excel + Power BI Tips

Simple, fun and useful emails, once per week.

Learn & be awesome.

Welcome to Chandoo.org

Thank you so much for visiting. My aim is to make you awesome in Excel & Power BI. I do this by sharing videos, tips, examples and downloads on this website. There are more than 1,000 pages with all things Excel, Power BI, Dashboards & VBA here. Go ahead and spend few minutes to be AWESOME.

Read my storyFREE Excel tips book

Overall I learned a lot and I thought you did a great job of explaining how to do things. This will definitely elevate my reporting in the future.
Rebekah S
Reporting Analyst
Excel formula list - 100+ examples and howto guide for you

From simple to complex, there is a formula for every occasion. Check out the list now.

Calendars, invoices, trackers and much more. All free, fun and fantastic.

Advanced Pivot Table tricks

Power Query, Data model, DAX, Filters, Slicers, Conditional formats and beautiful charts. It's all here.

Still on fence about Power BI? In this getting started guide, learn what is Power BI, how to get it and how to create your first report from scratch.

118 Responses to “Bingo / Housie Ticket Generator in Excel”

  1. Shardul says:

    This is an awesome way to generate Housie Tickets. It's tough to find these tickets in the US. Thanks!

  2. Lucky says:

    Hi mate

    thanks for this.. this is a lot of fun...

  3. Sameer says:

    Thanks mate. This is a cool way of generating housie tickets........

  4. Arthur. says:

    Thank you, great to see it working.

  5. Chandoo says:

    @All.. thanks everyone. I am happy you found this useful 🙂

    • Priti says:

      Hi Chandoo,

      I was trying to create this with family member names (around 45 names) instead of numbers. Is this possible?

      Please help. The party is on 22nd Nov. Thank you.

    • Vipul Poddar says:

      I am looking at your hidden rows
      I wanted to convert the tickets from 3x9 to 6x9
      But I can't understand it
      Would help me with that

  6. Dina Fernandes says:

    Hi Chandoo,

    I really liked your Housie Tickets. However, the tickets printed out are too small and I can't seem to increase the size to the regular printed housie tickets. Can you help me out please? Thank You. Dina

  7. Chandoo says:

    @Dina: Welcome to PHD and thanks 🙂

    hmm... I have tried to set the printing preferences to print 20 odd tickets per each A4 page. But if you are looking for bigger size here is how you can get:

    1. Go to to print preview and adjust margins and scaling. Scale your sheet until the tickets fill up the print area.

    2. print. You may want to repeat this few times so that you can get optimum size. Then save the workbook.

    3. next time you need more tickets, just print. 🙂

    Let me know if you face any difficulties.

    • Nikki says:

      Thanks so much! I've been trying to find a random ticket generator with bigger tickets. So happy I found yours and instructions to increase size. You're a STAR!

    • Nikki says:

      I am having difficulties with sizing. I need eight tickets on A4 Landscape page. I am not too good with Excel but better with Libre Office Calc. I have tried to save to that format but it doesnt work. Can anyone send instructions that are not too technical?

  8. Ravi says:

    Hi, Thanx a lot .. its very useful

  9. madhu says:

    hey i tried to download this zip but looks like the file is damaged can you help ?

  10. Chandoo says:

    @Ravi : You are welcome 🙂

    @Madhu: Are you sure? I just tried to download and unzip it and it seems to work fine. Can you try again and let me know if you have troubles. It is a very small file, may be I can mail it to you.

  11. Andre South Africa says:

    Great.... Can i change colors

  12. Chandoo says:

    @Andre... sure you can. You may want to adjust colors from conditional formatting so that they are truly changed. Let me know if you have some trouble.

  13. Rozario says:

    Thanks Chandoo once again for this great tool........ very creative!

  14. Gurlochan Singh says:

    Thanx Chandoo .

    Just could not find Housie Tickets here in Kenya .

    Awesome Funda .

    Cool & gr8

  15. [...] Play seems to be the focus of excel blogosphere last week. Debra at contextures has created an excel file to generate bingo cards (US style) in excel. Several others followed it up with their own versions of bing number generators. Follow the links, download the book and have some fun! Also, Generate UK / Indian style bingo cards [...]

  16. Sujatha Raj says:

    Hey...
    This is cool.. We were planning for a potluck event where I wanted to host this game but was thinking if I should go and buy it from the store just for this one time.. so as usual google'd to see if there was any generator and your's was the first hit... its cool and easy to print and I love it!!! Thanks a lot!!!

  17. Vinayy says:

    Thanks for this excellent coding.

    Please tell us how to change colors.

  18. Vinayy says:

    (sorry for a repeat post)
    Sometimes 1, 2 or 3 columns go empty in some tickets. You might want to look into this.

  19. Modeste says:

    Hi chandoo,
    I also created my own bingo/housie ticket generator ;o)))
    with all 90 numbers and with speeching draw ;o))
    it's another way to generate 15 random number between 1 to 90 and fill them in 3 boards of 15 random spots in a grid of 3 rows by 9 columns , 5 numbers by row
    (45 numbers among 90 without duplicate)

    formulas are in hidden rows (1 to 35)

    here is my workbook
    http://www.cijoint.fr/cjlink.php?file=cj200906/cijYEVgITv.zip

    I also write other Excel stuff for fun at :
    http://www.excelabo.net/search/node/jeux%20geedee

    this URL belong to my good MVP friend (Misange)
    The French Excel addict site !!!!
    http://www.excelabo.net

    cheers !!!

  20. Jo says:

    What happened to number 90???

  21. Chandoo says:

    @Modeste: Thanks for sharing your article.. 🙂

    @Jo.. "I have removed number “90? from the list in order to reduce some complexity in generating the tickets." Generating 90 along with 80-89 creates a tricky problem of having 11 numbers in the last band while every other column has only 10 possible values.

    May be you can take a look at the workbook formulas and help me generate the 90 as well by changing them...

  22. Jim Cone says:

    If you want/need a 5 x 5 USA version...
    My 'Bingo Card Variety' workbook does Bingo, Buzzword Bingo and Bible Bingo.
    Free, download from... http://excelusergroup.org/media/
    '--
    Jim Cone
    Portland, Oregon USA

  23. Jai Daga says:

    Hi Chandoo / Jim,

    Thanks for the details and excellent tool.

    I am working for a media company in India and based out of Mumbai. We want to generate huge number of bingo tickets in 5x5 version with 26 grids in one sheet and roughly 13 million such sheets.

    Please let me know if either of you can help me on this.
    Not sure if it can be done in XL or VBA .

    This is very urgent and need your help.
    You can call me on 91-9820614804.

    Thanks & Rgds

    Jai Daga

  24. Jim Cone says:

    Jai Daga,
    You need to get quotes from at least three commercial printers.
    The volumes you are considering will be very attractive to anyone in the printing business.
    '--
    Jim Cone

  25. Jai says:

    Hi Jim,

    Thanks for the reply. I understand its good for printing business and lot of vendors are already approaching us.

    Issue is of generating these 5*5 tickets and each ticket to have unique 8-10 digit identity code.

    Basically below is the requirement

    ***********
    Each sheet will have 26 tickets

    Each ticket have 5*5 grid acc to the US 1-75 number system but with no free space

    Each ticket has a unique 8-10 digit pin code
    We plan to print 5 million sheets (each sheet having 26 tickets)

    There will be 1.25 million sheets which will be unique and the balance sheets (3.75m) will have the same tickets
    However pin code will be unique in each ticket and hence there will be 5*26=130million unique pin codes
    These output needs to come on an excel or as a PDF file in the same format as the sheet
    *************
    Let me know if you can guide me of such software or program that can be used by me for ticket generation.

    Thanks

    Jai

  26. Jim Cone says:

    Jai,
    I might be able to generate the 130,000,000 serial numbers in an Excel workbook (.xls). Possibly Ten million numbers on each of thirteen worksheets.
    It would have to be on a paid basis.
    Contact me at...
    james.coneXXX@comcast.netXXX (remove the XXX)
    if you would like to discuss further.
    Jim Cone
    Portland, Oregon USA

  27. Shyaamal says:

    Hi Chandoo, i have downloaded your housie ticket generator, just have one query, how many maximum unique tickets it can make ????
    do help me with this,
    Shyaamal

  28. Chandoo says:

    @Shyaamal I guess the ticket generator should be able to make obscenely high number of unique tickets. since the process is randomized, you might see same tickets twice...

  29. Vir says:

    Hello Chandoo,
    Awesome tool! .. I loved it.

    Is there a way to tweak the generator so that I only generates no more than 4 tickets a worksheet (Make it nice and clean to print)?

    I want to print more than a 1000 of these tickets, so dont want to click on refresh button 250 times.. so if once I click refresh, is it possible to generate 50 or so worksheet at a time? So that I can click refresh 4 times and get my 1000 tickets?

    Please let me know of your thoughts.

    Thanks
    Vir

  30. Chandoo says:

    @Vir.. Thank you.

    you can easily modify the formulas and add a macro to do this. The file is unlocked, so feel free to make the changes..

  31. DonQ says:

    There is an online generator at http://www.bingocardmaker.co.uk, which generates the numbers in blocks of 6 cards, where every number from 1-90 is used. This is how the UK style books are usually printed, so that if you buy 6 tickets you are sure to have every number once and only once. Makes the generation routine a little trickier.

  32. Rohit says:

    Chandoo
    Hey Thanks a lot ..
    Im working on a merchant cargo vessel...
    We are having a party tomorrow and needed this software badly..

    Im sure it will be a big hit with the crew..
    Thanks again

  33. Sridhar says:

    Chandu,

    Downloaded yuo excel sheet and read people comments / remaks , Eve thing positive..

    Please consider my feedback in positive way
    Housie tickets I have seen has a basic Rule which is missing in you tickets

    1) Numbes 1-90 - You have aleady mensioned So fine..
    2) Take a six tickets in a Row - Numbers shall not Reaplete.
    3) Each sheet will have 12 tickets

    If you can work on your Excel fo fun of Indians stauing out side india appiciated...

  34. amol v. says:

    thnks chandooooo, illeterate logo ke liye aisa esy way rakhane ke liye.

  35. chandra says:

    I need bingo teckets in excel with serial numbers can you help me please Tnks In Advance

  36. edward says:

    Hi Chandoo,
    really liked your bingo sheet. wanted to make a program of it in delphi or vb. i cannot figure how the randomizing of the numbers is to be done properly.
    1. Row wise select ion of 5 numbers and place random (0-99) in these five places
    2. random selection of 15 numbers and place then as 10,20,30 so on
    has a function been done by you?

    i'm so confused please help

  37. Jennifer says:

    Hi there - this looks great. I need to do some bingo cards with 'acronyms' on them instead of numbers - how do I amend your excel spreadsheet to make this happen?
    Thanks

  38. FloydPink says:

    Made a random number generator that could go along with the spreadsheet you've here... 🙂

    http://jsfiddle.net/FloydPink/KHLtw/embedded/result/

  39. BobH says:

    These tickets can not be used to play standard 90 ball Bingo, the number 90 is missing and the tickets must be produced in blocks of 6 which contain every number from 1 to 90. Also you can not have any columns with three blanks ( no numbers ) on the same ticket.

  40. I'm really impressed with your writing skills and also with the layout on your weblog. Is this a paid theme or did you modify it yourself? Either way keep up the nice quality writing, it is rare to see a great blog like this one these days.

  41. mezzic says:

    Hi

    i love this is their any way you can do 6 tickets togethor and have all numbers within the 6 tickets

    cheers mezzic

  42. Karen says:

    hi
    just downloaded the bingo for a Retirement Village, fantastic, i had to tweak it a bit to make it bigger.  this is now outstanding.  thanks. 

  43. Venkatesh says:

    Thanks Chandoo. really awesome

  44. pete reeve says:

    hi chando, fabulous work, i would like to use this but for a 5 row 25 number card, what changes should i make & how?
    regards

  45. Ushma says:

    Hi Chandoo,
    I wish to Customise these tickets for one of my wedding ceremony.
    Basically I wanted to replace numbers with Names/Movies etc. So in total I will have 89 names and when the excel generates the numbers, the names should get replaced with it depending on how it is configured.
    eg : For Number 1 = DDLJ
    2 = DON , etc
    Can you please suggest the command to be written in excel which will support the above idea. It would be a great help.

  46. Kushal Patel says:

    Hi Chandoo,

    Can i print aound 3000 tickets using your generator ?

  47. Devendra says:

    Hi!

    I need Housie ticket printing software for professional use, can u provide.

  48. Pinang says:

    Hi,

    Can any one please mail me this housie tickets file on my email ID?

    pinangp88@gmail.com

    Thanks

  49. stephen says:

    column 1 should contain 1 to 10, column 2 should contain 11 to 20 and so on... obviously you took out number 90 for formula convenience, but i think putting the right numbers into the right column would do the same, yet this way you make an authentic housie ticket... thanks for the post though, it helps me creating my own ticket generator.

  50. shaili says:

    I have customized my housie ticket...which contains 3 rows and 3 columns. ..and there are 300 such tickets. .. how can I generate the numbers. .

  51. Pawan says:

    Hello,

    I am organizing a fundraiser in our company. I have planned for tambola and the Spread Sheet provided by Chandoo is just awesome for the task. We have 1200+ staff so I guess I need to print this for 24 or so times. I only have two requirements.
    1. Can the ticket be numbered so that we can keep track who has taken which ticket.
    2. At this large number what is the probability or repeated tickets. You know we don't want to spend all in prices.
    I would be looking for options but any quick help would be greatly appreciated.
    Thanks,
    Pawan

  52. Really... It's Amazing stuff !!!

  53. Atmadip Dhami says:

    i want to print different names n generate tickets instead of 1 , 2,3....90.
    where to replace this no in excel sheet n print tickets n 4 tickets on A4 paper

  54. Hi,
    Great use of EXcel... SO much to learn !
    I want to create a quiz with answers given to the participants in a random (Bingo / Housie) Pattern.

    Can we generate "word ( eg First Names) based" Bingo tickets.
    I would prefer same format.
    Thanking you in advance

  55. Rajeshktelang says:

    Please send me the excel sheet. I downloaded many times but no success. Thanks in advance.

  56. sheena says:

    Its a great service

  57. Viraj says:

    How many tickets we can generate using 1-90 numbers??

  58. Pankaj says:

    Hi,

    I generated the ticket. Now trying to find, how to play. How a person speaks out a number? and then keep a track of it?

    Pankaj

  59. Anil Patel says:

    How to set 1 to 99 number in 90 ball bingo table in which i have 6 running column and 3 column not used.In this First row number start with
    5.

  60. Kalashree Wakhare says:

    Hello Chandoo,

    Can you help me to generate tickets with words instead of numbers,

    Can you help me please. My email id - kalashreewakhare@gmail.com

  61. Dhiru says:

    This is really awsome. But there is one More rule that was not followed

    Tambola sheet have total 6 tickets per page. And in first colom of 5
    6 tickets that is 18 cells 1-9 are randomly filled

    I mean to say doubling of number shud be there in one sheet of 6 tickets. As usually every one buys full sheet. If this can be solved it would be perfect generator never seen in simple.way

    Hope i am clear. Uou can contact me 8125535581, oshiyaevents@gmail.com

  62. sanjay says:

    Download Housie ticket maker excel sheet can not be download please help me

  63. JD says:

    Hey Chandoo, your sheet is no longer available. Can you please email it at your earliest convenience? My email is jtibrewala [at] gmail

    Also, I'm looking to create a music version of the same game where I would feed in say 90 songs into the sheet and print song names instead of numbers and play the songs instead of saying the numbers. Any assistance with making this would be appreciated.

  64. Madhavi Z says:

    not able to download the excel

  65. Kamlesh says:

    I'm unable to download the file

  66. deepak says:

    can i generate 1000 different housie tickets by using your excel sheet....pls update

  67. ron says:

    While generating random tickets, I found below issues in a few tickets:
    1. Column without a single number
    2. This can be for 2 columns at times

    3. Columns with numbers in sequence (71, 72, 73)
    4. Another Ticket generated will also have the same sequence (71, 72, 73)

    If I have to distribute the tickets, I need to pick manually which is time consuming.

  68. Harish Gaba says:

    drar,

    i want create to online play tombola which i want all member pay all member which i decided to how much ticket price, paid my account and who will will win automatically transferred member account

  69. kunal says:

    A good and easy tool for creating tambola tickets. Providing another informative link for Free Board and play online. partystuff.in/play-board

  70. DS says:

    The generator seems to generate "0" as a number. How to fix this. As in not generate "0".

  71. Hemant says:

    THERE IS A BIG BIG PROBLEM WITH THESE TICKETS...EVERY COL MUST HAVE A NUMBER COMPULSORILY BUT MOST OF THE TIME EITHER 1 COL OR 2 COLS ARE COMPLETELY EMPTY..

  72. Kash J says:

    Can I create sets of 6 tambola tickets containing numbers from 1-90 only once?

  73. Swati says:

    It's nice to create tickets easily. I found a random number generator which is cool and easy to use. So thought of adding it to this page so people are able to find tickets and board togather. check at https://partystuff.in/tambola-number-generator

  74. anand M says:

    Hi,
    I am unable to see 90 number anywhere in the tickets , can you please let me know the reason for the same ?

    In the number generator apps, we have numbers from 1-90 so it is better to have 90 gets printed on the tickets as well.

    Please share your thoughts.

  75. Mahesh says:

    Hi,
    thanks for sharing this awesome excel for Bingo / Housie Ticket Generation.
    Just noted that many tickets have columns with no value at all.
    I understand that each column must have atleast one value.
    Can you please see and share an edited excel please.
    Many thanks for the awesome stuff you are doing.
    Cheers
    Mahesh

  76. Hardik Tak says:

    There is a major flaw in your system. It does not have the number 90. I know you have removed it save the complexity but as it been more then 10 years since you provided us with this, I am sure you have evolved yourself to get the 90 in the tickets.

    Also 2nd major flaw is that there should be only 6 tickets in a page of Housie or 12 with 6 in one column side. The major key point here is in the set of 6 tickets all the numbers 1 to 90 should be covered once and not repeated.

    Can You resolve these 2 issues.

    Awaiting response.

    • ROHIT JHANWAR says:

      Yeah, unable to get number 90 due to complexity, kindly guide regarding how can we get the same.

  77. Kips says:

    Thanks Chandoo - That's an awesome application.
    How do I change the color of the tickets from amber to a different color?
    How can I add a unique ticket number to each ticket?

    Thanks Again.

  78. Akash says:

    Using this calculator, how many unique tickets can we create at the max? Is there also a way to generate 250 new tickets at a time instead of 24?

  79. Sachi says:

    Hi ,

    I am unable to generate new set by clicking F9. How can I do that ? thanks.

  80. Vishal says:

    Hello Chandoo,

    I'm not able to open the file in Excel 2019. It give me an error.

    "Excel cannot open or save anymore documents because there is not enough available memory or disk space."

    Kindly advise.

    Thanks.

  81. NPatel says:

    Hi There,
    I want to get 12 tickets of Housey Game in horizontal A/4 size paper.
    Please provide that or please inform if I can modify your Housie Ticket Generator, which provides 3 x 8 = 24 tickets per letter size paper. It is too small to handle.
    Regards

  82. kirti says:

    there are duplicate numbers generated in your tickets

  83. Aman says:

    That's useful. Thanks.

  84. aman says:

    just i would like to know
    how to draw tambola tickets in excel or in ms word

  85. Jayesh Rajgor says:

    hi chandoo,
    your bingo ticket generator is awesome....
    In this lockdown period finally I have found the solutions of not gettling any column blank and comes number 90 also in your bingo ticket generator....

  86. dg biyani says:

    This is really awsome. But there is one More rule that was not followed

    Tambola sheet have total 6 tickets per page. And in first colom of 5
    6 tickets that is 18 cells 1-9 are randomly filled

    I mean to say doubling of number shud be there in one sheet of 6 tickets. As usually every one buys full sheet. If this can be solved it would be perfect generator never seen in simple.way

    Hope i am clear. Uou can contact me 8125535581, oshiyaevents@gmail.com

  87. HM says:

    This is awesome! Many thanks

  88. Claire says:

    Hi,

    This is great, I cannot thank you enough .. it really was helpful for our family over these past few months.
    Missing number 90 is slight flaw, but it's easy to add that in

    FYI, we also discovered a free iPhone app called, "Bingo Cards & Tickets" which was also pretty helpful for my daughters
    (https://apps.apple.com/nz/app/bingo-cards-play-print/id1514415911)

    Thank you again
    Claire

  89. SHALINI MASCARENHAS says:

    hey i hit F9 but the numbers did not change on the ticket

  90. Niranjan says:

    Hi chandoo,
    Thanks a lot for you valuable worksheet to generate housei tickets... i want to print 1to 90. How can i do this ? If you have any update of this worksheet then plz send me in my gmail a/..Again thanks a lot...its verh helpful for mee...

  91. Christian Salway says:

    This is no good. it can leave a column without a number, which is not correct rules.

  92. Mady says:

    Hi Chandoo
    I am trying to copy the tickets to another excel sheet but the generator seems to change the numbers every time I click for an excel action. Please guide me as to how can I copy these tickets to another excel sheet

  93. Mick says:

    Hi Chando,
    I am trying to make picture bingo in James Bond items but need some advice how to achieve this . I have the information to do this on a
    5 x5 formate but that is in vba.

  94. Andy Globe says:

    Hello, chandoo this trick is tried and tested. Thanks for updating the useful content.

  95. Rahul says:

    Need a little help i am customising the excel and i need that the every 6 tickets rows don't repeat the same no.

  96. Jagdish kumar says:

    its a nice program but one last logic is missing. If you see any Tambola ticket book you will find all 90 numbers in any set of six tickets in a page. so please modify the generator program to get sets of 6 ticket at a time with all 90 numbers included in it. All other random number logics are ok

  97. anushree says:

    this is just great ! will it generate 700 all different random tickets? i need that many

  98. Sangeeta Aggarwal says:

    I want to create 1200 housie tkts ! Every 6 tickets must use all 90 numbers! And I want to change the background of the tickets! Also , I want to color some of the empty boxes! Is that possible ?

Leave a Reply