Classify Values Within a Plus-or-Minus Percentage Range in Excel
Question details
Create a formula that classifies a value as above, below, or within a plus-or-minus percentage tolerance.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Compare a value with a reference value and a specified percentage tolerance, such as 100 ± 10%.
- Observed behavior
- The formula should return a label based on whether the value falls above, below, or within the calculated limits.
Choose cells for the value to test, the reference value, and the tolerance. Enter the tolerance as a nonnegative percentage, such as 10%, rather than 10.
Use a Nested IF Formula to Classify the Value
Calculate the upper and lower limits from the reference value and tolerance, then return the appropriate label.
Excel does not use ± as a calculation operator. The formula uses ABS so the tolerance works around either a positive or negative reference value.
In Excel, enter the value to test in A2, the reference value in B2, and the tolerance percentage in C2. For example, enter 105, 100, and 10%.
Select D2 and enter =IF(A2>B2+ABS(B2)*C2,"Above Range",IF(A2<B2-ABS(B2)*C2,"Below Range","Within Range")), then press Enter.
Review the label in D2. With a reference of 100 and a tolerance of 10%, values from 90 through 110 are within range; 105 returns "Within Range".
Drag the fill handle at the bottom-right corner of D2 down to classify values in additional rows.

Classify Percentage Tolerances in WPS Spreadsheet
Use the same nested IF formula in WPS Spreadsheet to label values above, below, or within a percentage tolerance.
- 1. Open a spreadsheet: Open WPS Spreadsheet and create a blank workbook or open an existing Excel file.
- 2. Enter the comparison data: Enter the value in A2, the reference in B2, and a nonnegative tolerance such as 10% in C2.
- 3. Add the classification formula: Select D2, enter =IF(A2>B2+ABS(B2)*C2,"Above Range",IF(A2<B2-ABS(B2)*C2,"Below Range","Within Range")), and press Enter.
- 4. Extend and save: Drag the fill handle down to apply the formula to other rows, then use Menu > Save As to save the workbook.

Frequently Asked Questions
Are values exactly on the tolerance limits included?
Yes. The formula uses greater-than and less-than comparisons, so values equal to either limit return "Within Range."
Why does Excel not calculate a formula containing ±?
Excel does not use ± as a calculation operator. Calculate the lower and upper limits separately using subtraction and addition, then compare the value with those limits.
Can I use a negative reference value?
Yes. The formula uses ABS(B2) to calculate a nonnegative tolerance around the reference. For example, -100 with a 10% tolerance has limits of -110 and -90.
How do I use one reference and tolerance for every row?
If all tested values use B2 and C2, replace those references in the formula with $B$2 and $C$2 before dragging the fill handle down. Leave A2 relative so it changes for each row.




