Re: Randomly selected numbers
- From: "RagDyeR" <ragdyer@xxxxxxxxxxxxx>
- Date: Thu, 14 Apr 2005 08:30:30 -0700
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 !
--------------------------------------------------------------------
"RagDyeR" <ragdyer@xxxxxxxxxxxxx> wrote in message
news:OfiLlHQQFHA.1268@xxxxxxxxxxxxxxxxxxxxxxx
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!
==============================================
"Keith Robinson" <Keith.Robinson28@xxxxxxxxxxxx> wrote in message
news:IUt7e.13199$C2.4427@xxxxxxxxxxxxxxxxxxxxxxx
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
.
- References:
- Randomly selected numbers
- From: Keith Robinson
- Re: Randomly selected numbers
- From: RagDyeR
- Randomly selected numbers
- Prev by Date: Re: Freezing Top and Bottom Rows
- Next by Date: reinstalando la ayuda para el editor visual basic, o algo, pero necesito que funcione
- Previous by thread: Re: Randomly selected numbers
- Next by thread: Re: Randomly selected numbers
- Index(es):
Relevant Pages
|