View Single Post
  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mike H Mike H is offline
external usenet poster
 
Posts: 11,501
Default Excel 2000, RAND and IF functions do not work together for me

your welcome

"Jesse CH" wrote:

Sorry - I keep posting replies before I see your latest comment, making my
replies belated. This does indeed fix my problem. Thanks!
--
-Jesse CH


"Mike H" wrote:

Jesse,

I missed one of your points. Formatting with zero decimal places has no
effect except to alter the way you see the number, the underlying number is
un-changed. If you really want to see a 3 change your formula to this and tap
F9 a few times.
Using the Int function reduces it to 5 options.

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

Mike

"Jesse CH" wrote:

When the cell B2 is reformatted to general and the number 3 is entered, I do
indeed see Yes. However, when I put the RAND function back in to B2, it still
returns as FALSE. I have formatted the cell as Number with 0 decimal places,
does that matter? I've also tried formatting individual and all cells as
general and number.
--
-Jesse CH


"Mike H" wrote:

Jesse,

It doesn't, it displays Yes when b2 = 3 so there is something wrong with the
way you are seeing B2.

As a start try this. Delete the formula from B2, format the cell as general
and enter the number 3. Does B3 change to yes? If it does then out your
formula back in B2 and it should work.

Mike
--
-Jesse CH