Formatting Issues

Excel Conditional Formatting for Any Value Above a Limit

Muhammad TalhaMuhammad Talha Dec 2, 2026 868 views

Question details

Format one cell red if any value in A2:A52 exceeds the control limit in F23, and green if none do.

Excel Conditional Formatting for Any Value Above a Limit
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the indicator cell

Select F25, or another cell where you want the red or green result to appear.

2
Create the red rule

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.

3
Set the red fill

Click Format, choose a red fill on the Fill tab, and click OK to save the rule.

4
Create the green 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.

5
Set the green fill

Click Format, choose a green fill, and click OK to save the second rule.

Create red and green formula-based rules in Excel
How the comparison works: The rules test for values strictly greater than F23, so a value equal to the limit does not trigger red. If no values exceed the limit, including when the range is empty, the indicator is green.
WPS Spreadsheets

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. 1. Open your workbook: Open the workbook in WPS Spreadsheets and select the indicator cell, such as F25.
  2. 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. 3. Choose red formatting: Open Format, select a red fill, and confirm the rule.
  4. 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.
Monitor an entire range with one indicator cellUpdate the indicator automatically when values or the limit changeOpen and edit Microsoft Excel XLSX workbooksUse familiar spreadsheet formatting tools
QA img-9

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.