Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How to calculate current stock or inventory in Excel
  • Chart Axes in Excel
  • Data Series in Excel
  • How to add Trendline to a chart in Excel
  • Excel Line Chart

References

  • How to get relative column numbers in a range in Excel
  • How to get last row in text data in Excel
  • How to retrieve first match between two ranges in Excel
  • How to get address of first cell in range in Excel
  • How to use Excel FORMULATEXT function

Data Validations

  • Excel Data validation require unique number
  • Excel Data validation allow weekday only
  • Excel Data validation exists in list
  • How To Create Drop-down List in Excel
  • Excel Data validation no punctuation

How to get workdays between dates in Excel

by

To calculate the number of workdays between two dates, you can use the NETWORKDAYS function. NETWORKDAYS automatically excludes weekends, and it can optionally exclude a custom list of holidays as well.

Formula

=NETWORKDAYS(start_date,end_date,holidays)
Note that NETWORKDAYS includes both the start and end dates in the calculation if they are workdays.

Explanation

For example, if you have the date January 4, 2016 (a Monday) in cell B4, and January 11, 2016 (also a Monday) in cell C4, this formula will return 6:

=NETWORKDAYS(B4,C4)

NETWORKDAYS can also exclude a custom list of holidays. For example, if you have holiday dates in H1:H10, you can tell NETWORKDAYS not to include these dates as workdays by adding that range as a third argument in the formula:

=NETWORKDAYS(B4,C4,H1:H10)

Custom weekends

If you need take into account custom weekends (i.e. weekends are Saturday only, Sunday and Monday, etc.) you’ll need to switch to the more robust NETWORKDAYS.INTL function, which allows you to set what days of the week are considered are considered weekends, by supplying a weekend argument in the form of a numeric code.

Worked Example:   Get work hours between dates in Excel

Post navigation

Previous Post:

Get day from date in Excel

Next Post:

Calculate loan interest in given year 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

Logical Functions

  • How to use Excel AND Function
  • Invoice status with nested if in Excel
  • Complete List of Excel Logical Functions, References and Examples
  • IF, AND, OR and NOT Functions Examples in Excel
  • AND function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • List holidays between two dates in Excel
  • How to calculate project start date based on end date in Excel
  • Check If Two Dates are same month in Excel
  • Add business days to date in Excel
  • How to get same date next year or previous year in Excel

Grouping

  • Map inputs to arbitrary values in Excel
  • Group numbers at uneven intervals in Excel
  • Map text to numbers in Excel
  • How to randomly assign data to groups in Excel
  • Calculate conditional mode with criteria in Excel

General

  • Subtotal invoices by age in Excel
  • 44 Practical Excel IF function Examples
  • Creating and Opening an existing file in Excel
  • Using Existing Templates in Excel
  • Create dynamic workbook reference to another workbook in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning