Highlight entire spreadsheet rows using conditional formatting

Set up conditional formatting rules that color entire rows based on a single status cell. Use this to highlight completed, overdue, or pending project items.

Text prompt for ChatGPT and Claude

You get: Setup steps, rule formula table and troubleshooting

Prompt

Prompt
Act as an Excel productivity specialist. Provide clear, click-by-click instructions and exact formulas to conditionally format full table rows based on the value in a single status column.

- Explain the exact placement of the dollar sign ($) anchor required to color the entire row instead of a single cell.
- Address case-sensitivity and handling variations (such as trailing spaces in status names).
- Provide the exact formula rule for three common statuses: Complete, In Progress, and Blocked.
- Specify the exact 'Applies to' range syntax to prevent offset or misaligned formatting.

Output format:
- Setup steps: Numbered, click-by-click instructions in Excel.
- Rule formula table: Status values, exact formulas, and suggested fill colors.
- Troubleshooting: 2 common mistakes that cause formatting shifts or blank rows to highlight.

Here is my table layout and status column details:

Example output

Set up row highlighting in 5 stepsRange A2:F120, status in column D
  1. Select the data rangeStep 1A2 to F120, without the header row
  2. Open New RuleStep 2Home > Conditional Formatting > New Rule
  3. Choose the formula optionStep 3Use a formula to determine which cells to format
  4. Enter formula and fill colorStep 4Type the formula, click Format, pick a Fill, click OK
  5. Repeat for each statusStep 5Complete, In Progress and Blocked each get a rule

Example for: project tracker spanning A2:F120, with Status in column D

Setup steps
  1. Select your entire data range from cell A2 to F120 (do not include the header row in row 1).
  2. On the Home tab, click Conditional Formatting > New Rule.
  3. Click Use a formula to determine which cells to format.
  4. Enter the rule formula in the box, click Format, choose your fill color under the Fill tab, and click OK.
  5. Repeat for each status value.
Rule formula table
Target StatusFormula to EnterFill Color
Complete=$D2="Complete"Soft Green (#D9EAD3)
In Progress=$D2="In Progress"Soft Yellow (#FFF2CC)
Blocked=$D2="Blocked"Soft Red (#FCE5CD)

Note: The $ before D locks the check to Column D across every column in the row, while the unanchored 2 allows the rule to evaluate row by row downwards.

Troubleshooting
  • Whole sheet shifts color incorrectly: Ensure cell A2 was the active cell when opening the menu. If the rule references $D1 or $D3 while the range starts at A2, formatting will display one row off.
  • Blank rows turning colored: If empty rows match, wrap the condition to ignore blanks: =AND($D2="Blocked", $D2<>"").
Written by AI from this prompt. Your results will vary.

Paste your column letters (e.g., Status is in Column D, data spans A2 to G100) into ChatGPT, Claude, or Gemini. As a follow-up, ask how to clear conflicting rules so older conditional formats do not override the new ones.

Reuse it: Use in a workflowTurn into a skillAdapt in the builder

Excel & Spreadsheets

Automate tiered color coding for approaching deadlines

Build dynamic, time-sensitive conditional formatting rules for due dates. Use this when trackers need automated green, yellow, and red warnings based on today's date.

Excel & Spreadsheets

Highlight matching values across two separate spreadsheet columns

Generate the exact conditional formatting formula and click-by-click instructions to mark duplicate values found across two columns.

Excel & Spreadsheets

Consolidate separate spreadsheet tabs into a master rollup

Design a dynamic rollup architecture to aggregate multiple project or regional sheets into one live master summary that will not break when rows expand.

Excel & SpreadsheetsGemini

Build a Two-Variable Sensitivity Table for Revenue and Margin

Get a complete Excel sensitivity table layout with dynamic formulas and conditional formatting rules to highlight break-even profit thresholds.

Excel & Spreadsheets

Build an Inventory Tracker Spreadsheet with Reorder Points and Low-Stock Alerts

You get exact columns, copy-ready reorder-point formulas, a status column and conditional formatting that highlights items to reorder now or this week.

Excel & Spreadsheets

Build Conditional Formatting Rules with Exact Formulas and Rule Order

You get a table of conditional formatting rules with the exact custom formula, the range to apply each one to, colors, and a rule order that avoids conflicts.