#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 208
Default Random Selection

Hello all,

I am attempting to generate a random group of names from a list and am
having a bit of trouble. In a previous posting I found the formula
=INDEX(A4:A15,INT(RAND()*(12-1)+1)), which is perfect for selecting a single
name. The trouble that I have is that I need a random sample of 20% of the
list. Copying the formula into multiple cells leaves open the chance that
any given name can be selected multiple times.

Does anyone know a way to perform this same function in subsequent cells,
while excluding previously selected names?

Thank you for your help.

Craig
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Random Selection

One play ..

Assume Names listed in A4:A15
In B4: =RAND()
In C4: =INDEX($A$4:$A$15,RANK(B4,$B$4:$B$15))
Select B4:C4, copy down to C15. Hide away col B. C4:C15 will return a random
scramble of what's in A4:A15, refreshable via pressing the F9 key. Just point
to as many cells as you need in C4 down to grab your random x%.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Craig" wrote:
Hello all,

I am attempting to generate a random group of names from a list and am
having a bit of trouble. In a previous posting I found the formula
=INDEX(A4:A15,INT(RAND()*(12-1)+1)), which is perfect for selecting a single
name. The trouble that I have is that I need a random sample of 20% of the
list. Copying the formula into multiple cells leaves open the chance that
any given name can be selected multiple times.

Does anyone know a way to perform this same function in subsequent cells,
while excluding previously selected names?

Thank you for your help.

Craig

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default Random Selection

One way:

http://www.mcgimpsey.com/excel/udfs/...noreplace.html


In article ,
Craig wrote:

Hello all,

I am attempting to generate a random group of names from a list and am
having a bit of trouble. In a previous posting I found the formula
=INDEX(A4:A15,INT(RAND()*(12-1)+1)), which is perfect for selecting a single
name. The trouble that I have is that I need a random sample of 20% of the
list. Copying the formula into multiple cells leaves open the chance that
any given name can be selected multiple times.

Does anyone know a way to perform this same function in subsequent cells,
while excluding previously selected names?

Thank you for your help.

Craig

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 208
Default Random Selection

Thank you both. These are tremendously helpful.

"JE McGimpsey" wrote:

One way:

http://www.mcgimpsey.com/excel/udfs/...noreplace.html


In article ,
Craig wrote:

Hello all,

I am attempting to generate a random group of names from a list and am
having a bit of trouble. In a previous posting I found the formula
=INDEX(A4:A15,INT(RAND()*(12-1)+1)), which is perfect for selecting a single
name. The trouble that I have is that I need a random sample of 20% of the
list. Copying the formula into multiple cells leaves open the chance that
any given name can be selected multiple times.

Does anyone know a way to perform this same function in subsequent cells,
while excluding previously selected names?

Thank you for your help.

Craig


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 selection kwidener Excel Worksheet Functions 5 September 5th 06 04:04 PM
Random Selection Cookie New Users to Excel 2 May 3rd 06 12:05 AM
Random question / data selection hank bulger Excel Worksheet Functions 2 December 6th 05 12:11 AM
Random Selection Cris Excel Worksheet Functions 2 October 16th 05 06:15 PM
How can I set up the random selection of a cell from within a ran. nybbac Excel Discussion (Misc queries) 5 January 1st 05 05:39 AM


All times are GMT +1. The time now is 05:42 PM.

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

About Us

"It's about Microsoft Excel"