Random numbers formula

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi,

What is the formula to generate random numbers in a
specified range? For example: I want to generate random
numbers between 1 to 80. I also want the random numbers in
whole not decimals.

Thanx

John
 
Take a look at:

=randbetween(1,80)

It does require that you load the analysis toolpak. (Excel's help for
randbetween explains this.)
 
Hi John!

If you want a robust solution that will work with or without RANDBETWEEN,
you can use:

=INT(RAND()*(80-1+1))+1

It's based on a formula I got from a post by Tushar Mehta:

=INT(RAND()*(B-A+1))+A
Where B>0
--
--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
(e-mail address removed)
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.
 

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

Random number generation - with no repeats 3
Generate random numbers 3
excel doc 2
Random Numbers 6
Randomiser 3
Randomizing 3
How do you randomly generate numbers in Excel 2007? 4
Randbetween 1

Back
Top