What's wrong in this formula????

E

Ekser

=IF(J19=2,G19*100,IF(J19=3,G19*125,IF(J19=4,G19*150,IF(J19=5,G19*175,IF(J19>5,G19*200)))))


I get a return 'FALSE'?!

In this case, J19 = 3.00 (number, two decimals as result of anothe
formula)and G19 = 2, so it should return 2.00


:cool
 
J

Jerry W. Lewis

In an empty cell enter the formula
=(J19-3)
You will find that the value in J19 is not exactly 3. Your formula only
defines an output if J19 is exactly 2,3,4 or 5, or if J19>5 (which also
includes most text values); any other value and it will return FALSE.

You can set up inequality conditions, condition on ROUND(J19,2), or at
the menu item Tools|Options|Calculation and check "Precision as
displayed" (which will impact all calculations, not just this one).

Jerry
 

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