random number without repeating?

  • Thread starter Thread starter nonoi via OfficeKB.com
  • Start date Start date
N

nonoi via OfficeKB.com

i want to do the random number for every each cell without repeat the same
number?do you know how to solve my problem?
 
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))
 

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

Similar Threads


Back
Top