Excel Conditional Formatting for Rates Above or Below a Limit
Question details
Apply green formatting to purchase rates at or below a specified limit and red formatting to rates above it.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Compare a range of purchase rates with a limit stored in a worksheet cell.
- Observed behavior
- Rates at or below the limit should appear green, while rates above it should appear red.
Identify the rate range and the cell containing the limit. Make sure both contain numeric values in comparable units, such as percentages; the example below uses A2:A100 for rates and D1 for the limit.
Create Two Formula-Based Conditional Formatting Rules in Excel
Use two rules to compare each purchase rate with a limit stored in one cell.
Select A2:A100, or select your actual rate cells without the header.
Go to Home > Conditional Formatting > New Rule. Choose Use a formula to determine which cells to format, enter =A2<=$D$1, and select Format > Fill to choose green. Click OK.
With the rate range still selected, go to Home > Conditional Formatting > New Rule. Choose the formula option, enter =A2>$D$1, and select Format > Fill to choose red. Click OK.
Open Home > Conditional Formatting > Manage Rules and confirm that both rules apply to the rate range. Change D1 to verify that the colors update.

Highlight Rates Against a Limit in WPS Spreadsheet
Use formula-based conditional formatting in WPS Spreadsheet to color rates green or red based on a limit cell.
- 1. Open the workbook: Open WPS Spreadsheet and choose File > Open to select your workbook.
- 2. Select the rates: Enter the limit in D1, then select the rate cells A2:A100, or use the corresponding cells in your worksheet.
- 3. Add the green rule: Go to Home > Conditional Formatting > New Rule, choose the formula-based rule, and enter =A2<=$D$1. Set the fill to green and confirm.
- 4. Add the red rule: Create another formula-based conditional formatting rule for the same range using =A2>$D$1. Set the fill to red and confirm.

Frequently Asked Questions
What happens when a rate equals the limit?
The rate is green because the first rule uses <=. The red rule uses >, so it applies only when the rate exceeds the limit.
Why does the limit reference use dollar signs?
In $D$1, the dollar signs lock both the column and row. This makes every cell in the selected rate range compare against D1.
Can I change the limit without editing the rules?
Yes. Change the value in D1, or whichever cell your formulas reference, and the conditional formatting will recalculate.
Why might a rate not receive the expected color?
Check Home > Conditional Formatting > Manage Rules to confirm the applied range and formulas. Also check that the rates and limit are numeric values expressed in comparable units.




