Thread: IF function
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Pete_UK Pete_UK is offline
external usenet poster
 
Posts: 8,856
Default IF function

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","Overcharge d")

Hope this helps.

Pete

On Mar 5, 7:52*pm, jason2444
wrote:
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?