How to Set Up 4-Color Conditional Formatting Thresholds in Excel
Question details
The user wants to apply four distinct conditional formatting colors to daily totals (such as low, target, warning, and high) based on multiple numerical thresholds.
- Product
- Excel
- Device & OS
- not provided
- Scenario
- Tracking daily nutrition totals or similar metrics that require multi-tier color coding based on customizable threshold values.
- Observed behavior
- The cell background color should automatically change to one of four designated colors depending on which numerical threshold range the daily total falls into.
Before starting, ensure you have the exact numerical boundaries for your four thresholds (e.g., low, target, warning, high) and clearly identify the specific cells you want to format.
Create Separate Formula-Based Conditional Formatting Rules
The most precise way to handle four specific thresholds is to create separate conditional formatting rules using logical Excel formulas.
By utilizing custom formulas for your conditional formatting rules, you can handle multiple strict threshold ranges. The AND function is especially useful for capturing values that fall strictly between two numbers.
Highlight the cells containing your daily totals (for example, cell C20).
Navigate to the Home tab, click on Conditional Formatting, and select 'New Rule'.
Select 'Use a formula to determine which cells to format'. Enter the formula =C20<1900, click Format to choose your desired 'low' color, and click OK.
Create two more rules using the same process. For the target range, use =AND(C20>=1900,C20<2300) and pick a target color. For the warning range, use =AND(C20>=2300,C20<=2500) and pick a warning color.
Create a final rule using the formula =C20>2500, apply a 'high' alert color like red or pink, and confirm your rules.
Use Lookup Tables for Dynamic Thresholds
If your threshold limits vary based on specific categories like meal times, you can reference a lookup table in your formatting rules.
Apply Multiple Conditional Formatting Rules Easily in WPS Office
WPS Office provides an intuitive Conditional Formatting Rules Manager that fully supports complex logical formulas like AND/OR, making it incredibly simple to set up multi-color thresholds for any dataset.
- 1. Open Your Data: Launch WPS Spreadsheet and open the document containing your daily totals.
- 2. Access Conditional Formatting: Highlight the target cells, navigate to the Home tab, and select 'Conditional Formatting' > 'New Rule'.
- 3. Input the Formulas: Choose the formula option, enter your threshold logic (e.g., =C20<1900), and pick your custom fill colors.
- 4. Manage Formatting Rules: Use the Rules Manager to review all four rules at once and ensure your color priorities are correct.

Frequently Asked Questions
Why are my conditional formatting colors overlapping or not showing correctly?
This usually happens due to conflicting boundary conditions or incorrect rule priorities. Open the Conditional Formatting Rules Manager and ensure your rules are evaluated in the correct order, checking the 'Stop If True' boxes if necessary.
Can I apply these 4-color threshold rules to an entire column?
Yes. Select the entire column (e.g., Column C) before creating the rule. Ensure your formula references the top cell of your selection without absolute row locking (e.g., =C1<1900 instead of =$C$1<1900).
Is it possible to base conditional formatting on text instead of numbers?
Yes. You can choose 'Format only cells that contain' from the New Rule menu, select 'Specific Text', and type the specific word or phrase you want to trigger the color change.




