Formatting Issues

How to Highlight Excel Cells Before a Deadline

John WilsonJohn Wilson Oct 8, 2026 873 views

Question details

The user needs to automatically highlight cells in a referral tracking spreadsheet 14 days and 7 days before reaching a six-month deadline.

How to Highlight Excel Cells Before a Deadline Using Conditional Formatting
Product
Excel
Device & OS
not provided
Scenario
Tracking referral deadlines and setting up automated visual alerts for upcoming due dates.
Observed behavior
Cells need to dynamically change color when the current date approaches within 14 days or 7 days of the specified deadline date.
Before you start

Ensure that your deadline dates are formatted correctly as standard Date values in Excel, rather than plain text, so that the TODAY() function can calculate the difference accurately.

Solution 1Recommended

Set Up Date-Based Conditional Formatting Rules

Use Excel's Conditional Formatting with a custom formula to automatically color code cells based on how close they are to a deadline.

When tracking deadlines, applying conditional formatting with the TODAY() function ensures your spreadsheet dynamically updates color alerts every day without manual checking. By stacking multiple rules, you can create a tiered warning system.

1
Select the target cells

Highlight the range of cells containing your deadlines (for example, B2:B100).

2
Open Conditional Formatting

Go to the Home tab on the Excel ribbon, click on 'Conditional Formatting', and select 'New Rule' from the drop-down menu.

3
Create the 14-day rule

Choose 'Use a formula to determine which cells to format'. Enter the formula =TODAY()+14>=B2. Click the 'Format' button, select a warning color like yellow on the Fill tab, and click OK.

4
Create the 7-day rule

With the same cells selected, click 'Conditional Formatting' > 'New Rule' again. Use the formula =TODAY()+7>=B2. Format this rule with a more urgent color, such as red, and click OK.

5
Adjust rule precedence

Click 'Conditional Formatting' > 'Manage Rules'. Ensure your 7-day rule is positioned above your 14-day rule. If it is not, use the up arrow to move it to the top. Check the 'Stop If True' box for the 7-day rule and click Apply.

Set Up Date-Based Conditional Formatting Rules
Rule Precedence: If a cell is 5 days away from the deadline, it technically meets both the 14-day and 7-day conditions. Placing the 7-day rule at the top of the Conditional Formatting Rules Manager ensures the more urgent color takes priority.
Efficient Spreadsheet Management

Track Deadlines Effectively with WPS Spreadsheet

You can easily set up automated date alerts and track referral deadlines using WPS Spreadsheet. It fully supports standard Excel formulas and conditional formatting features to keep your projects on schedule.

  1. 1. Open your workbook in WPS Spreadsheet: Launch WPS Office and open your deadline tracking document.
  2. 2. Select your deadline column: Highlight the cells containing your target dates.
  3. 3. Access Conditional Formatting: Navigate to the Home tab, click 'Conditional Formatting', and choose 'New Rule'.
  4. 4. Apply formula rules: Select 'Use a formula', input =TODAY()+14>=B2, pick your preferred warning color, and save. Repeat for the 7-day warning.
Fully compatible with Microsoft Excel (.xlsx) formulas and conditional formatting rules.Lightweight software with an intuitive, user-friendly interface.Built-in robust date and time functions for automated deadline tracking.Free to download and use for your daily office and spreadsheet needs.
microsoft office alternative - wps office

Frequently Asked Questions

Why is my conditional formatting highlighting blank cells?

In spreadsheet software, blank cells are often treated as zero, which translates to a date in the year 1900. To prevent blank cells from being highlighted, update your formula to include an AND condition, such as =AND(B2<>"", TODAY()+14>=B2).

How do I make the entire row change color instead of just the date cell?

Select your entire data range (e.g., A2:F100) instead of just the date column. When writing the conditional formatting formula, use an absolute column reference for the date cell by adding a dollar sign (e.g., =$B2<=TODAY()+14). This anchors the check to column B while formatting the whole row.

Will the cell colors update automatically each day?

Yes. The TODAY() function calculates the current system date dynamically. Whenever you open the workbook or trigger a recalculation, the formulas update automatically, ensuring your 7-day and 14-day warnings remain accurate.

Can I set an alert for dates that have already passed?

Absolutely. You can create an additional conditional formatting rule using a formula like =AND(B2<>"", B2<TODAY()). Assign a distinct color, such as dark gray or bright red text, to easily spot overdue items.