A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

generating random numbers



 
 
Thread Tools Display Modes
  #1  
Old September 15th, 2003, 09:45 PM
Roger
external usenet poster
 
Posts: n/a
Default generating random numbers

Is there a way (or formula) to generate a random number in
a cell? If so, can I specify the range I want the random
number to fall into, e.g., 1 through 6, 0 through 9, 1
through 20?

Thanks.

Roger
  #2  
Old September 15th, 2003, 09:52 PM
Peo Sjoblom
external usenet poster
 
Posts: n/a
Default generating random numbers

Try

=INT(RAND()*20+1)

or if you have ATP installed

=RANDBETWEEN(1,20)

--

Regards,

Peo Sjoblom

"Roger" wrote in message
...
Is there a way (or formula) to generate a random number in
a cell? If so, can I specify the range I want the random
number to fall into, e.g., 1 through 6, 0 through 9, 1
through 20?

Thanks.

Roger



  #3  
Old September 17th, 2003, 01:48 PM
Roger
external usenet poster
 
Posts: n/a
Default generating random numbers

Peo,

Great, this works! Thanks.

Roger
-----Original Message-----
Try

=INT(RAND()*20+1)

or if you have ATP installed

=RANDBETWEEN(1,20)

--

Regards,

Peo Sjoblom

"Roger" wrote in message
...
Is there a way (or formula) to generate a random number

in
a cell? If so, can I specify the range I want the

random
number to fall into, e.g., 1 through 6, 0 through 9, 1
through 20?

Thanks.

Roger



.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:50 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.