How to calculate the total number of working days between two dates in Excel. This allows you to exclude all weekends, holidays, and any other dates that you specify.
This is an invaluable method to use when calculating payment schedules, shipping dates, and much more in Excel.
To do this we will use the NETWORKDAYS() function.
=NETWORKDAYS(start_date, end_date, [holidays])
Argument | Description |
---|---|
Start_date |
The start of the calculation. This must be entered as a date, but, in almost all cases you will simply reference a cell that already contains a date. |
End_date |
The end of the calculation. This must be entered as a date, but, in almost all cases you will simply reference a cell that already contains a date. |
[Holidays] | A list of holidays to exclude from the number of working days calculation. This can be entered as an array of date serial numbers but, it's much easier to simply reference a range of cells that contain dates for the holidays, as described below. |
[] means the argument is optional.
Let's find the number of working days between January 11, 2016 and March 15, 2016.
This tells us that there are 47 working days between these two dates. It is as simple as that.
You may need to account for holidays in your company when calculating the total number of working days. This is easy to do and just requires us to maintain a list of holidays that we can then reference.
Let's say that we still want to find out the total number of working days between January 11, 2016 and March 15, 2016, but now we will include some holidays in there.
You can see now that the total number of working days is three days less once we have included the dates for the holidays.
If the start_date for the NETWORKDAYS function is on a working day, it will be included in the total number of working days returned by the function; this is also true for the end_date.
This is a very helpful function to use in Excel for keeping track of work, employees, billing, and so much more. It's very simple to use but you must make sure that your holiday dates list is properly updated every year so that you don't have issues with the final calculation.
Make sure to download the accompanying spreadsheet so you can see this function in action.