Formatting Issues

How to Format Excel Cells Red or Green Based on Percentage Values

Nimra MalikNimra Malik Nov 11, 2026 868 views

Question details

The user needs to set up conditional formatting to automatically fill percentage cells with red or green colors based on whether they fall above or below a specific benchmark percentage.

How to Format Excel Cells Red or Green Based on Percentage Values
Product
Excel
Device & OS
not provided
Scenario
Comparing a list of percentage values against a single target benchmark (such as a golf handicap, sales goal, or performance metric) to visually differentiate passing and failing scores.
Observed behavior
Requires creating a conditional formatting rule using a custom formula that correctly applies color fills by comparing two percentage values.
Before you start

Ensure your target data cells are formatted as Percentages, and that you have a specific cell containing your benchmark percentage to reference in your rule.

Solution 1Recommended

Apply Conditional Formatting with a Custom Formula

Create two formula-based conditional formatting rules to evaluate your data range against the reference cell, assigning green for meeting the target and red for falling short.

Using a formula in conditional formatting allows you to dynamically compare a range of cells against a single benchmark cell. By mixing relative references for your data and absolute references for the benchmark, Excel will correctly evaluate each individual cell.

1
Select the target data range

Highlight all the cells containing the percentage values you want to format (for example, A2:A20).

2
Create a new rule for the green format

Go to the 'Home' tab, click 'Conditional Formatting', and select 'New Rule'. Choose 'Use a formula to determine which cells to format'.

3
Enter the formula for meeting the benchmark

In the formula box, type `=A2>=$B$2` (assuming A2 is the first cell in your selected range and B2 is your absolute benchmark cell). Click 'Format', choose a green Fill color, and click 'OK'.

4
Create a new rule for the red format

Keep the same range selected, click 'Conditional Formatting', and select 'New Rule' again. Choose the formula option once more.

5
Enter the formula for falling below the benchmark

Type `=A2<$B$2` in the formula box. Click 'Format', choose a red Fill color, and click 'OK' to apply.

Apply Conditional Formatting with a Custom Formula
Using Absolute References: Always use dollar signs for your benchmark cell reference (e.g., $B$2) so the formula continues pointing to the exact benchmark cell as it evaluates the rest of the column.
Easily Format Spreadsheets with WPS Office

Apply Conditional Formatting with WPS Spreadsheet

WPS Spreadsheet features an intuitive and robust conditional formatting tool that perfectly supports formula-based rules. It makes comparing percentages and visualizing data effortless.

  1. 1. Open your file: Launch WPS Spreadsheet and select the range of percentage cells you wish to format.
  2. 2. Access Conditional Formatting: Navigate to the 'Home' tab and click on the 'Conditional Formatting' button.
  3. 3. Set a new rule: Click 'New Rule' from the drop-down menu and choose 'Use a formula to determine which cells to format'.
  4. 4. Input the formula and format: Enter your comparison formula (e.g., `=A2>=$B$2`), set the desired background color, and click 'OK'.
Fully compatible with Microsoft Excel (.xlsx) conditional formatting rules.Intuitive and easy-to-use interface for creating custom formula-based formatting.Lightweight and fast performance, even when handling complex datasets.Free built-in data visualization templates to streamline your workflow.
microsoft office alternative - wps office

Frequently Asked Questions

Why is my conditional formatting applying the wrong color to the entire column?

This usually happens if you used an absolute reference (like $A$2) for your starting data cell instead of a relative reference (like A2). Check your rule and remove the dollar signs from the data cell reference so it can evaluate row by row.

Can I use three colors instead of two for my percentage comparison?

Yes. You can create a third rule with another formula for a specific range, or you can use the built-in 'Color Scales' feature under Conditional Formatting to apply a dynamic three-color gradient based on the percentage values.

How do I clear conditional formatting rules if I make a mistake?

Select the cells with the incorrect formatting, go to the 'Home' tab, click 'Conditional Formatting', choose 'Clear Rules', and then select 'Clear Rules from Selected Cells'.

Does conditional formatting work if the benchmark cell is on another worksheet?

Yes, you can reference a benchmark cell located on another worksheet. Your formula would simply include the sheet name, looking something like `=A2>=Sheet2!$B$2`.