π Table of Contents
A well-organized spreadsheet shouldn't require you to read every row to understand what's going on. Color-coding rows based on cell values transforms a wall of text into a visual dashboard β overdue tasks jump out in red, active items glow green, and pending items stand out in yellow.
In this guide, you'll learn 5 methods to highlight entire rows based on cell values, from basic conditional formatting to automated rules that update continuously.
Why Color-Code Your Rows
- Instant visibility: Spot critical items in seconds without reading every cell.
- Prioritization: See overdue tasks, low inventory, or high-value leads at a glance.
- Error detection: Unusual values (negative numbers, missing dates) become immediately visible.
- Team collaboration: Color-coded sheets are self-documenting β new team members understand the data faster.
- Status tracking: Track workflow stages (pending β in progress β done) visually.
Method 1: Conditional Formatting β Single Cell
Google Sheets' built-in conditional formatting can highlight individual cells based on their values. This is the simplest starting point.
Steps:
- Select the cells you want to format (e.g., Column C β the "Status" column).
- Go to Format β Conditional formatting.
- Under "Format cells if", choose "Text is exactly".
- Enter the value (e.g.,
Overdue). - Choose a fill color (e.g., red).
- Click "Done".
Result: Only cells in Column C that say "Overdue" will turn red. But the entire row won't be highlighted β just the matching cell.
If you want the entire row to change color (not just one cell), you need Method 2 β a custom formula approach.
Method 2: Custom Formula β Highlight the Entire Row
This is the most powerful built-in method. A custom formula lets you highlight every cell in a row based on the value of one specific column.
Steps:
- Select your entire data range (e.g.,
A2:F100). - Go to Format β Conditional formatting.
- Under "Format cells if", choose "Custom formula is".
- Enter the formula:
=$C2="Overdue"
- Choose your fill color (e.g., light red:
#fce8e6). - Click "Done".
The formula =$C2="Overdue" uses $C (locked column) but 2 (unlocked row). This means: "For each row, check Column C. If it says 'Overdue', highlight the entire row." If you use $C$2, it would only check cell C2 for every row β which is wrong.
How It Works
When you apply this to range A2:F100:
- For row 2: checks if
$C2= "Overdue" β highlights A2:F2 - For row 3: checks if
$C3= "Overdue" β highlights A3:F3 - For row 4: checks if
$C4= "Overdue" β highlights A4:F4 - ...and so on for every row in the range.
Method 3: Multiple Colors for Multiple Values
Want different colors for different statuses? Create multiple conditional formatting rules.
Example: Traffic Light System
| Status | Color | Formula |
|---|---|---|
| Active | π’ Green | =$C2="Active" |
| Pending | π‘ Yellow | =$C2="Pending" |
| Overdue | π΄ Red | =$C2="Overdue" |
| Completed | π΅ Blue | =$C2="Completed" |
Steps:
- Select range
A2:F100. - Add the first conditional formatting rule (e.g., Active β green).
- Click "Add another rule".
- Repeat for each status/color combination.
- Drag rules to reorder priority (top rules take precedence).
If a cell matches multiple rules, the first matching rule (top of the list) wins. Drag your highest-priority rules to the top.
Method 4: Date-Based Highlighting
Highlight rows based on how old or recent a date is β perfect for tracking overdue tasks, expiring subscriptions, or aging inventory.
Common Date Formulas:
| Condition | Formula | Use Case |
|---|---|---|
| Older than 30 days | =$D2<TODAY()-30 |
Overdue invoices |
| Due within 7 days | =AND($D2>=TODAY(), $D2<=TODAY()+7) |
Upcoming deadlines |
| Past due | =$D2<TODAY() |
Expired items |
| Today | =$D2=TODAY() |
Today's tasks |
| This week | =WEEKNUM($D2)=WEEKNUM(TODAY()) |
Weekly reviews |
Use AND/OR functions for complex rules: =AND($C2="Pending", $D2<TODAY()-30) highlights rows that are both "Pending" AND older than 30 days.
Method 5: CleanSheet Automated Rules (Easiest)
If conditional formatting feels limited β no scheduled updates, complex formula syntax, no action beyond coloring β CleanSheet takes row highlighting to the next level.
What CleanSheet Adds Over Conditional Formatting:
| Feature | Conditional Formatting | CleanSheet |
|---|---|---|
| Highlight rows | β | β |
| Delete matching rows | β | β |
| Archive matching rows | β | β |
| Move rows to another sheet | β | β |
| Scheduled auto-run | β (real-time only) | β (1h, 6h, 12h, 24h) |
| Preview before applying | β | β |
| Run log / audit trail | β | β |
| No formula needed | β (formulas required) | β (visual builder) |
Steps:
- Install CleanSheet (free trial).
- Open the sidebar from Extensions β CleanSheet.
- Create a rule:
- Select sheet and column
- Choose condition: "equals" β
Overdue - Action: "Highlight" β pick color
- Add more conditions with AND/OR for complex rules.
- Preview β Run β Optionally enable auto-schedule.
The real power of CleanSheet is that the same rule engine can delete, archive, or move matching rows β not just highlight them. Start with highlighting to validate your conditions, then switch to an action when you're confident.
π¨ Automate Your Row Highlighting
Build visual rules without formulas. Highlight, delete, archive, or move matching rows β on a schedule.
Install CleanSheet FreeReal-World Use Cases
π’ CRM: Flag Overdue Leads
Highlight leads that have been "Pending" for more than 30 days. Your sales team instantly sees which prospects need follow-up.
Rule: IF Status = "Pending" AND Date > 30 days old β Highlight yellow
π¦ Inventory: Low Stock Alert
Color-code products that are running low. Red for out of stock, yellow for below reorder point.
Rule: IF Quantity < 10 β Highlight red | IF Quantity < 50 β Highlight yellow
π Project Management: Overdue Tasks
Automatically flag tasks past their deadline that aren't marked as complete.
Rule: IF Due Date < Today AND Status β "Done" β Highlight red
π° Finance: Large Transactions
Highlight transactions above a certain threshold for review.
Rule: IF Amount > $10,000 β Highlight blue
Frequently Asked Questions
How do I highlight an entire row based on one cell's value?
Select the entire data range, go to Format β Conditional formatting, choose "Custom formula is", and enter a formula like =$C2="Overdue" (using a $ before the column letter but not the row number). Set your desired fill color and click Done.
Can I use multiple colors for different values?
Yes! Create multiple conditional formatting rules, each with a different formula and color. For example, green for "Active", yellow for "Pending", and red for "Overdue". Rules are applied in order, so put higher-priority rules at the top.
Can I highlight rows based on dates?
Yes. Use custom formulas like =$D2<TODAY()-30 to highlight rows where the date in Column D is older than 30 days. CleanSheet also has built-in "older than X days" conditions that make date-based highlighting even easier β no formulas needed.
Why isn't my conditional formatting working on the entire row?
The most common mistake is the formula reference. Make sure you use =$C2 (dollar sign on column only), not =$C$2 (locked to row 2) or =C2 (shifts both column and row). Also ensure your "Apply to range" covers all columns you want to highlight.