Conditional Highlighting if values are different

I have a table where I am entering all the values from my paycheck and one where I am calculating the deductions based on the percentage I should be paying.


I would like for it to highlight a cell if the values are different.


I tried creating another table with Actual Check::B2=Calculated::B2 and then set the rule to highlight if the cell is FALSE.


This doesn't work because everywhere I have a formula in the calculated table the value on the new table is FALSE even if the results are the same as the value in the actual table.


I really don't feel like I explained this well but hopefully someone will understand or can at least ask the right questions to help me explain it better.

Posted on Mar 11, 2025 8:28 AM

Reply
Question marked as Top-ranking reply

Posted on Mar 11, 2025 11:07 AM

You could also round the values before comparison:


=IF(ROUND(A2,2)=ROUND(B2,2),TRUE,FALSE)


additionally, If you're just looking for a TRUE/FALSE flag you can eschew the IF() statement and just say:


=ROUND(A2,2)=ROUND(B2,2)


which will return TRUE or FALSE depending on whether the ROUNDed numbers match.

5 replies
Question marked as Top-ranking reply

Mar 11, 2025 11:07 AM in response to xtzws

You could also round the values before comparison:


=IF(ROUND(A2,2)=ROUND(B2,2),TRUE,FALSE)


additionally, If you're just looking for a TRUE/FALSE flag you can eschew the IF() statement and just say:


=ROUND(A2,2)=ROUND(B2,2)


which will return TRUE or FALSE depending on whether the ROUNDed numbers match.

Mar 11, 2025 10:38 AM in response to xtzws

If you use percentages or multiplication, it’s likely that the formula will fail because of those cent fractions. E.g. if your actual check is 578.36 and calculated is 578.362, the formula will output false.


So here is my updated formula that checks to see if the calculated value is within 0.005% of the true value.

=IF(A2>(B2×0.99995),IF(A2<(B2×1.00005),TRUE,FALSE))

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Conditional Highlighting if values are different

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.