Home / Blog / Highlight Rows

How to Highlight Rows Based on Cell Value in Google Sheets

πŸ“‹ Table of Contents

  1. Why Color-Code Your Rows
  2. Method 1: Conditional Formatting (Text Match)
  3. Method 2: Custom Formula (Full Row)
  4. Method 3: Multiple Colors for Multiple Values
  5. Method 4: Date-Based Highlighting
  6. Method 5: CleanSheet Automated Rules
  7. Real-World Use Cases
  8. FAQ

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

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:

  1. Select the cells you want to format (e.g., Column C β€” the "Status" column).
  2. Go to Format β†’ Conditional formatting.
  3. Under "Format cells if", choose "Text is exactly".
  4. Enter the value (e.g., Overdue).
  5. Choose a fill color (e.g., red).
  6. 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.

⚠️ This Only Highlights One 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:

  1. Select your entire data range (e.g., A2:F100).
  2. Go to Format β†’ Conditional formatting.
  3. Under "Format cells if", choose "Custom formula is".
  4. Enter the formula:
=$C2="Overdue"
  1. Choose your fill color (e.g., light red: #fce8e6).
  2. Click "Done".
πŸ”‘ The Key: Dollar Sign Placement

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:

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:

  1. Select range A2:F100.
  2. Add the first conditional formatting rule (e.g., Active β†’ green).
  3. Click "Add another rule".
  4. Repeat for each status/color combination.
  5. Drag rules to reorder priority (top rules take precedence).
⚠️ Rule Order Matters

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
πŸ’‘ Combine Date + Status

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:

  1. Install CleanSheet (free trial).
  2. Open the sidebar from Extensions β†’ CleanSheet.
  3. Create a rule:
    • Select sheet and column
    • Choose condition: "equals" β†’ Overdue
    • Action: "Highlight" β†’ pick color
  4. Add more conditions with AND/OR for complex rules.
  5. Preview β†’ Run β†’ Optionally enable auto-schedule.
πŸ”„ Beyond Highlighting

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 Free

Real-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.