Formatting Issues

Excel Conditional Formatting for 7- and 14-Day Deadlines

Huda QurayshiHuda Qurayshi Nov 18, 2026 868 views

Question details

The user wants to highlight received dates according to elapsed time and completion status, including dates stored on another worksheet.

Excel Conditional Formatting for 7- and 14-Day Deadlines
Product
Microsoft Excel
Device & OS
not provided
Scenario
Track items that have been pending for seven or fourteen days and distinguish completed items.
Observed behavior
Pending items should turn yellow after seven days and red after fourteen days; items with a completed date should turn green.
Before you start

Make sure the received and created or completed dates are recognized as Excel dates. The examples use received dates in column A, completion dates in column B, and data starting in row 2.

Solution 1Recommended

Create deadline rules with conditional formatting formulas

Use three mutually exclusive rules to highlight pending and completed items.

1
Link dates from another sheet if needed

On the sheet where you want the formatting, enter =IF('Tab 1'!A2="","",'Tab 1'!A2) in A2 and =IF('Tab 1'!B2="","",'Tab 1'!B2) in B2. Replace Tab 1 with the source sheet name, then fill both formulas down. Skip this step if the dates are already in columns A and B.

2
Select the range

Select the cells to highlight, such as A2:A100 for received dates or A2:B100 for both columns. Make sure row 2 is the first row of the selected range.

3
Add the red rule

Go to Home > Conditional Formatting > New Rule, choose Use a formula to determine which cells to format, and enter =AND($A2<>"",$B2="",TODAY()>=$A2+14). Select Format, choose a red fill, and save the rule.

4
Add the yellow rule

Create another formula rule under Home > Conditional Formatting > New Rule. Enter =AND($A2<>"",$B2="",TODAY()>=$A2+7,TODAY()<$A2+14), choose a yellow fill, and save it.

5
Add the green rule

Create a third formula rule with =$B2<>"", choose a green fill, and save it. Review the ranges under Home > Conditional Formatting > Manage Rules.

Create deadline rules with conditional formatting formulas
Adjust references for your layout: Replace columns A and B and row 2 in the formulas if your dates or first data row are different. The rules count calendar days from the received date.
WPS Spreadsheet

Track deadline dates in WPS Spreadsheet

Use formula-based conditional formatting in WPS Spreadsheet to distinguish pending items at seven and fourteen days and mark completed items green.

  1. 1. Open the workbook: Open WPS Spreadsheet and use Open to select your workbook. Place received dates in column A and completion dates in column B, starting in row 2.
  2. 2. Select the cells: Select A2:A100 to highlight the received dates, or select a wider range starting in row 2 to highlight each item.
  3. 3. Create the pending rules: Go to Home > Conditional Formatting > New Rule and choose a formula-based rule. Add =AND($A2<>"",$B2="",TODAY()>=$A2+14) with a red fill, then add =AND($A2<>"",$B2="",TODAY()>=$A2+7,TODAY()<$A2+14) with a yellow fill.
  4. 4. Create the completed rule: Add another formula-based rule using =$B2<>"" and choose a green fill. Save the rules and check the results against your dates.
Highlight overdue and completed items with date-based rulesOpen and save Microsoft Excel XLSX filesWork with a familiar spreadsheet interfaceUse a free, lightweight Office alternative
microsoft office alternative - wps office

Frequently Asked Questions

Can I highlight the whole row instead of just the received date?

Yes. Select the desired row range, such as A2:F100, before creating the rules. Keep the dollar signs in $A2 and $B2 so each rule checks columns A and B for the corresponding row.

How do I use dates from a different worksheet?

Link the source dates into helper cells on the sheet you want to format. For example, use =IF('Tab 1'!A2="","",'Tab 1'!A2) to bring in the received date without showing a zero for a blank source cell. Reference those local cells in the formatting rules.

What happens when a completion date is entered?

The green rule checks whether the completion cell is nonblank. The yellow and red rules require it to be blank, so the item changes to green rather than remaining overdue.

Can I use icon sets instead of colored fills?

Icon sets cannot directly use arbitrary custom formulas as icon rules. You can calculate numeric status values in a helper column, then select that column and use Home > Conditional Formatting > Icon Sets.