How to Use Excel Conditional Formatting for Positive or Negative Thresholds
Question details
The user needs to set up conditional formatting or a status formula to flag data values that fall outside a specific positive or negative tolerance range.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Comparing a column of numerical data against a single threshold value stored in a separate cell to identify outliers.
- Observed behavior
- The user wants values that exceed the positive threshold or fall below its negative equivalent (like -4.6 or -5.6) to return 'FAIL' or be highlighted in pink.
Ensure your target threshold value is stored in a dedicated, static cell and that you use absolute cell references (such as $K$16) so the formula evaluates correctly when applied across an entire column.
Flag Thresholds Using IF and OR Formulas
Use a combined IF and OR formula in an adjacent column to clearly label data as PASS or FAIL based on your set limits.
This method is ideal when you want to output a distinct text status rather than simply changing the visual appearance of the cell.
Click on the cell adjacent to your first data point (e.g., K21) where you want the PASS or FAIL label to appear.
Type the formula =IF(OR(J21>$K$16,J21<-$K$16),"FAIL","PASS"). This checks if the value in J21 is greater than your positive threshold or less than your negative threshold in K16.
Press Enter, then double-click or drag the fill handle at the bottom-right of the cell to copy the formula down alongside your data column.

Highlight Outliers Using Conditional Formatting
Apply a formula-based conditional formatting rule to visually highlight cells that exceed your specified tolerances.
Easily Apply Conditional Formatting with WPS Spreadsheet
WPS Spreadsheet provides a seamless and user-friendly way to apply complex conditional formatting rules. It fully supports standard Excel functions, making it simple to highlight outliers and manage large datasets effectively.
- 1. Open your dataset in WPS Spreadsheet: Launch WPS Office and open the spreadsheet containing the data you want to analyze.
- 2. Access Conditional Formatting: Highlight your target data range, go to the Home tab, and click 'Conditional Formatting'.
- 3. Apply a custom formula: Select 'New Rule', choose the custom formula option, and enter =ABS(J21)>$K$16.
- 4. Choose your format and save: Set your preferred highlight color, such as pink, and click OK to instantly apply the rule to your data.

Frequently Asked Questions
Can I use absolute values to simplify the threshold formula?
Yes, using the ABS function simplifies the process. The formula =ABS(J21)>$K$16 checks if the absolute magnitude of your data exceeds the threshold, effectively testing both positive and negative limits at once without needing the OR function.
Why is my conditional formatting rule highlighting the wrong cells?
This usually happens due to incorrect relative and absolute referencing. Ensure your threshold cell uses absolute references (e.g., $K$16) by pressing F4 so it doesn't shift, while your data cell reference (e.g., J21) must remain relative to evaluate each row correctly.
How do I change the highlight color or threshold value later?
Because your formula links to a specific cell (like K16), you can simply type a new number into K16 to instantly update the threshold for all cells. To change the color, select your data, go to Conditional Formatting > Manage Rules, and click 'Edit Rule' to adjust the format.




