How to Use Excel Formulas to Flag Values Outside a Tolerance Range
Question details
The user needs to set up conditional formatting that evaluates values and visually flags any that fall outside an acceptable tolerance range (e.g., plus or minus 50 percent of the lowest value).

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Applying a conditional formatting rule using custom MIN formulas to identify outlier data points compared to a dynamic threshold.
- Observed behavior
- The conditional formatting highlights the wrong cells when copied because absolute cell references lock the formula to the original evaluation cells instead of updating relative to the active cell.
Identify the exact range of cells you want to evaluate and determine which cells must remain fixed (using absolute references like $A$1) versus those that need to change per row (using relative references like A1).
Apply Conditional Formatting with Correct Absolute and Relative References
Create a custom conditional formatting rule utilizing the MIN function and ensure proper cell locking to accurately evaluate each cell against your tolerance range.
When using formulas in conditional formatting, Excel evaluates the formula for each cell in the selected range relative to the active cell at the time the rule is created. If you use absolute references (like $A$1) for the active cell, the rule will incorrectly evaluate only the original cell, even when copied to other rows.
Click and drag to select all the cells you want to apply the formatting to (for example, A1 to J10).
Navigate to the Home tab on the ribbon, click 'Conditional Formatting', and select 'New Rule'.
In the dialog box, select 'Use a formula to determine which cells to format'.
Input your formula, ensuring the active cell has a relative reference (e.g., A1) and the comparison range is correctly absolute or mixed. For a 50 percent tolerance above the minimum of specific columns, enter: =A1>=1.5*MIN($A1,D1,G1,J1).
Click the 'Format' button, choose how you want the flagged values to appear (such as a red fill color), and click 'OK' twice to apply the rule.

Easily Flag Data Outliers with WPS Spreadsheet
WPS Spreadsheet features a powerful Conditional Formatting engine that works exactly like Excel. You can effortlessly set up custom formulas to highlight outliers, manage tolerances, and analyze your datasets without worrying about compatibility.
- 1. Open your dataset in WPS Spreadsheet: Launch WPS Office, open your spreadsheet file, and highlight the data range you wish to format.
- 2. Create a New Rule: Go to the 'Home' tab, click 'Conditional Formatting', and choose 'New Rule' from the drop-down menu.
- 3. Input your tolerance formula: Select 'Use a formula to determine which cells to format', then type your MIN formula with correct relative and absolute references (e.g., =A1>=1.5*MIN($A$1,$A$3,$A$5)).
- 4. Set highlighting style: Click 'Format', choose a standout background color to flag the outliers, and click 'OK' to save.

Frequently Asked Questions
Why does my conditional formatting highlight the wrong cells when I copy it to a new row?
This happens when the formula uses absolute references (dollar signs, like $A$1) for the active cell. When you copy the formatting down, the formula still points to row 1. Remove the dollar sign before the row number (e.g., use $A1 or A1) so it updates relative to the new row.
How do I flag values that are lower than my tolerance range instead of higher?
You can change the greater-than-or-equal-to (>=) operator in your formula to a less-than-or-equal-to (<=) operator. For example, to flag values that fall below 50% of the minimum value, use =A1<=0.5*MIN($A$1,$B$1,$C$1).
Can I use the Format Painter to copy this tolerance formula to other columns?
Yes. Select a cell that already has the correct conditional formatting applied, click the Format Painter tool, and then select the new cells. Just ensure your formula's column and row locks ($) are configured correctly before using the Format Painter.




