How to use conditional formatting in Google Sheets
Learn to highlight cells, rows, or columns automatically in Google Sheets using conditional formatting rules, color scales, and custom formulas.

Quick answer
Select the cells you want to format, click Format, then Conditional formatting to open the rules panel. Choose 'Single color' or 'Color scale,' set the condition or value range that should trigger formatting, pick a text or background style, and click Done. Rules apply instantly and update automatically as your data changes.
Steps at a glance
- Select the cell range you want to format
- Open Format then Conditional formatting from the menu
- Choose Single color or Color scale as the rule type
- Set the condition that should trigger formatting
- Pick a text color or background style
- Click Done to apply the rule
- Add another rule or edit existing ones as needed
Interactive demo
Summary
Conditional formatting in Google Sheets automatically changes a cell's text or background color when it meets a condition you set, like containing a specific word or exceeding a number. It helps important data stand out instantly without manual color-coding, and updates automatically as values change.
Step-by-step guide
Step 1
Open your spreadsheet and select a range
Open the spreadsheet in Google Sheets and select the cells, column, or row you want to format. You can select a single column, a full table, or a specific range like B2:B50 depending on what data you're highlighting.
Step 2
Open the Conditional Formatting menu
Click Format in the top menu, then choose Conditional formatting. A panel opens on the right side of the screen showing the rule editor for the range you selected.
Step 3
Choose a single-color rule
Under 'Format cells if,' pick a condition such as 'Text contains,' 'Greater than,' or 'Is not empty,' then enter the value that should trigger the rule. Under 'Formatting style,' choose the background color or text style to apply when the condition is met.
Step 4
Or apply a color scale instead
Switch to the Color scale tab if you want a gradient effect based on value size, shading cells darker as values rise. Choose a minimum, maximum, and optional midpoint, and pick a color for each point.
Step 5
Use a custom formula for advanced rules
Select 'Custom formula is' under the condition dropdown to format cells based on another cell's value, such as highlighting a row when a status column says 'Overdue.' Reference the first row of your range with a relative cell reference so the rule applies correctly down the column.
Step 6
Click Done to save the rule
Click Done at the bottom of the panel to apply the rule to your selected range. The formatting appears immediately, and you can return to Format > Conditional formatting anytime to see the rules on the range.
Step 7
Add more rules or reorder priority
Click Add another rule in the panel to layer multiple conditions on the same range, such as combining a color scale with a text-based rule.
Why this matters
You're tracking a budget, project status, or inventory list and need overdue tasks, negative balances, or low stock to jump out visually. Setting up conditional formatting once means you never have to manually recolor cells again as new data comes in or existing values change.
Frequently asked questions
Can I apply more than one conditional formatting rule to the same range?
Yes. Click Add another rule in the Conditional format rules panel to stack multiple conditions on the same cells.
Can conditional formatting reference a cell on a different sheet?
Not directly. A custom formula like =B2=Sheet2!A2 shows 'Invalid formula'. Wrap the reference in INDIRECT instead, such as =B2=INDIRECT("Sheet2!A2"), to compare values across sheets.
Related guides
Continue with more step-by-step guides for getting work done.
How to create a filter in Google SheetsLearn how to create a filter in Google Sheets to sort, hide, and analyze data quickly using the built-in filter tool on any free account.
How to sort a table A–Z in Google SheetsSort a table in Google Sheets A to Z or by several columns without scrambling rows. Keep the header in place, or sort with a formula instead.
How to add a dropdown list in Google SheetsLearn how to add a dropdown list in Google Sheets using data validation, so cells only accept approved values from a list.
How to use COUNTIF in Google SheetsLearn how to use the COUNTIF function in Google Sheets to count cells matching a condition, with text, number, and date examples.
How to use data validation in Google SheetsLearn how to set up data validation in Google Sheets to restrict entries, build dropdowns, add checkboxes, and enforce custom rules.
How to use the IF formula in Google SheetsLearn how to write IF formulas in Google Sheets to test conditions, return custom results, and automate decisions in your data.
Create interactive demos like this one — free, no coding required.
Start for free →