
Counts working days between two dates using custom weekend rules and optional holidays.
The Excel NETWORKDAYS.INTL function counts the number of working days between two dates using custom weekend rules. It can also exclude optional holidays from the result.
This makes it useful for international teams, regional schedules, six-day workweeks, support operations, project planning, and any workbook where the weekend is not always Saturday and Sunday.
Returns the number of working days between two dates while respecting a custom weekend pattern.
Returns an integer count of workdays after weekends and optional holidays have been excluded.
=NETWORKDAYS.INTL(start_date, end_date, [weekend], [holidays])
start_date and end_date define the period you want to measure. The optional weekend argument tells Excel which days are treated as non-working days, and holidays lets you exclude additional dates.
This extra weekend argument is what makes NETWORKDAYS.INTL more flexible than the standard NETWORKDAYS function. If your workbook has to support different countries, departments, or shift patterns, this version is often the better choice.
Microsoft notes that the start and end dates can be earlier, later, or the same as each other. That means the function is flexible enough for forward planning, backward checks, or same-day tests.
The weekend argument can be entered in two main ways: with a weekend code or with a weekend string.
| Type | Example | Meaning | Best Use |
|---|---|---|---|
| Weekend code | 1 |
Saturday and Sunday | Standard business calendars |
| Weekend code | 7 |
Friday and Saturday | Regional calendars with Fri/Sat weekends |
| Weekend code | 17 |
Saturday only | Six-day workweeks |
| Weekend string | "0000011" |
Saturday and Sunday are weekends | Readable custom patterns |
Microsoft documents that weekend strings always start with Monday and end with Sunday. In that string, 1 means a non-workday and 0 means a workday. That makes the pattern explicit and easier to audit in complex models.
NETWORKDAYS.INTL is especially useful when a standard Monday-to-Friday calendar is not enough. For example, some teams may work Sunday to Thursday, some may use a six-day workweek, and others may follow regional calendars with Friday-Saturday weekends.
The function is also useful when the same workbook serves multiple locations. Instead of forcing every team into one weekend rule, you can adjust the weekend code or weekend string so the calculation reflects the actual local schedule.
Like NETWORKDAYS, this function can also exclude holidays. That means the final count can reflect both the local weekend pattern and the actual closure days that should not be treated as working time.
This example counts workdays using weekend code 17, where Saturday is the only weekend day.
=NETWORKDAYS.INTL(B1,B2,17)
This is useful for six-day workweeks where Sunday still counts as a working day. It is a good reminder that not every schedule follows the standard Saturday-Sunday weekend.
In cell F1, count working days between B1 and B2 using weekend code 17, where Saturday is the only weekend day.
A weekend string can make the weekend rule easier to read directly in the formula.
=NETWORKDAYS.INTL(B1,B2,"0000011")
Because the string starts with Monday, this pattern means Monday through Friday are workdays and Saturday-Sunday are weekends. This form is helpful when you want the rule to be more obvious to anyone reviewing the model.
In cell F2, count working days between B1 and B2 using the weekend string "0000011".
NETWORKDAYS.INTL is often used inside logical tests when deadlines depend on local schedules.
=NETWORKDAYS.INTL(B1,B2,1)>10
This returns TRUE if the business-day window is greater than ten and FALSE otherwise. It is useful for SLA checks, staffing rules, and project controls.
In cell F3, test whether the custom workday count between B1 and B2 is greater than 10.
Once you have the custom workday count, you can multiply it by a daily rate.
=NETWORKDAYS.INTL(B1,B2,1)*200
This is useful for payroll estimates, contractor billing, and resource planning where cost depends on the number of actual working days rather than simple calendar days.
In cell F4, multiply the custom workday count between B1 and B2 by 200.
NETWORKDAYS.INTL counts working days using custom weekend rules.NETWORKDAYS cannot.Tell your friends about this post