Thread: Zero as a value
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
StephanieH StephanieH is offline
external usenet poster
 
Posts: 95
Default Zero as a value

In F8, I have a formula that results in the value "0" (zero). I have the
cell formatted as a number.

In H8, I have the following formula:
=IF(F8=2,"1",IF(F8=1,"2", IF(F8=0,"3",IF(F8=-1,"4",IF(F8<-2,"5","N/A")))))

Given that my result in F8 is 0, I would expect the expression to evaluate
to 3. However, it returns 1.

When I type over the result of the formula and enter 0 directly into the
cell, it does returns the correct answer of 3.

In each of my tests, when F8 results in anything other than 0, H8 seems to
work fine.
How do I get Excel to recognize the value 0 for F8 in cell H8?