Formula Errors

Highlight Dates Five Working Days Old in Excel

Phi Hung VoPhi Hung Vo Nov 25, 2026 869 views

Question details

Highlight dates that are at least five working days before today, excluding weekends.

Highlight Dates Five Working Days Old in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
Apply conditional formatting to dates in column F, beginning at F2.
Observed behavior
Qualifying past dates should be highlighted while weekends are excluded from the count.
Before you start

Confirm that the cells in column F contain actual Excel dates rather than text. The rule below counts working days after the date through today and treats Saturday and Sunday as the weekend.

Solution 1Recommended

Create an Excel conditional formatting rule for working-day age

Use this rule to highlight past dates that are at least five working days old.

NETWORKDAYS.INTL counts both endpoints, so the formula subtracts the starting date when it is a working day. The starting date itself is not counted; today is counted if it is a working day.

1
Select the date range

Select the cells to format, such as F2:F4. Make sure F2 is the first cell in the selection.

2
Create a formula rule

Go to Home > Conditional Formatting > New Rule and select Use a formula to determine which cells to format.

3
Enter the formula

Enter =IF(AND(ISNUMBER(F2),F2>0,F2<TODAY()),NETWORKDAYS.INTL(F2,TODAY(),1)-NETWORKDAYS.INTL(F2,F2,1)>=5,FALSE). The relative reference F2 lets the rule evaluate each selected row.

4
Choose the highlight

Select Format, choose a fill color, and click OK. Confirm that the rule applies to the intended range, such as =$F$2:$F$4.

Create an Excel conditional formatting rule for working-day age
For strictly more than five working days: Replace >=5 with >5 in the formula. If you also need to exclude holidays, add the same holiday range as the fourth argument to both NETWORKDAYS.INTL calls.
Work with dates in WPS Spreadsheets

Highlight aging dates in WPS Spreadsheets

Use a formula-based conditional formatting rule in WPS Spreadsheets to highlight dates that are at least five working days old.

  1. 1. Open your spreadsheet: Open the workbook in WPS Spreadsheets and select the date cells, such as F2:F4.
  2. 2. Add a rule: On the Home tab, open Conditional Formatting, select New Rule, and choose the formula-based rule option.
  3. 3. Enter the formula: Enter =IF(AND(ISNUMBER(F2),F2>0,F2<TODAY()),NETWORKDAYS.INTL(F2,TODAY(),1)-NETWORKDAYS.INTL(F2,F2,1)>=5,FALSE).
  4. 4. Set the format: Choose a fill color, confirm the rule, and save the workbook.
Highlight dates based on working-day ageOpen and edit Microsoft Excel XLSX filesUse a familiar spreadsheet interfaceWork with a free, lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Does the formula count the original date?

No. It counts working days after the date in F2 through today. For example, if both dates are Mondays one week apart, the count is five.

How can I exclude holidays as well as weekends?

Enter holiday dates in a range such as H2:H10, then add $H$2:$H$10 as the fourth argument in both NETWORKDAYS.INTL calls. The same range must be used in both calls.

How do I use a different weekend definition?

Replace the weekend argument 1 in both NETWORKDAYS.INTL calls with the same supported weekend code or seven-character weekend string. For example, 7 specifies Friday and Saturday as the weekend.

Will the highlighting change each day?

The rule uses TODAY(), so it updates when the workbook recalculates. If it does not update, check Excel's Formulas > Calculation Options and select Automatic, or press F9 to recalculate.

Why not use =NETWORKDAYS.INTL(TODAY(),F2,1)<=5?

For past dates, the start and end dates are reversed, producing a zero or negative result that can satisfy <=5 even when the date is much older. It can also match some future dates.