Sub topic 3
Single Color Rules with Built-In Conditions
Assume you can navigate a Google Sheets spreadsheet, enter values and simple formulas, and select ranges such as A2:F100. This chapter uses those skills to add formatting that responds to cell values.
A single color rule applies one format, such as a background color or text color, when a condition is true. For example, you can make every cell containing Done green or every number below 50 red. Google Sheets checks the values in the selected range and updates the formatting when those values change.
Open the conditional formatting panel
- Select the cells that you want to format.
- Open Format in the menu bar.
- Choose Conditional formatting.
The Conditional format rules panel opens on the right. It contains two main sections:
- Apply to range identifies the cells the rule can format.
- Format rules identifies the condition that must be met.
Under Format rules, choose Single color if it is not already selected. Then open the condition menu. Common built-in conditions include:
- Is empty
- Is not empty
- Text contains
- Text starts with
- Text is exactly
- Date is
- Date is before
- Date is after
- Greater than
- Less than
- Is equal to
After choosing a condition, enter the value or date that Google Sheets should compare. Use the formatting controls below it to select a background color, text color, or both. Select Done to save the rule.
Example: highlight unfinished tasks
Suppose a task list uses column E for status:
| Task | Owner | Due date | Status |
|---|---|---|---|
| Draft outline | Mina | 2026-12-02 | In progress |
| Review data | Leo | 2026-12-03 | Done |
| Send report | Ana | 2026-12-04 | Not started |
To highlight unfinished tasks in the status column:
- Select
E2:E100. - Open Format > Conditional formatting.
- Confirm that Apply to range contains
E2:E100. - Under Format rules, choose Text is exactly.
- Enter
In progress. - Choose a yellow background.
- Select Done.
Repeat the process for Not started, perhaps using a light red background. Each condition is a separate rule. The word must match the cell value according to the selected condition. With Text is exactly, extra spaces or different spelling can prevent a match.
Choosing the right built-in condition
Built-in conditions are useful when the comparison is simple. Choose a condition that describes the intended test directly.
| Goal | Range example | Condition |
|---|---|---|
| Mark high scores | `B2:B100` | Greater than `90` |
| Mark missing names | `A2:A100` | Is empty |
| Mark a status | `E2:E100` | Text is exactly `Done` |
| Mark recent dates | `C2:C100` | Date is after a chosen date |
For numeric comparisons, make sure the cells contain numbers rather than text that only looks like a number. For date comparisons, make sure the cells contain real date values. A date typed as plain text may not behave like a date in a conditional rule.
The rule formats only the cells in its apply-to range. If you select E2:E100, the task description in column A will not change color. To format an entire task row, select a wider range such as A2:E100. A built-in rule may then compare the value in each cell of that range, so whole-row formatting based on one status cell usually requires a custom formula rule, covered later.
Modify or remove a rule
To review existing rules, select a cell in the relevant area and open Format > Conditional formatting. The panel lists rules that affect the selected range.
Select a rule to edit its range, condition, or colors. To remove it, select the rule and choose the trash-can icon. Deleting a rule does not delete the cell contents.
You can also copy a rule by copying the formatted cells and using Edit > Paste special > Conditional formatting only in another location. Check the new apply-to range afterward. A copied rule can refer to a different range than you intended.
Exercise
You want cells B2:B100 with values below 60 to have a light red background. Which range and built-in condition should you use?
Show answer
Select B2:B100, choose the single color rule with the condition Less than, enter 60, choose a light red background, and select Done.