Count Workdays Between Two Dates
Count working days across an inclusive date range while excluding listed holidays and making the standard or custom weekend convention explicit throughout the complete calculation.
| Get Workdays Between Dates | ||||||||
| NETWORKDAYS counts standard workdays; NETWORKDAYS.INTL supports custom weekends. | ||||||||
| Function review, self-contained examples | ||||||||
| Scenario | Start date | End date | Weekend code | Formula syntax | Holidays | Result | Meaning | |
| Standard week | Dec 23, 2024 | Dec 31, 2024 | 1 | =NETWORKDAYS(B12,C12) | Dec 25, 2024 | 7 | Weekdays before holidays | |
| With holidays | Dec 23, 2024 | Dec 31, 2024 | 1 | =NETWORKDAYS(B13,C13,$G$12:$G$13) | Dec 26, 2024 | 5 | Two holidays excluded | |
| One weekday | Dec 23, 2024 | Dec 23, 2024 | 1 | =NETWORKDAYS(B14,C14) | 1 | Inclusive weekday | ||
| One Saturday | Dec 28, 2024 | Dec 28, 2024 | 1 | =NETWORKDAYS(B15,C15) | 0 | Weekend excluded | ||
| Fri/Sat weekend | Dec 23, 2024 | Dec 31, 2024 | 7 | =NETWORKDAYS.INTL(B16,C16,D16,$G$12:$G$13) | 5 | Custom weekend and holidays | ||
| Reliability checks | ||||||||
| One weekday is included | OK | |||||||
| One Saturday is excluded | OK | |||||||
Overview
Return the number of working days between two dates, including qualifying start and end dates. NETWORKDAYS applies a Monday-to-Friday calendar; NETWORKDAYS.INTL supports a selected weekend pattern. Both exclude holidays stored as valid dates.
When to use it
Use it for workforce capacity, billable-day calculations, project durations, service windows, and operating calendars. It suits one calendar shared by the calculation, with a defined weekend convention and maintained holiday list.
When not to use it
Use WORKDAY or WORKDAY.INTL when the required output is a future or prior working date rather than a count. Use a dedicated calendar table when regions, sites, or employees follow different holidays or working patterns. Calendar-day duration needs ordinary date arithmetic instead.
Problem
Subtracting dates counts calendar days and ignores weekends and holidays. Manually removing nonworking days is hard to maintain, especially when regional weekends differ. The calculation must define its calendar and remember that NETWORKDAYS treats both endpoints as inclusive.
Inputs
Input | Location | Sample |
|---|---|---|
Start date | | 23-Dec-2024 |
End date | | 31-Dec-2024 |
Holidays | | 25-Dec and 26-Dec |
Weekend code | | 7 |
Source data
The interval uses valid Excel dates. The holiday range contains two valid dates, one per cell. Weekend code 1 represents Saturday/Sunday and code 7 represents Friday/Saturday in NETWORKDAYS.INTL. Duplicate holidays or holidays already falling on weekends do not reduce the result twice.
Calculations
- Read the inclusive start and end dates.
- Apply the default Monday-to-Friday weekend rule or the selected INTL code.
- Count qualifying weekdays, including either endpoint when it is a workday.
- Remove holiday dates that would otherwise qualify.
- Return the signed count for the supplied date order.
Outputs
From 23-Dec-2024 through 31-Dec-2024, there are 7 Monday-to-Friday dates before holidays and 5 standard workdays after excluding 25-Dec and 26-Dec. The illustrated Friday/Saturday weekend code also returns 5 for this interval.
Formula map
Standard weekend
=NETWORKDAYS(B11,B12,B13:B14)
Configurable weekend
=NETWORKDAYS.INTL(B11,B12,B15,B13:B14)
Both return one integer. The second uses the numeric weekend code in B15; confirm that code against the intended operating calendar before reuse.
Model checks
The workbook confirms that seven weekdays become five workdays after the two holidays and checks that the start date does not exceed the end date. Passing controls return OK.
Edge cases
- One qualifying weekday returns 1 because endpoints are inclusive.
- One weekend day returns 0 under the selected calendar.
- A holiday on a weekend is not deducted twice.
- Reversed dates return a negative count rather than automatically rejecting the input.
- Text that Excel cannot recognize as a date can produce an error or unreliable result.
- An incorrect weekend code can return a plausible but wrong count.
Common errors
- Treating endpoints as exclusive: the count is unexpectedly high. Remember that qualifying endpoints are included.
- Using the default weekend for every region: availability is misstated. Select the correct NETWORKDAYS.INTL code.
- Typing holiday labels instead of dates: exclusions may fail. Store true Excel dates in a bounded range.
Example
The sample interval contains seven Monday-to-Friday dates. Removing Christmas Day and 26-Dec leaves 5. As boundary checks, a single weekday returns 1, while a single Saturday returns 0 under the standard weekend calendar.
Example workbook
Replace the cream dates, holidays, and weekend code in Combined Example!B11:B15. Standard and custom workday counts update beside the inputs. Formula Review isolates standard, holiday-adjusted, one-day, and alternate-weekend examples.
Key takeaway
Count workdays against a declared operating calendar: make weekend and holiday rules visible, and account for NETWORKDAYS including valid start and end dates.