Excel - NETWORKDAYS.INTL Function



NETWORKDAYS.INTL Function

The Excel NETWORKDAYS.INTL function returns the N working days between the start and end dates using the custom weekend parameters. It is a part of the Date and Time functions in Excel. It was first launched in Excel 2010 and is supported in later versions. For example, Using this function, you can compute the number of working to host the event, excluding weekends and other federal holidays.

Compatibility

This advanced Excel function is compatible with the following versions of MS Excel −

  • Excel for Microsoft 365
  • Excel for Microsoft 365 for Mac
  • Excel for the web
  • Excel 2024
  • Excel 2024 for Mac
  • Excel 2021
  • Excel 2021 for Mac
  • Excel 2019
  • Excel 2016
  • Excel Web App
  • Excel 2013
  • Excel 2010

Syntax

The syntax of the NETWORKDAYS.INTL function is as follows −

=NETWORKDAYS.INTL(start_date, end_date, [weekend], [holidays])

Arguments

You can use the following arguments with the NETWORKDAYS.INTL function −

Argument Description Required / Optional
Start_date It specifies the date serial number or a valid date. Required
end_date It specifies another date serial number or a valid date. Required
Weekend

It denotes the weekend number or string, which represents the occurrence of the weekends.

The description of the Weekend Numbers is depicted in the weekend days table.

Optional
Holidays It contains the cell ranges that refer to the dates or an array constant specifying dates. Optional

Weekend Days Table

Weekend Number Weekend Days
1 or omitted Saturday, Sunday
2 Sunday, Monday
3 Monday, Tuesday
4 Tuesday, Wednesday
5 Wednesday, Thursday
6 Thursday, Friday
7 Friday, Saturday
11 Sunday only
12 Monday only
13 Tuesday only
14 Wednesday only
15 Thursday only
16 Friday only
17 Saturday only

The weekend string is seven characters long, and each character denotes a weekday, beginning with Monday. 0 indicates a workday, and 1 indicates a non-workday. Characters other than 0 and 1 are supported in the weekend string.

NETWORKDAYS.INTL Formula Not Working

The main causes when the NETWORKSDAYS.INTL formula generates the errors are given below −

  • If the start_date argument is outside the range, the NETWORKDAYS.INTL function will not work and will return thxe #NUM! error.
  • If the end_date argument is beyond the range, then NETWORKDAYS.INTL function returns the #NUM! error.
  • If the invalid string is specified in the weekend argument, then the NETWORKDAYS.INTL function will retrieve the #VALUE! error.
  • If the weekend argument defines the special characters, the NETWORKDAYS.INTL function will not execute.
  • The weekend string must be enclosed in the double quotation and consist of seven characters of 0 and 1. If it contains non-binary numbers, then this function will return the #VALUE! error.
  • The NETWORKDAYS. INTL function will not work if you are using a prior version of Excel 2010.

Example of NETWORKDAYS.INTL Function

Practice the following example to learn the use of the NETWORKDAYS.INTL function in Excel.

Example: Calculating 9 Working Days to Resolve the Ticket using NETWORKDAYS.INTL Function

In this example, the customer raises a ticket regarding a product issue. To resolve the query, a service team requires a specific number of working days from the start date to the end date, excluding holidays and weekends, which is calculated through NETWORKDAYS.INTL function in Excel.

Solution

Step 1 − First, assume the sample dataset where the description of start date, end date, weekend, and Holidays are depicted.

Calculating 9 Working Days to Resolve Ticket1

Step 2 − After that, enter the formula =NETWORKDAYS.INTL(B2,C2,D2,E2) in the F2 cell and hit the Enter tab.

Calculating 9 Working Days to Resolve Ticket2

Calculating 9 Working Days to Resolve Ticket3

Therefore, the NETWORKDAYS.The INTL function returns the number of working days, which means the service team must have 30 working days to resolve the issue encountered with the product.

Step 3 − Furthermore, select the F3 cell and write the formula =NETWORKDAYS.INTL(B3,C3,D3,E3).

Calculating 9 Working Days to Resolve Ticket4

After that, hit the Enter tab to obtain the resulting value.

Calculating 9 Working Days to Resolve Ticket5

Download Practice Sheet

You can download and use the sample data sheet to practice the NETWORKDAYS.INTL function.

Advertisements