Generating random numbers

C

CCPaquin

I would like to know how I can use Excel to generate a set of 5 random integers
with no repetition. I want to input a number in a cell, and get back 5 random
integers between 1 and that number.

Claude
 
J

Jerry W. Lewis

Put all the possible integers you would be willing to accept in one
column, put =RAND() in a second column, then sort both columns by the
second column and take the first 5 values from the first column.

Jerry
 

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