NETWORKDAYS Function in Excel
Master NETWORKDAYS to calculate working days between dates, excluding weekends and holidays. Perfect for project timelines, payroll, and deadline management.




=NETWORKDAYS(start_date, end_date, [holidays])
Real-World Examples
Basic Project Timeline Calculation
Calculate working days for a project starting January 15, 2025, ending March 31, 2025
Payroll Calculation with Holidays
Calculate billable days for February 2025 payroll excluding company holidays
Invoice Due Date Calculation
Calculate 30 business days payment terms from invoice date
SLA Response Time Tracking
Track actual response time in business days for support tickets
Employee Attendance Percentage
Calculate attendance rate based on actual days worked vs. possible working days
Multi-Phase Project Planning
Calculate cumulative working days across project phases with different holiday calendars
Common Errors and Solutions
NETWORKDAYS returns #VALUE! error
One or both date parameters contain text that cannot be interpreted as a valid date
1. Verify both dates are properly formatted as dates, not text 2. Use DATEVALUE() to convert text dates: =NETWORKDAYS(DATEVALUE(A2), DATEVALUE(B2)) 3. Check for hidden spaces using TRIM() 4. Ensure date format matches your regional settings
Always format date columns as Date format before entering values. Use DATE() function for explicit date creation.
Example:
Excel doesn't recognize NETWORKDAYS function
Function is misspelled or the Analysis ToolPak add-in is not enabled in older Excel versions
1. Check spelling: NETWORKDAYS (not NETWORKDAYS or NETWORK_DAYS) 2. For Excel 2003 or earlier, enable Analysis ToolPak: File → Options → Add-ins → Analysis ToolPak 3. In Google Sheets, function should work without add-ins 4. Update to a newer Excel version if possible
Use Excel's formula autocomplete feature to ensure correct spelling
Example:
Result shows #NUM! error
Date serial numbers are outside Excel's valid date range (1/1/1900 to 12/31/9999)
1. Check if dates are within Excel's valid range 2. Verify year is entered as 4 digits (2025, not 25) 3. Look for formula errors creating invalid date values 4. Check for corrupted date data
Use data validation to restrict date inputs to reasonable ranges
Example:
Formula returns wrong number of days
Not understanding that NETWORKDAYS includes both start and end dates in the count
1. Remember both dates are included if they're weekdays 2. For exclusive counting, subtract 1: =NETWORKDAYS(A2,B2)-1 3. Verify holiday range doesn't include weekends (redundant) 4. Check that holiday dates are actual dates, not text
Document whether your calculation needs inclusive or exclusive counting
Example:
Formula returns unexpected negative number
End date is before start date, causing reverse calculation
1. Switch date parameters if needed 2. Use ABS() for absolute values: =ABS(NETWORKDAYS(A2,B2)) 3. Add logic to handle both directions: =IF(A2>B2, -NETWORKDAYS(B2,A2), NETWORKDAYS(A2,B2)) 4. Validate date entry with data validation
Implement data validation to ensure end date is after start date
Example:
Best Practices and Advanced Tips
Create a named range for holidays that automatically updates each year. Use a separate sheet called 'Holidays' with dates in column A, then define a dynamic named range: =OFFSET(Holidays!$A$2,0,0,COUNTA(Holidays!$A:$A)-1,1). This allows easy yearly updates without modifying formulas.
For countries with different weekends (e.g., Middle East with Friday-Saturday weekends), use NETWORKDAYS.INTL instead. This function allows custom weekend definitions: =NETWORKDAYS.INTL(A2, B2, 7) where 7 represents Friday-Saturday weekends.
Avoid including weekends in your holiday list - they're already excluded by NETWORKDAYS. Including weekend dates in holidays won't cause errors but wastes processing and can confuse maintenance. Keep your holiday list clean with only actual business day holidays.
Create dynamic deadline trackers by combining NETWORKDAYS with TODAY(). Formula: =NETWORKDAYS(TODAY(), DeadlineDate, Holidays) shows remaining working days. Add conditional formatting to highlight when fewer than 5 days remain.
When calculating NETWORKDAYS for thousands of rows, reference a single holiday range using absolute references ($E$2:$E$20) instead of different ranges per row. This reduces calculation overhead by 60%. Also, consider calculating once and using VLOOKUP for repeated date pairs.
For fiscal year working days, combine NETWORKDAYS with DATE functions. Example for FY starting July 1: =NETWORKDAYS(DATE(IF(MONTH(TODAY())>=7, YEAR(TODAY()), YEAR(TODAY())-1), 7, 1), DATE(IF(MONTH(TODAY())>=7, YEAR(TODAY())+1, YEAR(TODAY())), 6, 30), Holidays)
Need Help with NETWORKDAYS Function in Excel?
Stop struggling with formula syntax. Use AskFormulas to generate validated formulas instantly with our AI-powered tool.
Example Excel formula:
Related Formulas
Master the DATEDIF function to calculate date differences in years, months, or days. Learn syntax, examples, and solutions to common errors.


The NOW function returns the current date and time, updating automatically when the spreadsheet recalculates. Perfect for timestamps and real-time tracking.


Master the TODAY function to insert dynamic current dates that update automatically. Learn practical examples and avoid common errors.


Master the WEEKDAY function to return the day of week as a number. Learn syntax, examples, and error solutions for Excel and Google Sheets calculations.

