logo-mini

NETWORKDAYS.INTL Function

The NETWORKDAYS.INTL function in Microsoft Excel is a powerful tool that allows you to calculate the number of workdays between two dates, excluding weekends and holidays. This function is especially useful for calculating the number of days it takes to complete a project or task, or for determining the number of days between two important dates.

To use the NETWORKDAYS.INTL function, you will need to specify the start date, the end date, and the weekend days for the calculation. You can also specify any holidays that should be excluded from the calculation.

The syntax for the NETWORKDAYS.INTL function is as follows:

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

Here’s a breakdown of the different arguments for this function:

  • start_date: This is the start date for the calculation. It should be entered as a reference to a cell containing a date or as a date in the format “mm/dd/yyyy”.
  • end_date: This is the end date for the calculation. It should be entered in the same format as the start date.
  • [weekend]: This is an optional argument that specifies which days of the week should be considered weekends. You can specify any combination of days using a code, such as “11” for Saturday and Sunday or “1111111” for every day of the week. If you omit this argument, the default value of “11” will be used.
  • [holidays]: This is an optional argument that allows you to specify a range of cells containing dates that should be excluded from the calculation. You can enter a reference to a range of cells containing dates, or you can enter an array of dates directly. If you omit this argument, no holidays will be excluded from the calculation.

Here’s an example of how you might use the NETWORKDAYS.INTL function to calculate the number of workdays between two dates:

=NETWORKDAYS.INTL(“1/1/2022”, “1/31/2022”)

This formula would return the number of workdays between January 1st and January 31st of 2022. By default, the weekend is set to “11” (Saturday and Sunday), so these days would be excluded from the calculation.

You can also specify a different weekend by using the [weekend] argument. For example:

=NETWORKDAYS.INTL(“1/1/2022”, “1/31/2022”, “1111100”)

This formula would return the number of workdays between January 1st and January 31st of 2022, excluding Saturday and Sunday.

If you want to exclude certain holidays from the calculation, you can use the [holidays] argument. For example:

=NETWORKDAYS.INTL(“1/1/2022”, “1/31/2022”, “11”, A2:A5)

This formula would return the number of workdays between January 1st and January 31st of 2022, excluding Saturday, Sunday, and any dates listed in the range A2:A5.

Download the sample files: NETWORKDAYS.INTL FUNCTION – Click here