
How I Use ChatGPT to Create Custom Formulas for Conditional Formatting in Google Sheets?
Weâve all been there.
Youâre working on a sheet â maybe itâs a task tracker, a sales dashboard, or an attendance register â and you want certain rows or cells to automatically change color based on conditions.
â
Highlight overdue tasks in red
â
Color high sales in green
â
Flag missing entries in yellow
These color cues make a huge difference. They help you spot exceptions, clean your data, and make your sheet visually organized.
But hereâs the problemâŠ
đ« Writing Custom Conditional Formulas Is Not Easy
Even if youâre familiar with Google Sheets, writing formulas like:
=AND(B2="Pending", TODAY() > C2)
or
=ISBLANK(A2)
isnât always straightforward.
You need to:
- Understand how logical functions like
AND(),OR(),NOT()work - Know how to reference columns and rows correctly
- Deal with time, text, or error values
- Fix broken logic when your formatting doesnât apply
Itâs frustrating, and sometimes it takes way more time than it should.
Now, every time I want to colorize my data based on logic, I simply describe what I want â and ChatGPT gives me the formula.
Yes, just like that.
And the best part? It works even if you donât know anything about formulas. Just type your condition in plain English. ChatGPT translates it into the exact formula you need.
Letâs say I want to highlight all rows where the task status is anything other than âDoneâ.
So I ask ChatGPT:
âWrite a custom formula for conditional formatting in Google Sheets to highlight rows where Column E is not equal to âDoneâ.â
ChatGPT replies:
=$E2<>"Done"
Perfect. I paste this into the âCustom formula isâ field under conditional formatting and choose a background color.
Now all ânot doneâ tasks are clearly highlighted.
Suppose I want to highlight tasks that are not done and also overdue.
I ask:
âHighlight rows if Column E is not âDoneâ AND Column F (Due Date) is before todayâ
ChatGPT says:
=AND($E2<>"Done", $F2<TODAY())
And explains what each part means.
In less than 30 seconds, Iâve done what might have otherwise taken 10 minutes of trial and error.
Even if you have no clue about formulas â or even if youâre someone who writes them daily â ChatGPT helps you:
- Save time
- Avoid syntax errors
- Understand the logic
- Focus more on the what than the how
Itâs like having a spreadsheet expert sitting beside you. And it doesnât just work once â itâs helpful every time you want to colorize data differently.
If you want to explore this yourself, try feeding these prompts to ChatGPT:
- Highlight overdue tasks
âWrite a formula to highlight rows where the due date in column D is before today and the status in column E is not âCompletedâ.â - Color high-value sales
âGive me a formula to highlight cells in column F where the sales amount is greater than âč1,00,000.â - Mark missing entries
âWrite a formula to highlight rows where any of the columns A to D are blank.â - Flag weekend dates
âCreate a formula to highlight rows where the date in column B falls on a Saturday or Sunday.â - Highlight low stock items
âWrite a formula to highlight rows where stock in column C is less than the reorder level in column D.â - Color cells with keywords
âWrite a formula to highlight rows where the item name in column A contains the word âurgentâ.â - Highlight after-hours times
âHighlight cells in column E where the time is after 6 PM.â
How to Apply the Conditional Formatting in Google Sheets?

When ChatGPT gives you the formula:
- Select the range you want to apply formatting to
- Go to Format > Conditional Formatting
- Under âFormat cells ifâ, choose âCustom formula isâ
- Paste the formula
- Pick a color and click Done

Thatâs it. Your sheet becomes smartly color-coded!
Conditional formatting is one of the most powerful (and underused) features in Google Sheets. But writing the formulas can be time-consuming and intimidating.
ChatGPT simplifies that process.
Whether youâre analyzing sales, tracking tasks, monitoring attendance, or managing inventory â just describe your goal, and let ChatGPT handle the logic.
đ If you can visualize it, ChatGPT can help you colorize it.