Excel Conditional Formatting for One Cell Based on Its Value
Question details
The user wants to conditionally format a single Excel cell based on its numeric value and prevent it from being highlighted when it does not meet the rule.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Apply a light-red fill with dark-red text to one cell when its value is between 0 and 80, inclusive.
- Observed behavior
- The cell may remain highlighted regardless of its value because of an incorrect comparison, cell reference, or conflicting rule.
Identify the target cell and confirm that it contains a numeric value rather than a number stored as text. The examples below use B7; replace B7 with your own cell reference.
Create a Formula Rule for the Exact 0–80 Range
Use a formula when the cell should be highlighted only for numeric values from 0 through 80, including both endpoints.
Click B7, or select the single cell you want to format.
Go to Home > Conditional Formatting > New Rule, then choose Use a formula to determine which cells to format.
Enter =AND(ISNUMBER(B7),B7>=0,B7<=80), replacing B7 with the selected cell reference.
Click Format, choose a light-red fill and dark-red font, and click OK to save the rule.
With the cell selected, open Home > Conditional Formatting > Manage Rules. Confirm that Applies to references only the intended cell, and edit or remove any unwanted conflicting rules.

Use a Less Than Rule for Nonnegative Whole Numbers
Use this shortcut if the cell contains only nonnegative whole numbers and values up to 80 should be highlighted.
Apply a Single-Cell Conditional Formatting Rule in WPS Spreadsheet
Use WPS Spreadsheet to open your workbook and create a formula-based rule that highlights one cell when its numeric value is between 0 and 80.
- 1. Open the workbook: Open WPS Spreadsheet and use Open to select your Excel workbook.
- 2. Select the target cell: Click B7, or the single cell you want to format.
- 3. Add the condition: Choose Home > Conditional Formatting > New Rule and select the formula-based rule option. Enter =AND(ISNUMBER(B7),B7>=0,B7<=80), using your target cell reference.
- 4. Set the style: Choose a light-red fill and dark-red text in the rule's formatting settings, then confirm the rule.

Frequently Asked Questions
Why is my Excel cell highlighted even when its value is outside the range?
Select the cell and open Home > Conditional Formatting > Manage Rules. Check the formula, the Applies to range, and any other rules. Also check whether a fill color was applied manually.
Does Less Than 81 mean the same as 0 through 80?
Only if the cell contains nonnegative whole numbers. Less Than 81 also includes negative values and decimals between 80 and 81; use =AND(ISNUMBER(B7),B7>=0,B7<=80) for the exact range.
How do I apply the formula to a different cell?
Select the desired cell before creating the rule, then replace each B7 in the formula with that cell's address. Check the Applies to field in Manage Rules to confirm the target.
What if the value is stored as text?
The formula using ISNUMBER will not highlight a number stored as text. Select the cell and use any available Convert to Number option from its error indicator, then check the rule again.




