Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() I -have- searched for a previous post regarding this problem, but came up with nothing all that useful. Problem: I need to generate a random item from a list. I.E.: A1 = alpha A2 = beta A3 = gamma etc. B1 = RANDOM choice of alpha, beta, or gamma Any help? -- capnsean ------------------------------------------------------------------------ capnsean's Profile: http://www.excelforum.com/member.php...o&userid=25049 View this thread: http://www.excelforum.com/showthread...hreadid=508974 |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Another option, placed in any cell:
=INDEX({"alpha";"beta";"gamma"},randbetween(1,3)) (adjust the "3" to be equal to the number of items) Press F9 to regenerate Note that Randbetween requires the Analysis Toolpak be installed and enabled (via Tools Add-Ins) -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "capnsean" wrote in message ... I -have- searched for a previous post regarding this problem, but came up with nothing all that useful. Problem: I need to generate a random item from a list. I.E.: A1 = alpha A2 = beta A3 = gamma etc. B1 = RANDOM choice of alpha, beta, or gamma Any help? -- capnsean ------------------------------------------------------------------------ capnsean's Profile: http://www.excelforum.com/member.php...o&userid=25049 View this thread: http://www.excelforum.com/showthread...hreadid=508974 |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
If the items are listed within a defined range named "Items",
an alternative to use (in any cell) would be: =INDEX(Items,randbetween(1,COUNTA(Items))) -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
RANDBETWEEN requires the analysis tookpak be installed. You can just use
the built in rand = OFFSET(A1,Trunc(RAND()*3),0) =Index(A1:A3,Trunc(rand()*CountA(A1:A3)+1),1) -- Regards, Tom Ogilvy "capnsean" wrote in message ... I -have- searched for a previous post regarding this problem, but came up with nothing all that useful. Problem: I need to generate a random item from a list. I.E.: A1 = alpha A2 = beta A3 = gamma etc. B1 = RANDOM choice of alpha, beta, or gamma Any help? -- capnsean ------------------------------------------------------------------------ capnsean's Profile: http://www.excelforum.com/member.php...o&userid=25049 View this thread: http://www.excelforum.com/showthread...hreadid=508974 |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() sorry to be a pain, but how does one define a range? -- capnsean ------------------------------------------------------------------------ capnsean's Profile: http://www.excelforum.com/member.php...o&userid=25049 View this thread: http://www.excelforum.com/showthread...hreadid=508974 |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() I defined the group, and tried this =INDEX(Items,randbetween(1,COUNTA(Items))) function, to no avail... I'm getting the ol' #Name? -- capnsean ------------------------------------------------------------------------ capnsean's Profile: http://www.excelforum.com/member.php...o&userid=25049 View this thread: http://www.excelforum.com/showthread...hreadid=508974 |
#7
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() Nevermind - issue resolved Muchas gracias -- capnsean ------------------------------------------------------------------------ capnsean's Profile: http://www.excelforum.com/member.php...o&userid=25049 View this thread: http://www.excelforum.com/showthread...hreadid=508974 |
#8
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
In B1 enter =RAND() and copy down to B3.
Then sort columns A&B by B; this will "shuffle" the order of the items in A. Pick the first item in column A -- Gary''s Student "capnsean" wrote: I -have- searched for a previous post regarding this problem, but came up with nothing all that useful. Problem: I need to generate a random item from a list. I.E.: A1 = alpha A2 = beta A3 = gamma etc. B1 = RANDOM choice of alpha, beta, or gamma Any help? -- capnsean ------------------------------------------------------------------------ capnsean's Profile: http://www.excelforum.com/member.php...o&userid=25049 View this thread: http://www.excelforum.com/showthread...hreadid=508974 |
#9
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Glad to hear that !
-- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "capnsean" wrote in message ... Nevermind - issue resolved Muchas gracias |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Seed numbers for random number generation, uniform distribution | Excel Discussion (Misc queries) | |||
sort bar chart in excel | Charts and Charting in Excel | |||
Random Item | Excel Discussion (Misc queries) | |||
VBA "Rnd" Function: Truly Random? | Excel Discussion (Misc queries) | |||
Linking Several Worksheets to One Worksheet | Excel Discussion (Misc queries) |