How to make random numbers stay the same

W

wyobuff

I am making a sample inspection database and I want to assign random numbers
to a series of cells. When I make a change or open the spreadsheet, the
numbers all change to a new random number. How can I use the formula but
make it keep the random numbers that it chooses?
 
M

Mike H

Hi,

You can use a macro but another way is to generate the random numbers and
copy them. paste them to a new location using

PasteSpecial|Values

Mike
 
S

Sean Timmons

I would say the easiest is to copy the cells, then paste special/values to
get rid of the formula.

Or, if this is the only calculation in the workbook and you feel the desire,
you can go to Tools - Options - Calculation tab and change to manual, but I
wouldn't suggest that unless you can remember to change it back when
necessary.
 
W

wyobuff

Thank you. This answered the question. I put it to use and it worked.
Thanks alot.!!

wyobuff
 
S

ShaneDevenshire

Hi,

There is another simple way, if you have the Analysis ToolPak add-in attached:

Choose Tools, Data Analysis, Random Number Generation, enter 1 in the Number
of Variables, enter the number of numbers you want in Number of Random
Numbers, choose Uniform under Distribution, click Output Range and indicate
the top cell of the range you want to fill.
 

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