IF function

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?
 
P

Pete_UK

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
 
Top