I reckon Y25 and AA25 have different values in them-try increasing the number of decimal places to check that. you can also change the formula to
=IF(round(Y25,2)<>round(AA25,2),"O","X")