Highlighting an entire column is not formatting, it is decoration. A useful rule fires only on the cells that need attention, and the hard part is the formula behind it. These five ChatGPT prompts for conditional formatting start from the question “what should make a cell stand out,” then build the rule from there.
What’s on this page
- Five prompts covering single columns, comparisons, and whole rows.
- Each one returns a rule you can paste straight into the formatting dialog.
- Written for people who know the spreadsheet, not the formula language.
- Every prompt marks the [variables] you replace.
The prompts
1. Write a rule from a plain description
In [spreadsheet tool], I want the cells in column [column] to be highlighted when [plain description]. Write the conditional formatting rule, give me the exact formula, and tell me which range to apply it to. Explain the formula part by part.
What it does: Converts a plain-language condition into a formula you can paste into the rule box.
How to use: Replace [spreadsheet tool], [column], and [plain description]; paste the range exactly as given.
2. Compare two columns
In [spreadsheet tool], I want to highlight values in column [column A] that do not match the value in column [column B] on the same row. Write the rule and the formula, and show how to keep the rule from highlighting blank rows.
What it does: Flags the mismatches in a reconciliation without you scanning row by row.
How to use: Replace [spreadsheet tool], [column A], and [column B]; add the blank-row condition if your sheet has gaps.
3. Highlight a whole row from one cell
In [spreadsheet tool], when the status in column [status column] is [value], I want the whole row from [first column] to [last column] highlighted. Write the rule so it uses the right reference type and works down the sheet.
What it does: Makes a row readable at a glance without formatting each cell separately.
How to use: Replace the column letters and [value]; check that the anchor in the formula matches your first row.
4. Flag duplicates with a formula
In [spreadsheet tool], I want to highlight duplicate entries in column [column], treating [definition of duplicate] as the same value. Write the rule and explain what it does when the cell is blank. Tell me how to mark only the second and later copies.
What it does: Shows duplicates clearly while leaving the first occurrence unmarked.
How to use: Replace [spreadsheet tool], [column], and [definition of duplicate]; test it on a column with blanks.
5. Debug a rule that fires wrongly
My conditional formatting rule is behaving incorrectly. In [spreadsheet tool], I applied it to [range] with this formula: [formula]. It highlights [wrong result] but I want [intended result]. Tell me what is wrong and give me the corrected formula.
What it does: Fixes the reference problem that makes a rule highlight the wrong cells.
How to use: Replace the range and formula with your real ones, and describe the wrong result in concrete terms.
How to adapt these prompts
- Name the spreadsheet tool every time; rule syntax differs between them.
- Include a row number in the description so the reference type is unambiguous.
- Ask for a test: two rows that should highlight and two that should not.
FAQ
Why does my rule highlight the wrong rows?
Almost always a reference problem. The anchor in the formula has to line up with the first row of the range you applied it to, and the wrong anchor shifts everything by one.
Can one rule cover several columns?
Yes, if you apply it to a multi-column range and write the formula against the first cell of that range. Ask for the formula and the range together so they stay consistent.
Do colored cells count as data?
No. Formatting is visual only, so a formula cannot read a color. If you need to sort or count by a condition, put the condition in a helper column first.
Keep going
- More Excel & Spreadsheets prompts
- 5 ChatGPT Prompts for Excel Formulas
- 5 ChatGPT Prompts for Data Analysis Plans
GuPrompt keeps every prompt copy-paste ready. No account needed.