What is the NETWORKDAYS function?
=NETWORKDAYS(start_date, end_date, [holidays])NETWORKDAYS counts the workdays between two dates, leaving out weekends (Saturday and Sunday) and holidays. Use it for pay by days worked, project working days or business-day periods.
The start and end dates count too if they are workdays. Play the steps to see each day checked and only workdays numbered.
Arguments
- start_date
- The first day of the period.
- end_date
- The last day of the period. If it is before the start date, the result is negative.
- holidays
- Optional. Dates to leave out besides the weekend.
NETWORKDAYS examples
Example 1. Workdays in May
=NETWORKDAYS(DATE(2026,5,1), DATE(2026,5,29), H2:H3)21 weekdays minus 2 holidays (5/5 and 5/25): 19.
Example 2. From hire date to today
=NETWORKDAYS(A2, TODAY(), $H$2:$H$20)Keep the holiday range absolute when copying down.
Common mistakes
Different from DAYS
DAYS is end minus start, so it counts only one end; NETWORKDAYS counts both ends.
Holidays on weekends
A holiday on a Saturday or Sunday is already left out as a weekend, so it is not removed twice.
FAQ
- What if the days off are not Saturday and Sunday?
- Use NETWORKDAYS.INTL.
- What if I swap the dates?
- As in Microsoft's example, a later start date gives a negative number of the same size.