How to calculate working days in Excel
The NETWORKDAYS Function calculates the number of workdays between two dates in Excel. When using the function, the number of weekends are automatically excluded. It also allows you to skip specified holidays and only count business days. It is categorized in Excel as a Date/Time Function. You can use this formula to calculate working days in Excel between two dates.
In finance and accounting, the net workdays function is useful in calculating employee benefits that accrue based on days worked, the number of working days available during a project, or the number of business days required to resolve a ticket raised by a customer, etc.
=NETWORKDAYS(start_date, end_date, [holidays])
The function uses the following arguments:
- Start_date (required argument) – Start_date can either be earlier than end_date, later than end_date, or same as end_date.
- End_date (required argument) – The end date.
- Holidays (optional argument) – This specifies the list of holidays that should be excluded from the work days calculation. We can enter it as a range of cells that contain the holiday dates (that is F2:F4) or as a list of serial numbers that represent the holiday dates.
It is recommended that the start_date, end_date and [holidays] arguments are entered as either:
- References to cells containing dates; or
- Dates returned from formulas.
How to calculate NETWORKDAYS Function in Excel?
Let’s see a few examples to understand how the NETWORKDAYS function to calculate working days in Excel.
Example 1 – Working days between two dates
Suppose we wish to calculate the workdays or business days from January 15, 2017 to January 21, 2018. The holidays in between are:
- November 23, 2017 – Thanksgiving Day
- December 25, 2017 – Christmas Day
- January 1, 2018 – New Year’s Day
To calculate the number of working days, we use the following function:
Using the formula above, we will get the number of working days as 262, as shown below.
Pointers about the NETWORKDAYS function
- Negative return value – If the start date is later than the end date, the function will return a negative value.
- The NETWORKDAYS function will include both the start date and end date when calculating work days. So, if we give NETWORKDAYS the same date for start date and end date, it will return 1.
- #VALUE! error – Occurs when any of the given arguments is not a valid date.
- If we wish to use weekends other than Saturday and Sunday, we need to use the NETWORKDAYS.INTL function.
Thanks for reading CFI’s guide to important Excel functions! By taking the time to learn and master these functions, you’ll significantly speed up your financial analysis. To learn more, check out these additional CFI resources: