I want random numbers generated without repeating numbers

J

Johncobb

In my worksheet in column CC in C1:C20 I want Excel to ganerate 20 random
numbers between 1 and 80 without repeating the same numbers.
At present I have the following formula entered and it works, but after I
click F9 some repeated numbers are generated.

=INT(RAND()*(80-1)+1)

How can I change the formula or replace it?
Thank you in advance for your help.
Ragards to all supporters.
John.
 
B

Bob Umlas

put the #s 1-80 in a column (D1:D80) and put =RAND() next to it. Sort D1:E80
by column E. The top 20 values in D (D1:D20) are what you want.
 

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

Top