Skip to content
xlsoffice. All Rights Reserved
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Lookup and Reference Examples

  • Approximate match with multiple criteria in Excel
  • How to get relative row numbers in a range in Excel
  • Create hyperlink with VLOOKUP in Excel
  • How to use Excel ROW Function
  • How to use Excel VLOOKUP Function

Data Analysis Examples

  • Create Scatter Chart in Excel
  • How to combine 2 or more chart types in a single chart in Excel
  • How To Filter Data in Excel
  • How To Create Frequency Distribution in Excel
  • How to add Trendline to a chart in Excel

Data Validation Examples

  • Excel Data validation number multiple 100
  • Excel Data validation specific characters only
  • Excel Data validation only dates between
  • Excel Data validation no punctuation
  • Excel Data validation exists in list

How to calculate workdays per month in Excel

by

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

Formula

=NETWORKDAYS(date,EOMONTH(date,0),holidays)

Explanation

In the example shown, the formula in C4 is:

=NETWORKDAYS(B4,EOMONTH(B4,0),holidays)

Where “holidays” is the named range E3:E13.

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”.

Worked Example:   NETWORKDAYS function: Description, Usage, Syntax, Examples and Explanation

For example, B4 contains January 1, 2014, 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).

Worked Example:   Get last day of month in Excel

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

EOMONTH(B4,0)

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.

Worked Example:   Get first day of month in Excel

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.

Post navigation

Previous Post:

How to calculate working days left in month in Excel

Next Post:

Calculate total hours that fall between two times in Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others
  • Change Case: Uppercase, Lowercase, Propercase in Excel
  • DBCS function: Description, Usage, Syntax, Examples and Explanation
  • Extract last name from full name — Manipulating NAMES in Excel
  • Split numbers from units of measure in Excel
  • Extract most frequently occurring text in Excel
  • Count day of week between dates in Excel
  • Assign points based on late time in Excel
  • Display Date is same month in Excel
  • Get work hours between dates and times in Excel
  • Convert Excel time to Unix time in Excel
  • NPER function: Description, Usage, Syntax, Examples and Explanation
  • IPMT function: Description, Usage, Syntax, Examples and Explanation
  • COUPPCD function: Description, Usage, Syntax, Examples and Explanation
  • DISC function: Description, Usage, Syntax, Examples and Explanation
  • How to calculate principal for given period in Excel
© 2022 xlsoffice . All Right Reserved. | Teal Smiles