#1   Report Post  
Posted to microsoft.public.excel.misc
capnsean
 
Posts: n/a
Default Random Item


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=508969

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bill Martin
 
Posts: n/a
Default Random Item

How about: [B1] = OFFSET(A1,RANDBETWEEN(0,2),0)

You'll need to change the "2" to be the last row of the list you're picking from.

Bill
---------------------------
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?


  #3   Report Post  
Posted to microsoft.public.excel.misc
B. R.Ramachandran
 
Posts: n/a
Default Random Item

Hi,

Let's suppose that the list of items (e.g., alpha, beta, gamma, .....) are
in A1:A100. Enter the formula in B1 and auto fill the formula down to the
last row.

=RAND()

In C1 enter the formula
=INDEX($A$1:$A$100,RANK(B1,$B$1:$B$100))

Every time you hit F9 the formula will generate a new random selection from
your list.

Regards,
B. R. Ramachandran

"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=508969


  #4   Report Post  
Posted to microsoft.public.excel.misc
Witch-Doctor
 
Posts: n/a
Default Random Item

On Mon, 6 Feb 2006 10:27:17 -0600, 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?



Try: B1 = OFFSET(A1,INT(3*RAND()),0)
--
Jay.
(remove dashes for legal email address)
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Seed numbers for random number generation, uniform distribution darebo Excel Discussion (Misc queries) 3 April 21st 23 10:02 PM
sort bar chart in excel BuriedInSpreadSheets Charts and Charting in Excel 6 May 31st 07 05:12 PM
Random Sampling Andrea Excel Discussion (Misc queries) 2 November 11th 05 10:52 AM
VBA "Rnd" Function: Truly Random? TheRobsterUK Excel Discussion (Misc queries) 2 September 27th 05 05:50 AM
Linking Several Worksheets to One Worksheet TangentMemory Excel Discussion (Misc queries) 1 May 11th 05 12:37 AM


All times are GMT +1. The time now is 07:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"