Randomly Select from a list

G

Guest

I am looking to randomly select people from a list created in Excel. An
example would be I have 100 people and I want to randomly select 10% of them.
 
G

Guest

The following formula might do the trick:

=INDEX($A:$A,RANDBETWEEN(1,COUNTA($A2:$A397)),RANDBETWEEN(1,1))

Substitute $A:$A with the column that contains the values and $A2:$A397 with
the range in that column that you want to extract from. Then copy it down
until you have 10 rows. Press F9 when you want to regenerate the list.
 
C

Chip Pearson

See the "Random Elements From A Range Of Worksheet Cells" section at
www.cpearson.com/Excel/RandomNumbers.aspx . This returns an array of N
random non-duplicated elements from a range on a worksheet. You can use the
result array in another VBA procedure or you can array enter the formula
into another range on a worksheet.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel, 10 Years
Pearson Software Consulting
www.cpearson.com
(email on the web site)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top