Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
theo499
 
Posts: n/a
Default RAND FUNCTION

I have a sheet which generates numbers using the =rand() function but it has
started producing some negative numbers, when they should only produce
numbers between 0 and 1. This has only happened recently, and if i try a
formula for example rand()*(1.5-0.5)+0.5, it generates numbers lower than
0.5 occasionally. Does anyone have an explanation for this, or an idea of
how i could return it to the origional method?
  #2   Report Post  
Posted to microsoft.public.excel.newusers
Biff
 
Posts: n/a
Default RAND FUNCTION

Hi!

This is a known bug. Do a Google Groups search on Bug in Excel's RAND()
Function and you'll find plenty of mention. Here's one discussion:

http://tinyurl.com/fofoe

Biff

"theo499" wrote in message
...
I have a sheet which generates numbers using the =rand() function but it
has
started producing some negative numbers, when they should only produce
numbers between 0 and 1. This has only happened recently, and if i try a
formula for example rand()*(1.5-0.5)+0.5, it generates numbers lower than
0.5 occasionally. Does anyone have an explanation for this, or an idea of
how i could return it to the origional method?



  #3   Report Post  
Posted to microsoft.public.excel.newusers
vandenberg p
 
Posts: n/a
Default RAND FUNCTION


Hello:

I think this is only a problem in Excel 2003 if you have not installed the
the Office 2003 Service Pack 1. I have not had it occur once
since the patch. In fact there was a hotfix before the patch:

http://support.microsoft.com/kb/834520/

So the best thing to do is intall the service packs. If you can't then
just change your rand() call to abs(rand()) which at least will not
produce negative random numbers.

Pieter Vandenberg


Biff wrote:
: Hi!

: This is a known bug. Do a Google Groups search on Bug in Excel's RAND()
: Function and you'll find plenty of mention. Here's one discussion:

: http://tinyurl.com/fofoe

: Biff

: "theo499" wrote in message
: ...
:I have a sheet which generates numbers using the =rand() function but it
:has
: started producing some negative numbers, when they should only produce
: numbers between 0 and 1. This has only happened recently, and if i try a
: formula for example rand()*(1.5-0.5)+0.5, it generates numbers lower than
: 0.5 occasionally. Does anyone have an explanation for this, or an idea of
: how i could return it to the origional method?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"