It will really work better if all the numbers are included when you copy
down the formula.
Forgot to anchor the references with absolutes.
Use this:
=INDEX(ROW($A$1:$A$49),RANK(Z1,$Z$1:$Z$49),$Z$1:$Z$49)
--
Regards,
RD
--------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
--------------------------------------------------------------------
Since you say this is for a lottery, I guess you'll be using it quite often.
This procedure will allow you to display a new set of numbers each time you
hit the <F9> key.
First, you have to enter the RAND() function in a column, and then refer to
that column with a formula.
Say you use Column Z.
Enter
=RAND()
in Z1, and copy down to Z49.
Then, place this formula anywhere, and copy it down as many rows as you wish
to display your random numbers:
=INDEX(ROW(A1:A49),RANK(Z1,Z1:Z49),Z1:Z49)
Now, every time you hit the <F9> (calculate) key, you'll get a new random
display.
--
HTH,
RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================
Hi
How can I randomly select six different numbers at any one time i.e lottery
numbers. I have tried using the formula
=INT(RAND()*49)+1, which works OK but I get repeated numbers, can anyone
help?
Keith