Two figures rarely match to the penny — rounding, FX, or estimates create small gaps. A tolerance check passes when the difference is within an allowed amount, so trivial differences don’t trigger false alarms.
The example
$1,000.02 vs $1,000.00, tol $0.05.
| A | B | |
|---|---|---|
| 1 | Check | Result |
| 2 | Within $0.05? | TRUE |
The formula
The formula:
How it works
How it works:
ABS(a - b)is the size of the gap, ignoring which is larger.- Compare it to the tolerance — within it passes, beyond it fails.
- Use an absolute tolerance (e.g. $0.05) or a relative one (a percent of the value).
- Wrap in
IFto return Pass/Investigate, or feed a conditional-format rule.
Relative tolerance scales with size. A $0.05 absolute tolerance is right for small amounts but too tight for millions. Use ABS(a-b) <= rate * MAX(ABS(a),ABS(b)) for a percentage tolerance, so a 0.1% allowance flexes with the numbers. Pick absolute for cash reconciliation, relative for estimates and forecasts.
Try it: interactive demo
Two values and a tolerance.
Variations
Relative tolerance
Percent of value:
Pass/investigate
Readable:
The gap itself
How far:
Pitfalls & errors
Use ABS. Without it the sign of the difference matters — you want magnitude.
Absolute vs relative. A fixed tolerance is too tight for large numbers; scale it for big values.
Set tolerance deliberately. Too loose hides real errors; too tight cries wolf.
Practice workbook
Frequently asked questions
How do I check if two values are within tolerance in Excel?
How do I use a percentage tolerance?
Why use ABS?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class