Excel Conditional Formatting for Any Value Above a Limit
Question details
Format one cell red if any value in A2:A52 exceeds the control limit in F23, and green if none do.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Use a single indicator cell to show whether any value in a column is above a control limit.
- Observed behavior
- The indicator should be red when at least one value exceeds the limit and green otherwise.
Enter a numeric control limit in F23 and identify the cell you want to use as the indicator, such as F25. Check that the values to compare are in A2:A52.
Create red and green formula-based rules in Excel
Use two COUNTIF rules to update an indicator cell whenever the column values or control limit change.
Select F25, or another cell where you want the red or green result to appear.
Go to Home > Conditional Formatting > New Rule. Choose Use a formula to determine which cells to format, and enter =COUNTIF($A$2:$A$52,">"&$F$23)>0.
Click Format, choose a red fill on the Fill tab, and click OK to save the rule.
With the indicator cell still selected, go to Home > Conditional Formatting > New Rule and choose the formula option again. Enter =COUNTIF($A$2:$A$52,">"&$F$23)=0.
Click Format, choose a green fill, and click OK to save the second rule.

Create the same control-limit indicator in WPS Spreadsheets
Use formula-based conditional formatting in WPS Spreadsheets to show a red or green indicator for values above your control limit.
- 1. Open your workbook: Open the workbook in WPS Spreadsheets and select the indicator cell, such as F25.
- 2. Add the red rule: Go to Home > Conditional Formatting > New Rule, choose the formula-based rule option, and enter =COUNTIF($A$2:$A$52,">"&$F$23)>0.
- 3. Choose red formatting: Open Format, select a red fill, and confirm the rule.
- 4. Add the green rule: Create another formula-based rule using =COUNTIF($A$2:$A$52,">"&$F$23)=0, choose a green fill, and save the rule.

Frequently Asked Questions
Will a value equal to the control limit turn the indicator red?
No. The ">" comparison only counts values greater than F23. To include values equal to the limit, replace ">" with ">=" in both rule formulas.
What happens if A2:A52 is empty?
COUNTIF finds no values above the limit, so the green rule applies. Enter a numeric limit in F23 before using the indicator.
How do I change the range being checked?
In Excel, select the indicator cell and go to Home > Conditional Formatting > Manage Rules. Edit both formulas and replace $A$2:$A$52 with the range you want to check.
Why do the formulas use dollar signs?
The dollar signs keep the range and control-limit references fixed if the conditional formatting is applied or copied to other cells.




