NETWORKDAYS Function in Excel

Getting your Trinity Audio player ready...

When you’re managing project timelines, HR attendance, or payroll schedules, calculating working days between two dates — excluding weekends and holidays — is a common need.
Instead of manually counting, Excel gives us two powerful functions for this:
NETWORKDAYS() and NETWORKDAYS.INTL().

Networkdays Function in Excel

In this guide, we’ll learn both functions with real-life examples, a holiday table, and the difference between numeric and text weekend formats in NETWORKDAYS.INTL.


What is NETWORKDAYS Function in Excel?

NETWORKDAYS() returns the number of working days between two dates, automatically excluding weekends (Saturday & Sunday by default) and any optional holidays you specify.

Syntax

NETWORKDAYS(start_date, end_date, [holidays])

Parameters

  • start_date – The start of the date range.
  • end_date – The end of the date range.
  • holidays (optional) – A range or array of holiday dates to exclude.

Example 1: Basic Working Days Between Two Dates

Suppose you want to calculate how many working days are between January 1, 2025, and January 31, 2025.

=NETWORKDAYS("1-Jan-2025", "31-Jan-2025")

✅ Result: 23 working days

Excel automatically skips Saturdays and Sundays.


Adding Holidays to NETWORKDAYS

Now, let’s exclude official holidays from your working day count.

Holiday List for 2025

DateDayHolidayType
Jan 26SundayRepublic DayNational
Feb 26WednesdayMaha ShivaratriPublic
Mar 14FridayHoliPublic
Mar 31MondayEid al-FitrPublic
Apr 10ThursdayMahavir JayantiPublic
Apr 18FridayGood FridayPublic
May 12MondayBuddha PurnimaPublic
Jun 7SaturdayBakrid / Eid al-AdhaPublic
Jul 6SundayMuharramPublic
Aug 15FridayIndependence DayNational
Aug 16SaturdayJanmashtamiPublic
Sep 5FridayEid e MiladPublic
Oct 2ThursdayGandhi Jayanti & DussehraNational / Public
Oct 21TuesdayDiwaliPublic
Nov 5WednesdayGuru Nanak JayantiPublic
Dec 25ThursdayChristmasPublic

(Assume these holidays are in cells H2:H17)

Example 2: Exclude Holidays from Working Days

=NETWORKDAYS("1-Mar-2025","31-Mar-2025", H2:H17)

✅ This formula excludes weekends and any holiday listed in H2:H17.

Result: 21 working days (depending on the exact dates).


The Limitation of NETWORKDAYS

The NETWORKDAYS() function assumes Saturday and Sunday are weekends.

But in reality:

  • Some companies have Sunday only off.
  • Some countries follow Friday–Saturday weekends.
  • Some have custom weekend schedules (like retail or customer support teams).

For that flexibility, we use NETWORKDAYS.INTL().


NETWORKDAYS.INTL Function in Excel

NETWORKDAYS.INTL() lets you define custom weekends and still exclude holidays.

Syntax

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

Parameters

  • start_date – Start of the date range.
  • end_date – End of the date range.
  • weekend (optional) – Defines which days are weekends.
  • holidays (optional) – A range of dates to exclude.

Example 3: Default (Saturday & Sunday Off)

This works the same as the basic NETWORKDAYS().

=NETWORKDAYS.INTL("1-Jan-2025","31-Jan-2025",1)

✅ Result: 23 working days


Numeric Codes for Weekends in NETWORKDAYS.INTL

You can define weekends using a numeric code (1–17).

CodeWeekend Days
1Saturday, Sunday (default)
2Sunday, Monday
3Monday, Tuesday
4Tuesday, Wednesday
5Wednesday, Thursday
6Thursday, Friday
7Friday, Saturday
11Sunday only
12Monday only
13Tuesday only
14Wednesday only
15Thursday only
16Friday only
17Saturday only

Example 4: Sunday Only Weekend

If your company only observes Sunday as a weekend:

=NETWORKDAYS.INTL("1-Feb-2025","28-Feb-2025",11, H2:H17)

✅ This counts all days except Sundays and the listed holidays.


Example 5: Friday–Saturday Weekend

=NETWORKDAYS.INTL("1-May-2025","31-May-2025",7,H2:H17)

✅ Friday and Saturday are treated as weekends.


Example 6: Monday Only Weekend

=NETWORKDAYS.INTL("1-Jun-2025","30-Jun-2025",12,H2:H17)

✅ Excludes all Mondays + holidays.


Text Format for Weekends (7-Character String)

Instead of numeric codes, you can use a 7-character string to represent weekends.

Each character corresponds to a day starting from MondaySunday.

  • 0 = Working day
  • 1 = Weekend
