Mastodon Mastodon
Excel Functions

How to Use Excel NETWORKDAYS.INTL Function?

Excel NETWORKDAYS.INTL Function is used to returns the number of work days between starting dates and the ending dates with inclusion or exclusion of the holidays.

Using NETWORKDAYS.INTL Function in Excel
Using NETWORKDAYS.INTL Function in Excel
TL;DR

The NETWORKDAYS.INTL function returns the number of working days between two dates, with customizable weekends and optional holidays. The basic syntax is: =NETWORKDAYS.INTL(start_date, end_date, [weekend], [holidays]). Use binary codes or numeric values to define weekends (e.g., “0000011” for Saturday-Sunday or 1 for default weekend). Unlike NETWORKDAYS, the .INTL version allows you customize which days are weekends. Find more tutorials at Excel24x7.com.

NETWORKDAYS.INTL Function: A brief

Excel NETWORKDAYS.INTL function is used to calculate the number of working days between the starting dates and the ending dates with configurable holidays date and customizable weekends.

Visual Representation of Difference b/w NETWORKDAYS & NETWORKDAYS.INTL Function
Visual Representation of Difference b/w NETWORKDAYS & NETWORKDAYS.INTL Function
FeatureNETWORKDAYSNETWORKDAYS.INTL
Used For?Calculates working days between two datesCalculates working days with custom weekend definitions
What about Weekend Days?Fixed (Saturday & Sunday only)Fully customizable (can choose any day(s) as weekend)
Basic Syntax=NETWORKDAYS(start_date, end_date, [holidays])=NETWORKDAYS.INTL(start_date, end_date, [weekend], [holidays])
Holiday OptionOptional list of holidaysOptional list of holidays
Weekend Customization Support?Not supportedSupported via numbers or binary string
Can be Used for?Standard business weeks (Mon–Fri work week)Non-standard schedules (Sun–Thu work week, rotating shifts)
Functions Introduced in?Excel 2007Excel 2010 and later versions.
Difference Between NETWORKDAYS & NETWORKDAYS.INTL Function

NETWORKDAYS.INTL Function: A Syntax

=NETWORKDAYS.INTL(start_date, end_date, [weekend], [holidays])
  • start_date: The starting date of the period.
  • end_date: The ending date of the period.
  • weekend: A string or number representing which days of the week are considered weekends.
  • holidays: A range of dates to exclude as holidays and this is an optional one.

Weekend Codes List supported by NETWORKDAYS.INTL Function:

CodeWeekend Days
1Saturday, Sunday (default)
2Sunday, Monday
3Monday, Tuesday
4Tuesday, Wednesday
5Wednesday, Thursday
6Thursday, Friday
7Friday, Saturday
Numerical Weekend Codes List for NETWORKDAYS.INTL Function
Binary CodeMeaning
0000011Saturday & Sunday are weekends
1111111All days are weekends (0 workdays)
0000000No weekends (every day is a workday)
1000001Monday & Sunday are weekends
0101010Tuesday, Thursday, Saturday are weekends
7 Digit Binary Weekend Code format for NETWORKDAYS.INTL Function

Basic Examples of Using NETWORKDAYS.INTL Function:

In the following example, I have explained how to use the NETWORKDAYS.INTL function to calculate working days with three different scenarios: No weekends, Saturday and Sunday as weekends, and only Sunday as a weekend. I have also used both code formats (Binary and Numerical) to identify holidays. Please take a look.

Clear Examples of Finding number of Working days with customized holidays using NETWORKDAYS.INTL Function
Clear Examples of Finding number of Working days with customized holidays using NETWORKDAYS.INTL Function

The Example seems to be simple but it is effective for quick understanding.

