Formatting Issues

Excel Conditional Formatting for One Cell Based on Its Value

John WilsonJohn Wilson Dec 2, 2026 868 views

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.

Apply Excel Conditional Formatting to One Cell Based on Its Value
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the target cell

Click B7, or select the single cell you want to format.

2
Create a formula rule

Go to Home > Conditional Formatting > New Rule, then choose Use a formula to determine which cells to format.

3
Enter the condition

Enter =AND(ISNUMBER(B7),B7>=0,B7<=80), replacing B7 with the selected cell reference.

4
Set the formatting

Click Format, choose a light-red fill and dark-red font, and click OK to save the rule.

5
Check existing rules

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.

Create a Formula Rule for the Exact 0–80 Range
If the cell still looks highlighted: Check for a manually applied fill on the Home tab as well as other conditional formatting rules. A manual fill can remain visible when the conditional rule is not met.
Format cells with WPS Office

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. 1. Open the workbook: Open WPS Spreadsheet and use Open to select your Excel workbook.
  2. 2. Select the target cell: Click B7, or the single cell you want to format.
  3. 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. 4. Set the style: Choose a light-red fill and dark-red text in the rule's formatting settings, then confirm the rule.
Apply a formula-based condition to one cellChoose a fill and font color for matching valuesOpen and edit Microsoft Excel XLSX and XLS filesWork in a familiar spreadsheet interface
microsoft office alternative - wps office

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.