View Single Post
  #12   Report Post  
Posted to microsoft.public.excel.newusers
[email protected] curiousgeorge408@hotmail.com is offline
external usenet poster
 
Posts: 85
Default RagDyer: Please explain Random number Generator

On Jan 14, 3:53*pm, "RagDyer" wrote:
In an out-of-the-way location, say Column Z, enter the Rand function[.]
In Z1 enter =Rand()[.] And copy down to Z49.

Then enter this formula wherever you wish:
=INDEX(ROW($A$1:$A$49),RANK(Z1,$Z$1:$Z$49))
Copy down as many rows as you need random numbers.


Can you please explain the theory of operation.

I agree that it works. But it seems that =RANK(Z1,$Z$1:$Z$49) would
suffice. RANK(Z1,$Z$1:$Z$49) seems to return the same thing that the
full INDEX expression returns. It seems that ROW($A$1:$A$49) is
always 1.

In any case, I agree with RayT that this is a clever, yet nicely
simple solution to the problem.