Excel Conditional Formatting for 7- and 14-Day Deadlines
Question details
The user wants to highlight received dates according to elapsed time and completion status, including dates stored on another worksheet.

- 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.
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.
Create deadline rules with conditional formatting formulas
Use three mutually exclusive rules to highlight pending and completed items.
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.
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.
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.
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.
Create a third formula rule with =$B2<>"", choose a green fill, and save it. Review the ranges under Home > Conditional Formatting > Manage Rules.

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

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.




