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.

Text prompt for ChatGPT and Claude

You get: Formatting rules table, application guide and maintenance tips

Prompt

Prompt
Act as an Excel workflows specialist. You will build a multi-tiered conditional formatting ruleset that automatically highlights overdue items and approaching deadlines relative to today's date.

First, ask me these 3 short questions and wait for my response:
1. Which column contains the due dates, what row does your data start on, and what is your overall table range?
2. What are your target deadline intervals (for example: overdue, due within 3 days, due within 7 days)?
3. Do you have a completion or status column that should stop formatting once an item is marked done?

Once I reply, provide the exact formulas, rule hierarchy order, and click-by-click setup instructions in Excel.

Output format:
- Formatting rules table: Priority order, condition name, formula, suggested color, and 'Stop If True' setting.
- Application guide: Step-by-step instructions to apply the rules across the full dataset.
- Maintenance tips: 2 tips to keep workbook calculations fast and prevent rule duplication.

Example output

Deadline color rules in priority orderApplied to A2:F200, Stop If True on all four
  1. CompletedPriority 1Status is Done: no fill
  2. OverduePriority 2Due date before today: light red
  3. Due within 3 daysPriority 3Due by today plus 3: light orange
  4. Due within 7 daysPriority 4Due by today plus 7: light yellow

Example for: Due dates in Column E (E2:E200), Status in Column F, tracking overdue, 3 days out, and 7 days out

Formatting rules table

Apply these rules to the range A2:F200 in the exact priority order shown below:

PriorityConditionFormulaSuggested ColorStop If True
1Completed (No color)=$F2="Done"No FillChecked
2Overdue=AND($E2<>"", $E2<TODAY())Light Red FillChecked
3Due within 3 days=AND($E2<>"", $E2<=TODAY()+3)Light Orange FillChecked
4Due within 7 days=AND($E2<>"", $E2<=TODAY()+7)Light Yellow FillChecked
Application guide
  1. Select range A2:F200 starting from cell A2.
  2. Go to Home > Conditional Formatting > Manage Rules.
  3. Click New Rule, choose Use a formula to determine which cells to format, and input the Priority 1 formula.
  4. Click Format, set fill to No Color, and click OK.
  5. Repeat step 3 and 4 for Priorities 2, 3, and 4 with their respective colors.
  6. In the Rules Manager, arrange the rules from top to bottom matching Priorities 1 through 4 using the Up/Down arrows.
  7. Check the Stop If True box for all four rules, then click Apply.
Maintenance tips
  • Keep rules clean: Avoid copying and pasting cells across rows, as Excel creates fragmented duplicate rules. Paste values only (Ctrl+Shift+V or Paste Special > Values).
  • Optimize calculation: Because TODAY() is a volatile function that recalculates on every workbook click, avoid applying these rules across entire columns (like A:F); limit the applied range to your actual data rows.
Written by AI from this prompt. Your results will vary.

Run the prompt in ChatGPT, Claude, or Gemini and answer the three questions in one reply. Ask the model to add an exclude-weekends condition using the WORKDAY function if your deadlines only count business days.

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

Excel & Spreadsheets

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.

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 & 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.

Excel & Spreadsheets

Build Excel and Google Sheets Formulas for Workdays, Ages and Deadlines

You get working date formulas for your exact layout, such as workdays, deadlines, ages and month offsets, with a holiday table, locale pitfalls and a test row.