Starting DateEnding DateHolidays DatesResult 1
(No weekends)
Result 2
(Saturday and Sunday as weekends)
Result 3
(Only Sunday as weekend)
Using Binary Format Weekend Code
02-Jan-2431-Jan-2401-Jan-24302226
01-Feb-2429-Feb-2412-Feb-24292125
Using Numerical Code Format Weekend Code
01-Nov-2430-Nov-2425-Dec-24262125
01-Dec-2431-Dec-2401-Jan-25262227
Formula Used with Binary Code Format:Result 1:
=NETWORKDAYS.INTL(B3,C3,”0000000″)
Result 2:
=NETWORKDAYS.INTL(B3,C3,”0000011″,L$3:L$4)
Result 3:
=NETWORKDAYS.INTL(B3,C3,”1000000″,L$3:L$4)
Formula Used with Numeric Code Format:Result 1:
=NETWORKDAYS.INTL(B7,C7,11)
Result 2:
=NETWORKDAYS.INTL(B7,C7,1)
Result 3:
=NETWORKDAYS.INTL(B7,C7,17)

Explanation of above used Example:

  • In this example, the formula =NETWORKDAYS.INTL(B3, C3, “0000011”, L$3:L$4) calculates the number of working days between January 2, 2024 and January 31, 2024, while excluding weekends and holidays.
  • The code “0000011” tells Excel that Saturday and Sunday are considered weekends. The holiday list in cells L3:L4 includes January 1, but since it falls outside the date range, only weekends are excluded.
  • Since January 2024 has 8 weekend days, Excel subtracts these from the total 31 days of the month, resulting in 22 working days.

How the NETWORKDAYS.INTL Calculated the Working Days?

Date PeriodWeekends CodeWeekends CountHolidays CountWorkdays
Jan 202400000118 days1 (Jan 1)22
Feb 202400000118 days021
Nov 202418 days1 (Nov 25)21
Dec 2024174 days027

Is there any Manual Formula Available to Replicate NETWORKDAYS.INTL Functionality?

Yes, there is a manual formula available, you may need to use other Excel functions combined to get the results.

ScenariosManual Formula
No Weekends =C3 - B3 + 1
Saturday and Sunday as Weekends =SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(B3&":"&C3)),2)<>6), --(WEEKDAY(ROW(INDIRECT(B3&":"&C3)),2)<>7))
Only Sunday as Weekends =SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(B3&":"&C3)),2)<>7))
Manual Formula Examples
Manual Formula Examples
FunctionUsed for
SUMPRODUCTAdds up an array of values after performing multiplication or other operations.
WEEKDAYReturns a number for the day of the week.
ROWReturns the row number of a reference. When used on a range of dates, it produces an array of numbers representing each date.
INDIRECTConverts a text string into a valid cell reference
-- (Double Unary)Converts TRUE/FALSE results into 1s and 0s, so they can be summed or counted inside SUMPRODUCT.

That’s it.

Vigneshwaran Vijayakumar.

Feel free to comment us below, if you have any queries about the above topic and find more interesting excel tutorials on our homepage: Excel24x7.com.

References:

  • NETWORKDAYS.INTL function by Microsoft Support, Retrieved on 26/04/2025: Link.
  • NETWORKDAYS function by Microsoft Support, Retrieved on 26/04/2025: Link.
  • NETWORKDAYS.INTL by Google Support, Retrieved on 26/04/2025: Link.
  • NETWORKDAYS and NETWORKDAYS.INTL functions in Excel by Excel Olympics, Retrieved on 26/04/2025: Link.
  • NETWORKDAYS.INTL by Libreoffice, Retrieved on 26/04/2025: Link.
  • Calculate Working/Business Days Between 2 Dates Using NETWORKDAYS and NETWORKDAYS.INTL by Mike Thomas, Retrieved on 26/04/2025: Link.
  • What is the difference between Networkdays and Networkdays INTL? by Quora, Retrieved on 26/04/2025: Link.

Recently Published Tutorials:

Vigneshwaran Vijayakumar

Hello, I’m Vigneshwaran Vijayakumar, also known as Vikroger, the founder, owner, and author of WinSides.com. With nearly a decade of experience in blogging across various domains and specializing in Windows-related tutorials for over five years, I bring a wealth of knowledge and expertise to WinSides.com. Expanding my expertise, I am now stepping into Excel24x7.com aiming to provide high-quality, in-depth articles that simplify Excel for users of all levels. My goal is to make learning Excel as seamless as possible, offering practical solutions and insights to enhance productivity and efficiency.

Find more about Vigneshwaran!

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button