Advanced Excel
About Lesson

Function 13: NETWORKDAYS.INTL()


📘 Definition:

The NETWORKDAYS.INTL() function calculates the number of working days between two dates, allowing you to define which days are weekends.

Unlike NETWORKDAYS(), this version gives full flexibility — perfect for India, where some companies (like private firms or schools) may consider Sunday only, while others treat Saturday–Sunday, or even Friday–Saturday as weekends.


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

Argument Description
start_date Starting date of the period
end_date Ending date of the period
[weekend] A code or binary string that defines which days are weekends
[holidays] (Optional) A range or array of holiday dates

🧠 Example (Indian Perspective):

Weekend Code Weekend Days Description
1 Saturday–Sunday Default (like NETWORKDAYS)
2 Sunday–Monday For Middle-East work weeks
7 Friday–Saturday Common in Gulf or export-based firms
11 Sunday only Common in Indian schools/offices
17 Friday only For some factory setups

📊 Example Table:

Start Date End Date Weekend Code Holidays Formula Result
01-Jan-2025 31-Jan-2025 1 26-Jan-2025 =NETWORKDAYS.INTL(A2,B2,C2,D2) 22
01-Jan-2025 31-Jan-2025 11 26-Jan-2025 =NETWORKDAYS.INTL(A3,B3,C3,D3) 26

Explanation:

  • When only Sunday is weekend (code 11), you get 26 working days instead of 22.

  • This is more realistic for many Indian private offices or schools that work on Saturdays.


💡 Tip:

You can also use a 7-character binary string to define custom weekends:

 
NETWORKDAYS.INTL(A2,B2,"0000011")

👉 Each digit represents a day from Monday to Sunday (1 = weekend, 0 = workday).
Example: "0000011" means Saturday and Sunday are weekends.


🎯 Why It’s Useful:

  • Useful for organizations with different weekends (e.g., banks, IT firms, schools).

  • Great for HR, Payroll, and Project Planning across branches in different states.

  • Supports real Indian working patterns, where Saturday might be a half-day or working day.


🧑‍💻 Project Task 1: Branch-wise Working Day Comparison

Branch Start Date End Date Weekend Code Holidays Working Days
Kolkata 01-Jan-2025 31-Jan-2025 11 26-Jan-2025  
Mumbai 01-Jan-2025 31-Jan-2025 1 26-Jan-2025  
Delhi 01-Jan-2025 31-Jan-2025 17 26-Jan-2025  
Chennai 01-Jan-2025 31-Jan-2025 7 26-Jan-2025  

👉 Tasks:

  1. Use the formula:

     
    =NETWORKDAYS.INTL(B2,C2,D2,E2)
  2. Find out which branch had maximum working days.

  3. Create a bar chart comparing all branches’ total working days.

  4. Add conditional formatting to highlight any branch with less than 20 days.


🧑‍💻 Project Task 2: Student Exam Preparation Tracker

Student Name Study Start Exam Date Weekend Type Holidays (Festival) Total Study Days
Arjun 01-Mar-2025 31-Mar-2025 11 17-Mar-2025  
Sneha 05-Mar-2025 31-Mar-2025 1 17-Mar-2025  
Priya 10-Mar-2025 31-Mar-2025 7 17-Mar-2025  
Rakesh 01-Mar-2025 31-Mar-2025 17 17-Mar-2025  

👉 Tasks:

  1. Use =NETWORKDAYS.INTL(B2,C2,D2,E2) to calculate study days excluding weekends and festivals.

  2. Find out who got the highest number of effective study days.

  3. Create a ranking system using =RANK(F2,F2:F5,0) for best preparation advantage.