Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default randomize set of numbers

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!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default randomize set of numbers

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,ROUN DUP(RAND()*50,0)))

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

-Pramathesh

=m
justintime wrote:
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!


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 136
Default randomize set of numbers

Hello,

I suggest to use my function UniqRandInt:
http://www.sulprobil.com/html/uniqrandint.html

HTH,
Bernd

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default randomize set of numbers

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

"justintime"

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!
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
how can I randomize a set of 496 numbers? Stuart Leeman Excel Discussion (Misc queries) 3 May 7th 09 07:08 PM
randomize a set of numbers in 1 column that are located in another Six Sigma Blackbelt Excel Worksheet Functions 5 September 4th 08 07:54 PM
Can I randomize numbers ALREADY in a column? GrsmRngr Excel Worksheet Functions 2 March 13th 08 01:16 PM
Can I randomize whole numbers in my excel sheet? AngeCP7 Excel Worksheet Functions 4 June 14th 05 08:05 PM
randomize dallas Excel Programming 11 May 30th 04 08:27 PM


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

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"