IF function

  • Thread starter Thread starter jason2444
  • Start date Start date
J

jason2444

in cell A1 i have $30.83 in cell B1 i have $30.83 in cell C1 i have
=IF(A1<=B1,"Correct","Overcharged") cell c1 is returning Overcharged but the
numbers are = anyone know what is going on here?
 
Probably a rounding error - you might have 30.830000001 in one cell
and 30.82999999 in another - they are not exactly equal, although they
will look equal in the display. You might like to change the formula
to this:

=IF(ROUND(A1,2)<=ROUND(B1,2),"Correct","Overcharged")

Hope this helps.

Pete
 

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

Similar Threads


Back
Top