Excel - Generating random numbers

Asked By tobbey on 05-Jan-10 01:24 AM
How do i generate random 4 digit numbers using office outlook?




Joe User replied to tobbey on 05-Jan-10 03:00 AM
If your question is really about Outlook, of course you should post it to an
Outlook discussion group.

On the off-chance that you simply mistyped and you are really asking about
Excel, you really have not given enough details to answer the question.

Interpreting you literally, the answer could be as simple as:

=RANDBETWEEN(0,9999)

formatted with the Custom format 0000 .

Note that that might generate some 4-digit numbers with leading zeros.  You
might consider those to be 1-, 2- or 3-digit numbers.

Also note that, unfortunately, the number will change every time you edit
the workbook -- any cell(!).  You might find that undesirable.
Mike Middleton replied to tobbey on 05-Jan-10 03:05 AM
tobbey  -

To generate 4-digit random numbers in Excel, you could use

=INT(RAND()*10000)

-  Mike
http://www.MikeMiddleton.com



How do i generate random 4 digit numbers using office outlook?