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  

RANDBETWEEN generating numbers outside range



 
 
Thread Tools Display Modes
  #1  
Old May 25th, 2010, 08:41 PM posted to microsoft.public.excel.worksheet.functions
Penny Black
external usenet poster
 
Posts: 1
Default RANDBETWEEN generating numbers outside range

Using Excel 2003. Simple task of trying to generate a pseudo-random number
between 1 and 52 (yes, a deck of cards). I'm populating the cells with
=RANDBETWEEN(1,52). Many of the cells are displaying negative numbers.

Any ideas?

  #2  
Old May 25th, 2010, 09:10 PM posted to microsoft.public.excel.worksheet.functions
Fred Smith[_4_]
external usenet poster
 
Posts: 2,386
Default RANDBETWEEN generating numbers outside range

Are you sure that's exactly the formula you are using?

I entered =randbetwwen(1,52), filled it down 51 times, and got the expected
results: a bunch of numbers between 1 and 52, none negative.

Regards,
Fred

"Penny Black" wrote in message
...
Using Excel 2003. Simple task of trying to generate a pseudo-random
number
between 1 and 52 (yes, a deck of cards). I'm populating the cells with
=RANDBETWEEN(1,52). Many of the cells are displaying negative numbers.

Any ideas?


  #3  
Old May 25th, 2010, 09:12 PM posted to microsoft.public.excel.worksheet.functions
Gord Dibben
external usenet poster
 
Posts: 20,252
Default RANDBETWEEN generating numbers outside range

I cannot replicate this in 2003.

I get all positives between 1 and 52.

I dragged down for 1000 rows and recalculated many times.

No negatives.

I can't think of a reason why you get negatives unless you have typed
negative top and/or bottom parameters.

Your example formula does not show that however.


Gord Dibben MS Excel MVP

On Tue, 25 May 2010 12:41:01 -0700, Penny Black
wrote:

Using Excel 2003. Simple task of trying to generate a pseudo-random number
between 1 and 52 (yes, a deck of cards). I'm populating the cells with
=RANDBETWEEN(1,52). Many of the cells are displaying negative numbers.

Any ideas?


  #4  
Old May 25th, 2010, 09:16 PM posted to microsoft.public.excel.worksheet.functions
Stephen Bye[_2_]
external usenet poster
 
Posts: 12
Default RANDBETWEEN generating numbers outside range

The RAND function returns negative numbers in Excel 2003
http://support.microsoft.com/kb/834520


  #5  
Old May 25th, 2010, 09:51 PM posted to microsoft.public.excel.worksheet.functions
Gord Dibben
external usenet poster
 
Posts: 20,252
Default RANDBETWEEN generating numbers outside range

Thanks for the link Stephen.

Do you know if this problem also relates to RANDBETWEEN function?

Doesn't specifically state so but maybe??

I guess OP installing the hotfix wouldn't hurt.


Gord


On Tue, 25 May 2010 21:16:01 +0100, "Stephen Bye"
wrote:

The RAND function returns negative numbers in Excel 2003
http://support.microsoft.com/kb/834520


  #6  
Old May 25th, 2010, 10:14 PM posted to microsoft.public.excel.worksheet.functions
Mike Middleton[_2_]
external usenet poster
 
Posts: 90
Default RANDBETWEEN generating numbers outside range

Penny Black -

My ideas are the same as I posted in the microsoft.public.mac.office.excel
newsgroup:

(A) Early Excel 2003 had a serious bug in its random number generator. Be
sure to update to Excel 2003 SP3.

(B) You may want to avoid duplicates, in which case search Bing or Google
for "excel unique random numbers" (without the quotes).

- Mike
http://www.MikeMiddleton.com



"Penny Black" wrote in message
...
Using Excel 2003. Simple task of trying to generate a pseudo-random
number
between 1 and 52 (yes, a deck of cards). I'm populating the cells with
=RANDBETWEEN(1,52). Many of the cells are displaying negative numbers.

Any ideas?

 




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 11:48 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.