Hiya
I tested your IF Statement on some fairly simple figures and it did return a value of "even" when cell B32 was equal to zero.
I'd guess that cell B32 may be formatted to no decimal places, so appears to contain a value of 0 when it may in fact contain something like 0.1 or -0.1 (or could it be formatted as text??)
A slightly more "elegant" version of the IF statement is as follows:
=IF(B32>0,"over taxed",IF(B32<0,"under taxed","even"))
This states that if B32 is greater than zero then "over taxed" is returned, if B32 is less than zero then return "under taxed" otherwise return "even". This covers all eventualities and should work for you.
JAF
thanks but its reading from a cell with this in it
=IF(B28=0,"0",(SUM(B28-D18))) could that be the problem the cell is set to currency.
Try taking the "0" out of quotes, I think it's returning 0 as a string, not a number
Hi, I think asking the IF statement to return something in quotes makes it return an alphanumeric rather than a numeric value. Try taking out the quotes so that it reads
=IF(B28=0,0,(SUM(B28-D18))
and see if your second column starts reading the 0 value correctly
Don't put parentheses around the zero in your formula. By adding parentheses you're telling Excel that it's a text value.
-Ben