Workdays per month

Workdays per month

Related Functions

To calculate workdays per month, use the EOMONTH function together with the NETWORKDAYS function.

In the example shown, the formula in C4 is:


How this formula works

First, it’s important to understand that the values in the Month column (B) are actual dates, formatted with the custom number format “mmm”.

For example, B4 contains January 1, 2018, but displays only “Jan” per the custom number format.

The formula itself is based on the NETWORKDAYS function, which returns the number of working days between a start date and end date, taking into account holidays (if provided).

For each month, the start date comes from column B and the end date is calculated with the EOMONTH function like so:


EOMONTH takes a date and returns the last day of a month. The month itself is controlled by the 2nd argument. Since in this case we want to stay in the same month, we use zero.

Finally, a list of holidays is provided as the 3rd argument to NETWORKDAYS using the named range holidays (E3:E13).

With this information, NETWORKDAYS calculates the number of working days in each month, automatically excluding weekends and holidays.

If you need more control over which days are treated as weekends, use the NETWORKDAYS.INTL function.

0 votes. 0 / 5

Excel - Excel Functions - Excel Formulas