Google Sheets tool
Conditional Formatting Generator
Describe the rule you want—highlight duplicates, compare columns, flag outliers—and get a custom formula ready to paste into Format → Conditional formatting.
Two fields. One click. Your rule copies to the clipboard when it’s ready.
Build your conditional formatting rule
Rule library
Conditional formatting examples for Google Sheets
Duplicate emails, overdue dates, low stock, weekend calendars, and more. Load any card into the generator at the top of this page, or copy the custom formula into Format → Conditional formatting.
13 ready-made rules. Click Load in generator to pre-fill the form.
Highlight Duplicate Email Addresses
Imported leads contain duplicate email addresses.
Apply to
Email column
Suggested range
A2:A
Sheets setup
- Select your range
- Format → Conditional formatting
- Custom formula is → paste rule below
Custom formula
=COUNTIF($A$2:$A,$A2)>1
Highlight Expired Dates Automatically
Contracts, subscriptions, or invoices expire without notice.
Apply to
Due date column
Suggested range
B2:B
Sheets setup
- Select your range
- Format → Conditional formatting
- Custom formula is → paste rule below
Custom formula
=$B2<TODAY()
Highlight Low Inventory Levels
Inventory reaches dangerous low levels unnoticed.
Apply to
Inventory quantity column
Suggested range
C2:C
Sheets setup
- Select your range
- Format → Conditional formatting
- Custom formula is → paste rule below
Custom formula
=$C2<10
Color Entire Rows Based on Status
Project trackers become difficult to scan visually.
Apply to
Project status column
Suggested range
A2:Z
Sheets setup
- Select your range
- Format → Conditional formatting
- Custom formula is → paste rule below
Custom formula
=$D2="Completed"
Highlight Missing Required Fields
Important fields are left blank in forms and databases.
Apply to
Required information columns
Suggested range
B2:B
Sheets setup
- Select your range
- Format → Conditional formatting
- Custom formula is → paste rule below
Custom formula
=ISBLANK($B2)
Highlight Weekend Dates Automatically
Need to visually separate weekends from workdays.
Apply to
Calendar date column
Suggested range
A2:A
Sheets setup
- Select your range
- Format → Conditional formatting
- Custom formula is → paste rule below
Custom formula
=WEEKDAY(A2,2)>5
Highlight Top Performing Sales Numbers
Top performers are hard to identify in large reports.
Apply to
Revenue or sales column
Suggested range
B2:B100
Sheets setup
- Select your range
- Format → Conditional formatting
- Custom formula is → paste rule below
Custom formula
=B2>=LARGE($B$2:$B$100,5)
Detect Duplicate Invoice Numbers
Duplicate invoices create accounting and payment errors.
Apply to
Invoice ID column
Suggested range
A2:A
Sheets setup
- Select your range
- Format → Conditional formatting
- Custom formula is → paste rule below
Custom formula
=COUNTIF($A:$A,$A1)>1
Highlight Upcoming Deadlines in the Next 7 Days
Upcoming deadlines are missed without visual warnings.
Apply to
Deadline date column
Suggested range
B2:B
Sheets setup
- Select your range
- Format → Conditional formatting
- Custom formula is → paste rule below
Custom formula
=AND($B2>=TODAY(),$B2<=TODAY()+7)
Create Heatmaps for Large Data Tables
Large datasets are difficult to interpret quickly.
Use Format → Conditional formatting → Color scale on your range. No custom formula required.
Apply to
Large numerical data ranges
Suggested range
B2:F50
Sheets setup
- Select your range
- Format → Conditional formatting
- Choose Color scale
Formatting
Color scale
Highlight Cells Containing Specific Keywords
Urgent or dangerous messages are buried in large datasets.
Apply to
Support message column
Suggested range
A2:A
Sheets setup
- Select your range
- Format → Conditional formatting
- Custom formula is → paste rule below
Custom formula
=REGEXMATCH(A2,"urgent|asap|critical")
Highlight Duplicate Names Across Multiple Columns
Duplicate contacts exist across first and last name combinations.
Apply to
First name + last name columns
Suggested range
A2:B
Sheets setup
- Select your range
- Format → Conditional formatting
- Custom formula is → paste rule below
Custom formula
=COUNTIFS($A:$A,$A2,$B:$B,$B2)>1
Highlight AI Content That Needs Review
AI-generated content contains placeholders or unfinished sections.
Apply to
AI-generated content column
Suggested range
A2:A
Sheets setup
- Select your range
- Format → Conditional formatting
- Custom formula is → paste rule below
Custom formula
=REGEXMATCH(A2,"\[.*\]|TODO|FIXME|Lorem Ipsum")
Watch conditional formatting in action
Step-by-step rules: highlight duplicates, compare columns, color scales, and custom formulas.
Browse tutorialsApply it in Sheets
Select your range, open Format → Conditional formatting, choose Custom formula is, and paste the generated rule.
Google’s official guide covers the full panel if you want a refresher.
Google Sheets help