Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
nonoi via OfficeKB.com
 
Posts: n/a
Default random number without repeating?

i want to do the random number for every each cell without repeat the same
number?do you know how to solve my problem?
  #2   Report Post  
Ragdyer
 
Posts: n/a
Default

Say you wanted 1 to 20 to be your numbers.

In an out of the way column, say Z, enter into Z1:
=RAND()
And copy down to Z20.

You can now enter this formula anywhere you wish, and copy down for 20 rows:

=INDEX(ROW($A$1:$A$20),RANK(Z1,$Z$1:$Z$20))

If you don't want consecutive numbers, you can make your own list of
numbers, or letters or even words.
Just enter them in say ColumnY, from 1 to 20, and try this:

=INDEX($Y$1:$Y$20),RANK(Z1,$Z$1:$Z$20))
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------


"nonoi via OfficeKB.com" wrote in message
...
i want to do the random number for every each cell without repeat the same
number?do you know how to solve my problem?


  #3   Report Post  
JE McGimpsey
 
Posts: n/a
Default

For most purposes, RAND() provides a pretty good approximation of unique
random numbers for relatively small sets.

If you mean random integers, see

http://www.mcgimpsey.com/excel/randint.html





In article ,
"nonoi via OfficeKB.com" wrote:

i want to do the random number for every each cell without repeat the same
number?do you know how to solve my problem?

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
Seed numbers for random number generation, uniform distribution darebo Excel Discussion (Misc queries) 3 April 21st 23 09:02 PM
Excel 2003 random number generator JJ Excel Discussion (Misc queries) 1 May 4th 05 01:02 PM
Random Number Non Repeating ... a_ryan1972 Excel Discussion (Misc queries) 3 April 6th 05 09:26 PM
VB Random Number Generation/Insertion/NextWorksheet Craig Excel Discussion (Misc queries) 4 February 27th 05 10:00 PM
Random Number Questions Greegan Excel Worksheet Functions 1 January 5th 05 02:00 AM


All times are GMT +1. The time now is 11:16 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"