Random Whole Number Functions

R

Richard

In cell A1, I have an INT(RAND) formula to produce a random whole number.

In cell B1, I want another random whole number to be produced, but I don't
want it to be equal to the number generated in cell A1. Is there a way to
specify that in the INT(RAND) formula?
 
S

Shane Devenshire

Hi,

First you might consider using =RANDBETWEEN(1,100) instead of the
=INT(RAND()). However, that doesn't help with regards to generating unique
numbers.
 
S

Shane Devenshire

Hi,

Here is a way to make them unique:

in cell B1 enter =RANDBETWEEN(1,100)
in cell B2 enter:
=RANDBETWEEN(MAX(B$1:B1),MAX(B$1:B1)+B1)
fill this down.

Adjust this for your range.
 

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


Top