View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Shane Devenshire[_2_] Shane Devenshire[_2_] is offline
external usenet poster
 
Posts: 3,346
Default Random Whole Number Functions

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.
--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Richard" wrote:

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?