Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Random numbers
Hi there
This is for a little fun... we are playing a small in-house lottery game ourselves. Is there a way to generate 6 random numbers in the series from 1 through 49, using excel? They could either be in a single cell, separated by commas or... separately in six adjacent cells in a row. Thanks Raj |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Random numbers
Hi,
Use =RANDBETWEEN(1,49) in a cell and and copy this formula to 5 adjacent cells. Regards Govind. Raj Mazumdar wrote: Hi there This is for a little fun... we are playing a small in-house lottery game ourselves. Is there a way to generate 6 random numbers in the series from 1 through 49, using excel? They could either be in a single cell, separated by commas or... separately in six adjacent cells in a row. Thanks Raj |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Random numbers
Tried that... it's only giving #NAME? as output...
"Govind" wrote: Hi, Use =RANDBETWEEN(1,49) in a cell and and copy this formula to 5 adjacent cells. Regards Govind. Raj Mazumdar wrote: Hi there This is for a little fun... we are playing a small in-house lottery game ourselves. Is there a way to generate 6 random numbers in the series from 1 through 49, using excel? They could either be in a single cell, separated by commas or... separately in six adjacent cells in a row. Thanks Raj |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Random numbers
To get 6 unique numbers between 1 and 49.... put this formula in A1 and copy across row to AW1 =RAND() in A2 put this formula =RANK(A1,$A1:$AW1) and copy across to F2 A2:F2 now gives your 6 random numbers hide row 1 if you wish -- daddylonglegs ------------------------------------------------------------------------ daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486 View this thread: http://www.excelforum.com/showthread...hreadid=504233 |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
Random numbers
Hi,
You need to have the Analysis Toolpak add-in enabled to use this formula. Go to Tools-AddIns and enable 'Analysis Toolpak' and then try the formula. Regards Govind. Raj Mazumdar wrote: Tried that... it's only giving #NAME? as output... "Govind" wrote: Hi, Use =RANDBETWEEN(1,49) in a cell and and copy this formula to 5 adjacent cells. Regards Govind. Raj Mazumdar wrote: Hi there This is for a little fun... we are playing a small in-house lottery game ourselves. Is there a way to generate 6 random numbers in the series from 1 through 49, using excel? They could either be in a single cell, separated by commas or... separately in six adjacent cells in a row. Thanks Raj |
#6
Posted to microsoft.public.excel.misc
|
|||
|
|||
Random numbers
Thanks guys, both work...
"Raj Mazumdar" wrote: Hi there This is for a little fun... we are playing a small in-house lottery game ourselves. Is there a way to generate 6 random numbers in the series from 1 through 49, using excel? They could either be in a single cell, separated by commas or... separately in six adjacent cells in a row. Thanks Raj |
#7
Posted to microsoft.public.excel.misc
|
|||
|
|||
Random numbers
Hi Raj,
If your 6 numbers should be non-repeating (=unique) then I suggest to take my UDF UniqRandInt() from www.sulprobil.com HTH, Bernd |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Convert random numbers to text.. | Excel Worksheet Functions | |||
Random Numbers | Excel Discussion (Misc queries) | |||
random numbers from a data of numbers? | Excel Worksheet Functions | |||
Random Assignment of Numbers | Excel Worksheet Functions | |||
Random list (1-45) without repeating numbers? | Excel Worksheet Functions |