Date & Time
All versions
◉ 36 views
=NETWORKDAYS()
Returns the number of whole working days between start_date and end_date. Working days exclude weekends and any dates identified in holidays. Use NETWORKDAYS to calculate employee benefits that accrue based on the number of days worked during a specific term.
Applies To:
Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for MacExcel 2021Excel 2021 for MacExcel 2019Excel 2016
=NETWORKDAYS(start_date, end_date, [holidays])
Hover argument names in the table for details.
Output typeNumber
Popularity55 / 100
VolatileNo
Dynamic ArrayNo
Download sample .xlsx ▦ Try in Playground
Dedicated file for this function — safe & lightweight · sample data + live formulas
⬇ Download Sample Workbook
A dedicated .xlsx for =NETWORKDAYS() with Persian sample data & live formulas — open in Excel and practice.
- Sheet “Sample” — data table + formula in place
- Sheet “Guide” — syntax, arguments & tips from this page
- Instant & secure (token + rate limit)
Quiz this function
%d questions — syntax, example & errors — test yourself!
◧ Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
start_date |
Date | Required | A date that represents the start date. |
end_date |
Date | Required | A date that represents the end date. |
holidays |
Range | Optional | An optional range of one or more dates to exclude from the working calendar, such as state and federal holidays and floating holidays. The list can be either a range of cells that contains the dates or an array constant of the serial numbers that represent the dates. |
▣ Examples
▦ Data
| Cell | Value | Description |
|---|---|---|
A2 |
10/1/2012 | Start date of project |
A3 |
3/1/2013 | End date of project |
A4 |
11/22/2012 | Holiday |
A5 |
12/4/2012 | Holiday |
A6 |
1/21/2013 | Holiday |
A7 |
10/1/2012 | Start date of project |
A8 |
3/1/2013 | End date of project |
A9 |
11/22/2012 | Holiday |
A10 |
12/4/2012 | Holiday |
A11 |
1/21/2013 | Holiday |
Number of workdays between the start (10/1/2012) and end date (3/1/2013).
=NETWORKDAYS(A2,A3)
Result:
110
Number of workdays between the start (10/1/2012) and end date (3/1/2013), with the 11/22/2012 holiday as a non-working day.
=NETWORKDAYS(A2,A3,A4)
Result:
109
Number of workdays between the start (10/1/2012) and end date (3/1/2013), with the three holidays as non-working days.
=NETWORKDAYS(A2,A3,A4:A6)
Result:
107
§ Remarks
- Microsoft Excel stores dates as sequential serial numbers so they can be used in calculations. By default, January 1, 1900 is serial number 1, and January 1, 2012 is serial number 40909 because it is 40,909 days after January 1, 1900.
- If any argument is not a valid date, NETWORKDAYS returns the #VALUE! error value.
✦ Tips
- To calculate whole workdays between two dates by using parameters to indicate which and how many days are weekend days, use the NETWORKDAYS.INTL function.
- Dates should be entered by using the DATE function, or as results of other formulas or functions. For example, use DATE(2012,5,23) for the 23rd day of May, 2012. Problems can occur if dates are entered as text.
- Microsoft Excel stores dates as sequential serial numbers so they can be used in calculations. By default, January 1, 1900 is serial number 1, and January 1, 2012 is serial number 40909 because it is 40,909 days after January 1, 1900.
⚠ Common Errors
#VALUE!
If any argument is not a valid date, NETWORKDAYS returns the #VALUE! error value.
Fix: Check the dates and the holiday range
💬 Comments & Q&A 0 approved
🔒 Your comment will be published after review.Share your thoughts — visible after admin approval
No comments yet — be the first!