Excel Conditional Formatting for Values Outside ±10%
Question details
Highlight cells whose values differ by more than 10% from corresponding reference values.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Compare each cell in one range with the value in the same row of another range, or with one fixed reference cell.
- Observed behavior
- Cells outside the ±10% tolerance should be highlighted; values within or exactly at the tolerance should remain unhighlighted.
Identify the cells to format and their reference cells. In the example below, D2:D100 contains the values to highlight and E2:E100 contains numeric reference values.
Create a formula-based conditional formatting rule in Excel
Use this rule to highlight values in column D that differ by more than 10% from their references in column E.
Select D2:D100, starting at D2 so that D2 is the active cell.
On the Home tab, select Conditional Formatting > New Rule, then choose Use a formula to determine which cells to format.
In the formula field, enter =ABS($D2-$E2)>0.1*ABS($E2). The row references adjust for each cell in the selected range.
Select Format, choose a fill color or other style, and select OK to save the format and rule.

Highlight values outside a 10% tolerance in WPS Spreadsheet
Use a formula-based conditional formatting rule in WPS Spreadsheet to compare each value with its corresponding reference and highlight values outside the tolerance.
- 1. Open the spreadsheet: Open WPS Spreadsheet and use Open to select your workbook.
- 2. Select the values: Select D2:D100, starting at D2 so the formula uses the first row of the selected range.
- 3. Add the rule: Choose Home > Conditional Formatting > New Rule and select the option to use a formula. Enter =ABS($D2-$E2)>0.1*ABS($E2).
- 4. Set the highlight: Choose a format such as a fill color, then confirm the rule to highlight matching cells.

Frequently Asked Questions
Are values exactly 10% above or below the reference highlighted?
No. The formula uses >, so only differences greater than 10% are highlighted. Change > to >= if values exactly at the limit should also be highlighted.
How do I compare every value with the same reference cell?
In the conditional formatting formula, use an absolute reference such as $E$2: =ABS($D2-$E$2)>0.1*ABS($E$2).
Does the formula work with negative reference values?
Yes. ABS($E2) uses the magnitude of the reference value to calculate the 10% threshold, including when the reference is negative.
What happens if the reference value is zero?
The 10% threshold is zero, so any nonzero value in the corresponding target cell is highlighted. A zero target value is not highlighted.




