WorkbookLogic
FormulaFreeDate and TimeintermediateNETWORKDAYSNETWORKDAYS.INTLIF

Count Workdays Between Two Dates

By WorkbookLogic

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.

ExcelLast reviewed Sep 11, 2026
get-workdays-between-dates-v1.0.0.xlsxFree
Get Workdays Between Dates
NETWORKDAYS counts standard workdays; NETWORKDAYS.INTL supports custom weekends.
Function review, self-contained examples
ScenarioStart dateEnd dateWeekend codeFormula syntaxHolidaysResultMeaning
Standard weekDec 23, 2024Dec 31, 20241=NETWORKDAYS(B12,C12)Dec 25, 20247Weekdays before holidays
With holidaysDec 23, 2024Dec 31, 20241=NETWORKDAYS(B13,C13,$G$12:$G$13)Dec 26, 20245Two holidays excluded
One weekdayDec 23, 2024Dec 23, 20241=NETWORKDAYS(B14,C14)1Inclusive weekday
One SaturdayDec 28, 2024Dec 28, 20241=NETWORKDAYS(B15,C15)0Weekend excluded
Fri/Sat weekendDec 23, 2024Dec 31, 20247=NETWORKDAYS.INTL(B16,C16,D16,$G$12:$G$13)5Custom weekend and holidays
Reliability checks
One weekday is includedOK
One Saturday is excludedOK

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

Combined Example!B11

23-Dec-2024

End date

Combined Example!B12

31-Dec-2024

Holidays

Combined Example!B13:B14

25-Dec and 26-Dec

Weekend code

Combined Example!B15

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

  1. Read the inclusive start and end dates.
  2. Apply the default Monday-to-Friday weekend rule or the selected INTL code.
  3. Count qualifying weekdays, including either endpoint when it is a workday.
  4. Remove holiday dates that would otherwise qualify.
  5. 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.