randomize set of numbers

  • Thread starter Thread starter justintime
  • Start date Start date
J

justintime

Hi!

Column A contains a set of 50, non repeating numbers in random order.

Is there a way to have Excel randomly pick 5 of those numbers, not
repeating its choosing, and display them across a row beginning in
column C?

Thanks!
 
Assuming you have your numbers A1 to A50, you can enter the following
formula in in columns C onwards
=INDEX($A$1:$A$50,IF(ROUNDUP(RAND()*50,0)=0,1,ROUNDUP(RAND()*50,0)))

With every recalculate event (Press F9) the result will change.

-Pramathesh

=m
 
As they are in random order, just pick the top five.
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware

"justintime"
<[email protected]>
wrote in message
Hi!
Column A contains a set of 50, non repeating numbers in random order.

Is there a way to have Excel randomly pick 5 of those numbers, not
repeating its choosing, and display them across a row beginning in
column C?
Thanks!
 

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

Back
Top