Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 46
Default Random name from a list?

I have a list of 20 names in col A. In B1 I want to display a random
name from this list. What is the easiest way to do that please? An
(admittedly brief) study of VLOOKUP in Help for Excel 2000 left me a
bit confused.

--
Terry, East Grinstead, UK
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 364
Default Random name from a list?

Enter the following in B1
=INDIRECT("A" & ROUND(RAND()*20,0)+1)

Help:
=ROUND(RAND()*20,0) will give you a random number between 1 and 19
Add one to it and prefix the result with A and you will get A1-A20. Indirect
will return the value in A1-A20...

"Terry Pinnell" wrote:

I have a list of 20 names in col A. In B1 I want to display a random
name from this list. What is the easiest way to do that please? An
(admittedly brief) study of VLOOKUP in Help for Excel 2000 left me a
bit confused.

--
Terry, East Grinstead, UK

  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Random name from a list?

Another play ..
Names in A1:A20
In B1: =RAND()
Copy down to B20
Then in C1: =INDEX($A$1:$A$20,RANK(B1,$B$1:$B$20))
will return a random name from the source list. Press F9 to regenerate.
Just copy C1 down as required if you need to generate more random picks
(Picks will not repeat). Or simply copy C1 down all the way to C20 to return
a full random scramble of the entire source list.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:18,600, Files:362, Subscribers:60
xdemechanik
---
"Terry Pinnell" wrote in message
...
I have a list of 20 names in col A. In B1 I want to display a random
name from this list. What is the easiest way to do that please? An
(admittedly brief) study of VLOOKUP in Help for Excel 2000 left me a
bit confused.

--
Terry, East Grinstead, UK



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 119
Default Random name from a list?

Max wrote on Tue, 7 Oct 2008 16:48:42 +0800:

Another play ..
Names in A1:A20
In B1: =RAND()
Copy down to B20
Then in C1: =INDEX($A$1:$A$20,RANK(B1,$B$1:$B$20))
will return a random name from the source list. Press F9 to
regenerate. Just copy C1 down as required if you need to
generate more random picks (Picks will not repeat). Or simply copy C1
down all the way to C20 to return a full random
scramble of the entire source list. --
Max
Singapore
http://savefile.com/projects/236895
Downloads:18,600, Files:362, Subscribers:60
xdemechanik
---
"Terry Pinnell" wrote in message
...
I have a list of 20 names in col A. In B1 I want to display a
random name from this list. What is the easiest way to do
that please? An (admittedly brief) study of VLOOKUP in Help
for Excel 2000 left me a bit confused.

--
Terry, East Grinstead, UK


If it's a thing that you want to do from time to time, you could use the
helper column method, say in B, with the names and addresses in A.
Elsewhere, perhaps in C1, you might have "The winner is", and =A1 in D1.
You could even record a macro to get a new winner without going thro'
all the motions.

--

James Silverton
Potomac, Maryland

Email, with obvious alterations: not.jim.silverton.at.verizon.not

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 46
Default Random name from a list?

"James Silverton" wrote:

Max wrote on Tue, 7 Oct 2008 16:48:42 +0800:

Another play ..
Names in A1:A20
In B1: =RAND()
Copy down to B20
Then in C1: =INDEX($A$1:$A$20,RANK(B1,$B$1:$B$20))
will return a random name from the source list. Press F9 to
regenerate. Just copy C1 down as required if you need to
generate more random picks (Picks will not repeat). Or simply copy C1
down all the way to C20 to return a full random
scramble of the entire source list. --
Max
Singapore
http://savefile.com/projects/236895
Downloads:18,600, Files:362, Subscribers:60
xdemechanik
---
"Terry Pinnell" wrote in message
...
I have a list of 20 names in col A. In B1 I want to display a
random name from this list. What is the easiest way to do
that please? An (admittedly brief) study of VLOOKUP in Help
for Excel 2000 left me a bit confused.

--
Terry, East Grinstead, UK


If it's a thing that you want to do from time to time, you could use the
helper column method, say in B, with the names and addresses in A.
Elsewhere, perhaps in C1, you might have "The winner is", and =A1 in D1.
You could even record a macro to get a new winner without going thro'
all the motions.


Thanks all, much appreciate the concise suggestions.

--
Terry, East Grinstead, UK


  #6   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Random name from a list?

"Terry Pinnell" wrote
Thanks all, much appreciate the concise suggestions.


Welcome. What is important is that it works for you,
and you understand what's happening
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:18,600 Files:362 Subscribers:60
xdemechanik
---


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
Random number from a list leerem Excel Discussion (Misc queries) 1 September 25th 08 01:55 PM
how to identify unique list of 200 random entries from a list of 3 tjb Excel Worksheet Functions 3 August 13th 07 02:15 PM
extract data from a random list & place in another ordered list sean8690 Excel Discussion (Misc queries) 1 January 2nd 07 06:06 PM
How do I find random number in list of random alpha? (Position is. jlahealth-partners Excel Discussion (Misc queries) 0 February 8th 05 05:31 PM
Setting up a random list from long list of names ? yorkshire exile Excel Discussion (Misc queries) 4 January 6th 05 01:44 PM


All times are GMT +1. The time now is 06:08 AM.

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"