Random numbers

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi there

This is for a little fun... we are playing a small in-house lottery game
ourselves. Is there a way to generate 6 random numbers in the series from 1
through 49, using excel? They could either be in a single cell, separated by
commas or... separately in six adjacent cells in a row.

Thanks

Raj
 
Hi,

Use

=RANDBETWEEN(1,49)

in a cell and and copy this formula to 5 adjacent cells.

Regards

Govind.
 
To get 6 unique numbers between 1 and 49....

put this formula in A1 and copy across row to AW1

=RAND()

in A2 put this formula

=RANK(A1,$A1:$AW1)

and copy across to F2

A2:F2 now gives your 6 random numbers

hide row 1 if you wish
 
Hi,

You need to have the Analysis Toolpak add-in enabled to use this formula.

Go to Tools-AddIns and enable 'Analysis Toolpak' and then try the formula.

Regards

Govind.
 

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

Randbetween function 12
bingo 5
Unique Random Numbers 5
Random number macro 10
Random Numbers 6
Random Numbers 5
Compile Error 2
PHP lottery number generator 0

Back
Top