Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Select from a list

does anyone know how to get excel to select randomly from a list of values.

lets say A1=Dave, A2=Gaz, A3= James, A4=pete.

is there are function that can select one of the four names randomly?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Select from a list

One way with your list in column A try this formula in another cell

=INDIRECT("A"&RANDBETWEEN(1,4))

Change the 4 to however many names you have in your list and Tap F9 to get a
different name.

Mike

"frisbee_train" wrote:

does anyone know how to get excel to select randomly from a list of values.

lets say A1=Dave, A2=Gaz, A3= James, A4=pete.

is there are function that can select one of the four names randomly?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Select from a list

=INDEX(A1:A4,INT(RAND()*ROWS(A1:A4)+1))


"frisbee_train" wrote:

does anyone know how to get excel to select randomly from a list of values.

lets say A1=Dave, A2=Gaz, A3= James, A4=pete.

is there are function that can select one of the four names randomly?

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
Select top 10 in a list Joe Maldon Excel Discussion (Misc queries) 9 November 4th 07 01:01 AM
To select from a list anil Excel Discussion (Misc queries) 1 April 24th 07 12:50 PM
To select from a list anil Excel Discussion (Misc queries) 0 April 24th 07 09:28 AM
Select the last value from a list Steve Excel Worksheet Functions 7 September 22nd 06 07:18 AM
how to randomly select a name in a list and then the select the ne [email protected] Excel Worksheet Functions 1 September 20th 06 08:09 AM


All times are GMT +1. The time now is 12:19 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"