Generating Random Phone Numbers

on 20 Nov, 2008 in Analytics, Excel Tips | 5 Comments

Generating Random Phone Numbers

Often when you are writing code or testing an application, it might be helpful to have random phone numbers generated for you.
Here is an excel formula that I use: =value(left(substitute(rand(),”0.”,”"),10))
try these 2 instead (thanks to John)
=RAND()*(9999999999-1000000000)+1000000000
=RANDBETWEEN(1000000000,9999999999) [needs analysis toolpack add-in or excel 2007]
Even though it works most of the time as excel rand() formula generates [...]

Read More >>

Sorting a list of items in random order in excel - using formulas

on 23 Sep, 2008 in Analytics, Excel Tips | 5 Comments

Sorting a list of items in random order in excel - using formulas

In shuffling a list of items in excel I have described the technique of using random numbers generated by RAND() to sort a list of items. The technique had one disadvantage though, every time you need to reshuffle the list you have to press F9 to recalculate the rand() and then go to menu > [...]

Read More >>

Simulating Dice throws - the correct way to do it in excel

on 13 Aug, 2008 in Excel Tips, simulation | 8 Comments

If you ever had to simulate random outcomes in excel sheet, you might have already heard of about the spreadsheet function rand(), this little function generates a random fraction between 0 and 1 whenever you use it. So I usually write =round(rand()*12,0)int(rand()*12)+1 if I need a random number between 0 to 12. Of course, if [...]

Read More >>

Shuffle a list of numbers / items in excel spreadsheet

on 28 Jul, 2008 in Excel Tips | 4 Comments

Here is a quick Monday tip for data junkies.

If you want to shuffle a list of numbers or cells in excel in random order you can do that with “data > sort” menu option of excel.

First insert a column next to the list you want to shuffle and enter random numbers in each [...]

Read More >>

Worst bar chart ever? - World’s Most Expensive Places to Have Sxx

on 17 Jul, 2008 in Humor, Random, visualization | 2 Comments

Environmental Graffiti should get the award for “worst possible bar chart ever” for this unbelievable piece of art…
Who said bar charts are only for serious data interpretation, they can be used to have such fun
Also read Garr Reynold’s comments on this as well. Happy Thursday..

Read More >>