"IF" stmt says two cells are different but they are NOT

S

stebro

I need help troubleshooting an IF stamtent that is determining that the
values in two cells are different. The statement is literally

=IF((K5+K18-K37)=(I5+I18-I37),"Balances","Out of Balance")

The "K" series and the "I" series all evaluate to exactly the same thing so
the statement should be evaluating as TRUE but evaluates as FALSE.

I have removed as many variables as possible - for instance the series are
the results of other calculations, but I've dummied it down to just looking
at the values and it still tays they aren't equal.

I've seen this type of thing before related to the cell formats, but in this
case the formats are identical. I'm at the end of my rope - anybody out
there have anything left???

Most appreciated -
Steve
 
D

Dave F

How many digits of precisions are your calculations using?

Perhaps you are viewing data in currency format but the calculation
itself is calculating thousandths, ten-thousandths, etc., of precision.
This could account for the unequal values.
 
S

stebro

Sean - you get the prize. I modified your response to round to two places
instead of zero, but this worked. I can't say I understand, since
everything is formatted the same, but it does work, so now I can get on with
more productive things. This forum is wonderful!

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top