Skip to content

How to calculate working days between two dates in Excel

Count business days between two dates with NETWORKDAYS, skip a holiday list, and use NETWORKDAYS.INTL for different weekends.

You need the number of working days between a start and end date, for a delivery promise, a contract term or a payroll period. Weekends should not count, and often public holidays should not either.

NETWORKDAYS does this. It counts Monday to Friday between two dates, and includes both the start date and the end date when they are working days. Subtracting the two dates would count calendar days, which is a different answer.

=NETWORKDAYS(A2, B2)

To exclude holidays, keep them in their own range and pass it as the third argument: =NETWORKDAYS(A2, B2, $F$2:$F$4). Lock the range with $ so the formula can be filled down. The holidays must be real dates, not text that looks like dates. If a holiday falls on a weekend it is not subtracted twice.

Not every business works Monday to Friday. NETWORKDAYS.INTL lets you choose the weekend. The second argument after the dates is a code: 1 is Saturday and Sunday, 11 is Sunday only, and 7 is Friday and Saturday. There is also a seven-character text option such as "0000011" where 1 marks a day off, starting with Monday.

To go the other way, from a start date and a number of working days to an end date, use WORKDAY instead. The Dates and finance track covers both.

3 ways to do it

1NETWORKDAYS

=NETWORKDAYS(A2,B2)

  1. Type =NETWORKDAYS(A2,B2) to count working days, both ends included.
  2. Fill the formula down for the other rows.

2NETWORKDAYS with a holiday list

=NETWORKDAYS(A2,B2,$F$2:$F$4)

  1. Enter each holiday as a date in its own range, for example F2:F4.
  2. Pass the range as the third argument and lock it with $.

3NETWORKDAYS.INTL for other weekends

=NETWORKDAYS.INTL(A2,B2,11)

  1. Use NETWORKDAYS.INTL when the weekend is not Saturday and Sunday.
  2. Pick a weekend code as the third argument: 11 means Sunday only, 7 means Friday and Saturday.
  3. Add a holiday range as the fourth argument if you need one.

Try it yourself

Solve it in the sheet. Every answer is checked, with hints if you need them.

Task 1 of 2

In C2, count the working days (Monday to Friday) from A2 to B2, both days included. Fill down to C7.

Answer in C2, then it fills down to C7.

C2
A
B
C
D
E
F
1
Start
End
Working days
Excl. holidays
Company holidays
2
30-Dec-2024
10-Jan-2025
01-Jan-2025
3
13-Jan-2025
24-Jan-2025
20-Jan-2025
4
03-Feb-2025
14-Feb-2025
17-Feb-2025
5
10-Feb-2025
21-Feb-2025
6
03-Mar-2025
28-Mar-2025
7
01-Apr-2025
04-Apr-2025

Learn it properly, one graded sheet at a time.

Dates and financial modelling covers this in lesson 7, Working days and deadlines.