Value is within tolerance

Summary
Explanation
Inside the IF function, the expected value is subtracted from the measured or actual value. The result may be positive or negative, depending on the actual value, so the ABS function is used to convert the result to a positive number in all cases. This number is then compared to the allowed tolerance as a logical test inside IF. If the difference is less than or equal to the allowed tolerance, IF returns "OK". If not, IF returns "Fail". These messages can be customized as needed.
Download 200+ Excel Shortcuts
Get over 200 Excel shortcuts for Windows and Mac in one handy PDF.