The NETWORKDAYS function in Microsoft Excel is a date and time function that returns the number of whole working days between Start_date and End_date. The NETWORKDAYS function excludes weekends (Saturday and Sunday) and dates identified in holiday. If the argument is not valid, the NETWORKDAYS function will return the error value #VALUE.
The formula for the NETWORKDAYS function is NETWORKDAYS(start_date,end_date,[holiday])
.
The Syntax for NETWORKDAYS is:
- Start_date: The date that represents the start date. It is required.
- End_date: The date that represents the start date. It is required.
- Holidays: Dates that are excluded from the working days on the calendar. The list can be a range of cells containing the dates or a serial number representing the date. It is optional.
How to use NETWORKDAYS function in Excel
Open Excel.
Create a table or open an existing table.
In his tutorial, we want to find the number of workdays between the start date and end date.
In the cell where you want to place the result type:
=NETWORKDAYS(A2, B2)
- A2 is the Start_date.
- B2 is the End_date.
Press Enter on the Keyboard to see the result and drag the fill handle down to see the other result in the table.
We want to find the number of workdays between the start date and end date with the holiday as non-working days.
In the cell where you want to place the result type:
=NETWORKDAYS(A2, B2, H2 )
H2 is the Holiday as a non-working day; it is optional.
Then press the Enter key to see the result.
There two other methods to use the NETWORKDAYS function in Microsoft Excel.
Method one is to click the fx button on top of the excel worksheet.
A Insert Function dialog box will pop up.
In the Select a Category section, click Date and Time.
In the section Select a Function, click NETWORKDAYS from the list.
Then, click OK.
A Function Arguments dialog box will appear.
- In the section Start_date, enter the A2 in the entry box.
- In the section End_date, enter the B2 in the entry box.
Then, click OK.
Method Two is to click the Formulas tab and click the Date and Time button in the Function Library group.
In the drop-down list, select NETWORKDAYS.
A Function Arguments dialog box will open.
Follow method one to see the procedure.
Then click OK.
We hope this tutorial helps you understand how to use the NETWORKDAYS function in Excel.
Read next: How to count words in Microsoft Excel.