Skip to main content

How to compare numbers but allowing a tolerance in Excel?

Author: Xiaoyang Last Modified: 2021-01-07
doc compare numbers with tolerance 1

In Excel, we can apply the formula: =A1=B1 to return a TRUE or FALSE to identify if the two compared cells are equal, but, sometimes, we need to compare two numbers but allowing a tolerance. For example, I have the following data, column A and column B, to compare them with a plus or minus tolerance of 5, that is to say if cell A1 is more or less than cell B1 5 number, it will get a TRUE, otherwise, get a FALSE as following screenshot shown. To solve this problem, this article may help you.

Compare two numbers but allowing a tolerance with formulas

arrow blue right bubble Compare two numbers but allowing a tolerance with formulas

The following formulas can help you to return a TRUE or FALSE when you compare two numbers with a tolerance, please do as this:

1. Enter any of the following formulas into a blank cell beside your compared cells, see screenshot:



Note: In these formulas: A1 and B1 is the two numbers that needed to be compared, and the number 5 indicates the tolerance range of the two number, you can change them to your need.

doc compare numbers with tolerance 2

2. Then drag the fill handle down to the cells that you want to apply this formula, and it will return a TRUE if the two numbers are in a specified tolerance range, or else, FALSE is displayed, see screenshot:

doc compare numbers with tolerance 1

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Comments (4)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
if i use this formula =AND(A1<=B1+5,A1>=B1-5) instead of it equalling True if it passes is it possible to get it to equal another cell
This comment was minimized by the moderator on the site
if between 100mm,90mm tolerance is 0.3 excel formulas
This comment was minimized by the moderator on the site
I am trying to set up a formula that says if A is +5% of another number, then run a calculation. However, the above are only helping in comparison. Any ideas?
This comment was minimized by the moderator on the site
Hi, i need a solution in excel with formula for, If in column value is .550 ± .030 and when i entered a value in next column if entered value is with in that limit then it should highlight in one color and if out off limit it should highlight in red color.
There are no comments posted here yet
Leave your comments
Posting as Guest
Rate this post:
0   Characters
Suggested Locations