Function 12: NETWORKDAYS()
📘 Definition:
The NETWORKDAYS() function calculates the number of working days between two given dates — excluding weekends (Saturday and Sunday) and optionally, specified holidays.
In Indian workplaces, this is used for:
-
Calculating employee attendance
-
Measuring project deadlines
-
Estimating business working days within a period
-
Tracking salary or leave deduction days
🧩 Syntax: =NETWORKDAYS(start_date, end_date, [holidays])
| Argument | Description |
|---|---|
| start_date | The starting date of the period |
| end_date | The ending date of the period |
| [holidays] | (Optional) Range of dates representing holidays |
🧠 Example (Indian Perspective):
Let’s say:
-
Start Date →
01-Jan-2025 -
End Date →
31-Jan-2025 -
Holidays →
26-Jan-2025(Republic Day)
| Formula | Explanation | Result |
|---|---|---|
=NETWORKDAYS("1-Jan-2025","31-Jan-2025") |
Working days excluding weekends | 23 |
=NETWORKDAYS("1-Jan-2025","31-Jan-2025",{"26-Jan-2025"}) |
Excluding weekends & Republic Day | 22 |
✅ Explanation:
Between 1st and 31st January 2025, there are 31 calendar days. Out of them:
-
8 are weekends (Saturdays & Sundays)
-
1 is a national holiday (26th Jan)
Hence, total working days = 31 – 9 = 22 days.
🪜 Step-by-Step Breakdown:
-
Enter Start Date in A2 →
01-Jan-2025 -
Enter End Date in B2 →
31-Jan-2025 -
Enter Holiday in C2 →
26-Jan-2025 -
Formula →
=NETWORKDAYS(A2,B2,C2) -
Result → 22
💡 Tip:
If your organization’s weekends are different (like Friday-Saturday), use NETWORKDAYS.INTL() (we’ll cover that next).
🎯 Why It’s Useful:
-
Ideal for HR, Payroll, and Project Management.
-
Helps calculate number of payable days, leave days, or production days.
-
Common in Indian companies where holidays vary by region (e.g., Durga Puja, Diwali, Eid, Christmas).
🧑💻 Project Task 1: Employee Working Days Report
| Employee ID | Start Date | End Date | Holidays | Total Working Days |
|---|---|---|---|---|
| E101 | 01-Jan-2025 | 31-Jan-2025 | 26-Jan-2025 | |
| E102 | 01-Feb-2025 | 28-Feb-2025 | 14-Feb-2025 | |
| E103 | 01-Mar-2025 | 31-Mar-2025 | 8-Mar-2025 | |
| E104 | 01-Apr-2025 | 30-Apr-2025 | 14-Apr-2025 |
👉 Tasks:
-
Use the formula:
-
Highlight employees who worked less than 20 days using conditional formatting.
-
Create a summary that shows average working days per month.
🧑💻 Project Task 2: Project Deadline Estimation
| Project Name | Start Date | End Date | Company Holidays | Working Days Available |
|---|---|---|---|---|
| Website Revamp | 03-Feb-2025 | 28-Feb-2025 | 21-Feb-2025 | |
| App Development | 01-Mar-2025 | 31-Mar-2025 | 8-Mar-2025 | |
| GST Filing System | 05-Apr-2025 | 25-Apr-2025 | 14-Apr-2025 | |
| Digital Marketing Campaign | 01-May-2025 | 20-May-2025 |
👉 Tasks:
-
Use
=NETWORKDAYS(B2,C2,D2)to calculate actual working days available for each project. -
Add a column “Deadline Risk” using:
-
Create a bar chart comparing Project Name vs Working Days.