StringWeekend Days
"0000011"Saturday & Sunday
"0001100"Friday & Saturday
"0000001"Sunday only
"1000000"Monday only
"0010000"Wednesday only

Example 7: Saturday & Sunday (Text Format)

=NETWORKDAYS.INTL("1-Apr-2025","30-Apr-2025","0000011",H2:H17)

✅ Same as numeric code 1.


Example 8: Sunday Only Weekend

=NETWORKDAYS.INTL("1-Jul-2025","31-Jul-2025","0000001",H2:H17)

✅ Same as numeric code 11.


Example 9: Friday & Saturday Weekend

=NETWORKDAYS.INTL("1-Aug-2025","31-Aug-2025","0001100",H2:H17)

✅ Equivalent to numeric code 7.


Example 10: Only Wednesday Off

=NETWORKDAYS.INTL("1-Sep-2025","30-Sep-2025","0010000",H2:H17)

✅ This excludes only Wednesdays and holidays.


Tip: Combine with TODAY()

To calculate how many working days remain until today, use:

=NETWORKDAYS.INTL(TODAY(), "31-Dec-2025", "0000011", H2:H17)

This dynamically updates every day.


Comparing NETWORKDAYS vs NETWORKDAYS.INTL

FeatureNETWORKDAYSNETWORKDAYS.INTL
Default weekendSaturday & SundaySaturday & Sunday
Custom weekends❌ Not supported✅ Fully supported
Text-based weekend✅ Yes ("0000011")
Region flexibilityLimitedHigh
Best forSimple standard workweekGlobal or flexible schedules

Real-Life Scenarios

Scenario 1: HR Attendance Report

HR wants to know how many working days each employee attended in a month excluding weekends and public holidays.

Formula (for each employee):

=NETWORKDAYS.INTL(StartDate, EndDate, "0000011", Holidays)

You can use this along with COUNTIF() to compare attendance logs.

Note: COUNTIF & COUNTIFS in Excel


Scenario 2: Project Deadline Calculation

You’re planning a project starting on 10-Feb-2025 and need to finish in 40 working days.

To find the end date, use WORKDAY.INTL():

=WORKDAY.INTL("10-Feb-2025",40,"0000011",H2:H17)

This gives the completion date excluding weekends and holidays.


Scenario 3: Banking Operations (Sunday Only Off)

Banks often work six days a week with only Sunday off.

=NETWORKDAYS.INTL("1-Mar-2025","31-Mar-2025","0000001",H2:H17)

This gives total working days in March excluding Sundays and holidays.


Scenario 4: Global Team with Friday–Saturday Off

If your Middle East branch observes Friday–Saturday weekends:

=NETWORKDAYS.INTL("1-Jun-2025","30-Jun-2025","0000110",H2:H17)

Use a custom string to maintain accurate workday calculations per region.


Troubleshooting Common Errors

ErrorReasonFix
#VALUE!Invalid date formatUse valid Excel date cells, not text
Wrong working day countWeekend argument incorrectVerify 7-character string or numeric code
Holidays not excludedHoliday range not properly referencedUse absolute range $H$2:$H$17

Bonus: Custom Weekend Patterns You Can Use

Weekend PatternString FormatUse Case
Saturday & Sunday"0000011"Default
Sunday only"0000001"Retail, banking
Friday & Saturday"0001100"Middle East countries
Wednesday only"0010000"Custom shift teams
Friday only"0000100"Special operation

Summary

  • NETWORKDAYS() – Quick calculation between two dates (Sat–Sun off).
  • NETWORKDAYS.INTL() – More flexible, lets you define any custom weekend.
  • Use holiday range to exclude official days off.
  • Numeric weekend codes are short, but text strings (like "0000011") are clearer and universal.
  • Combine with TODAY() or WORKDAY.INTL() for dynamic schedules.

Example for Practice

Try this formula in Excel:

=NETWORKDAYS.INTL(DATE(2025,1,1), DATE(2025,12,31), "0000001", $H$2:$H$17)

It will show total working days in 2025, excluding Sundays and official holidays.


Final Thoughts

When you’re managing MIS, HR, project timelines, or finance reports, you’ll often need to compute accurate working days.
By mastering both NETWORKDAYS() and NETWORKDAYS.INTL(), you can automate those calculations precisely, even for global or shift-based teams.

Once you understand the logic of numeric and text weekend codes, you’ll have complete flexibility — whether your office works 5 days, 6 days, or custom rotating weekends.

What’s Next?

In the next post, we’ll learn about the Flash Fill in Excel

Spread the love

Leave a Comment

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

Translate »
Scroll to Top