• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Excel NETWORKDAYS Function

You are here: Home / Excel Formulas / Excel NETWORKDAYS Function
Excel NETWORKDAYS Function
November 27, 2012 by Mynda Treacy

The Excel NETWORKDAYS function returns the number of whole working days between two date serial numbers, excluding weekends (Saturday & Sunday) and holidays.

Excel NETWORKDAYS Function syntax:

=NETWORKDAYS(start_date, end_date, [holidays])

start_date A date serial number or text

end_date A date serial number or text

[holidays] This optional argument can be a range of cells containing holiday dates that you want to exclude from the workday count.

In the example below, my list of holidays are out of view, in cells J11:J18.

Excel NETWORKDAYS Function examples

Note: NETWORKDAYS results are inclusive of the start and end dates.

Tip: NETWORKDAYS works with dates stored as text, but this is not reliable. It's always best to work with date serial numbers.

Excel NETWORKDAYS Function Example

Johnny works Monday to Friday selling encyclopedias (no one has told him about Wikipedia yet) and he wants to forecast his sales each day to see how he’s performing against his targets.

He uses this simple formula to extrapolate his sales:

=sales this month to date / workdays passed this month X total workdays this month

Johnny is a bit of a technophobe (obviously…he’s still selling encyclopedias) so he doesn’t have the benefit of Excel, but we can help him out with the NETWORKDAYS, EOMONTH and TODAY functions in Excel like this:

=1000/NETWORKDAYS(EOMONTH(TODAY(),-1)+1,TODAY()-1)*NETWORKDAYS(EOMONTH(TODAY(), -1)+1,EOMONTH(TODAY(),0))

I’ve used the EOMONTH and TODAY functions to calculate the start_date and end_date arguments:

Excel NETWORKDAYS Function

Note: The holidays argument is optional and I haven’t used it in this example as Johnny only takes weekends off!

Download the Excel workbook to see an example of the holidays argument in use.

EOMONTH function

The EOMONTH function returns the serial number of the last day of the month before or after a specified number of months.

EOMONTH syntax:

=EOMONTH(start_date, months)

Where ‘months’ is the specified number of months before or after the start date.

You can calculate months before the start date by using a negative number as I have done above; EOMONTH(TODAY(),-1) which gives the last day of the previous month.

TODAY Function

I use the TODAY function to return the current date. You simply enter the TODAY function like this:

=TODAY()

And it will pick up the date from your computer clock.

NETWORKDAYS Limitations

The Excel NETWORKDAYS function considers workdays as Monday to Friday.

Thankfully in Excel 2010 NETWORKDAYS.INTL function was introduced to allow you to enter custom weekend parameters.

The syntax is:

=NETWORKDAYS.INTL(start_date, end_date, [weekend], [holidays])

If you don’t have Excel 2010 there is an alternative solution for setting custom weekends here.

Free eBook - Working with Date & Time in Excel

Everything you need to know about Date and Time in Excel - Download the free eBook and Excel file with detailed instructions.

Enter your email address below to download the comprehensive Excel workbook and PDF.

By submitting your email address you agree that we can email you our Excel newsletter.
Please enter a valid email address.

Download the Excel Workbook and PDF. Note: This is a zip file including an Excel workbook with detailed instructions and a PDF version for your reference.

Excel NETWORKDAYS Function

More Excel Formulas Posts

ai-aided excel formula editor

AI Aided Excel Formula Editor

Save time with this free AI Excel formula editor add-in that writes, edits, improves and interprets formulas for you!
top excel functions for data analysts

Top Excel Functions for Data Analysts

Must know Excel Functions for Data Analysts and what functions you don’t have to waste time learning and why.
excel advanced formula environment

Excel Advanced Formula Environment

Excel Advanced Formula Environment is a long awaited, new improved way to write, name and store Excel formulas.
Pro Excel Formula Writing Tips

Pro Excel Formula Writing Tips

Must know Excel formula writing tips, tricks and tools to make you an Excel formula ninja, including a new formula editor.
excel shaping arrays

New Array Shaping Excel Functions

The Excel Shaping Array Functions makes it easier than ever to reshape arrays and ranges using these purpose built functions
excel nested if functions what not to do

Excel IF Formulas and What Not To Do

Excel IF formulas can get out of hand when you nest too many IFs. Not only do they become unwieldy they’re difficult for anyone to understand
excel image function

Excel IMAGE Function

The Excel IMAGE Function enables you to embed images in a cell using a formula. It supports BMP, JPG/JPEG, GIF, TIFF, PNG, ICO, and WEBP files

Excel VSTACK and HSTACK Functions

New Excel VSTACK and HSTACK functions makes combining arrays of cells easy and with some clever tricks we can extend their capabilities.
identify overlapping dates and times in excel

Identify overlapping dates and times in Excel

How to identify overlapping dates and times in Excel with a formula that checks a range of cells. Works with Dates and Times.
New Excel Text Functions

TEXTSPLIT, TEXTBEFORE and TEXTAFTER Functions

TEXTAFTER, TEXTBEFORE and TEXTSPLIT are exciting new Excel Text functions. They’re fairly self-explanatory, however TEXTSPLIT has some cool features.


Category: Excel Formulas
Previous Post:Excel VLOOKUP Multiple SheetsExcel VLOOKUP Multiple Sheets
Next Post:Excel COUNTIF Using Text CriteriaExcel COUNTIF Using Text Criteria

Reader Interactions

Comments

  1. Sam

    April 14, 2017 at 11:06 pm

    How can we calculate networkdays using power query?

    Reply
    • Mynda Treacy

      April 16, 2017 at 10:08 am

      Hi Sam,

      This post covers that.

      Mynda

      Reply
  2. Syed Raza

    December 6, 2012 at 5:27 pm

    It is a good idea to use EOMONTH and TODAY functions to calculate start_date and end_date arguments. In your formula to Johnny for his forecast, it is counting 22 workdays (including holiday on 25th Dec) but actual workdays in December are 21. I think your formula need to adjust by adding 1 day to start-date argument so that the start_date will become December 1 instead of November 30 and then the count of NETWORKDAYS will be 21 which are the actual workdays in December.
    =1000/NETWORKDAYS(EOMONTH(TODAY(),-1)+1,TODAY())*NETWORKDAYS(EOMONTH(TODAY(),-1)+1, EOMONTH(TODAY(),0))

    Regards,
    Syed

    Reply
    • Mynda Treacy

      December 6, 2012 at 9:33 pm

      Hi Syed,

      You’re correct…the formula starts at 30th November and it should start at 1st December.

      Thanks for bringing my attention to the error 🙂

      I’ve corrected it in the post for future.

      Kind regards,

      Mynda.

      Reply
  3. Jill Hodson

    December 6, 2012 at 12:19 am

    We are using the Networkdays formula to track response times in hours. We would like to incorporate the holiday piece of this function, but are not sure how to do that. Currently we have 2 different formulas to arrive at the hours as shown below.
    Example: Request rec’d = 11/20/12 10:47 am (G2)
    Request completed = 11/26/12 8:12 am (I2)
    Formula in column “K” =IF(I2=””,””,(ROUND((I2-G2)*24,0.5)))
    Formula in column “L” =IF(K2=””,””,IF(NETWORKDAYS(G2,I2)*24<K2,K2-48,K2))

    Reply
    • Mynda Treacy

      December 6, 2012 at 9:21 pm

      Hi Jill,

      The syntax for the NETWORKDAYS function is:

      =NETWORKDAYS(start_date,end_date,[holidays])

      In your last formula above you have omitted the holidays argument. You simply need to add it like this:

      =IF(K2=””,””,IF(NETWORKDAYS(G2,I2,holidays_range)*24

      Reply

Leave a Reply Cancel reply

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

Current ye@r *

Leave this field empty

Sidebar

More results...

Featured Content

  • 10 Common Excel Mistakes to Avoid
  • Top Excel Functions for Data Analysts
  • Secrets to Building Excel Dashboards in Less Than 15 Minutes
  • Pro Excel Formula Writing Tips
  • Hidden Excel Double-Click Shortcuts
  • Top 10 Intermediate Excel Functions
  • 5 Pro Excel Dashboard Design Tips
  • 5 Excel SUM Function Tricks
  • 239 Excel Keyboard Shortcuts

100 Excel Tips and Tricks eBook

Download Free Tips & Tricks

Subscribe to Our Newsletter

Receive weekly tutorials on Excel, Power Query, Power Pivot, Power BI and More.

We respect your email privacy

Guides and Resources

  • Excel Keyboard Shortcuts
  • Excel Functions
  • Excel Formulas
  • Excel Custom Number Formatting
  • ALT Codes
  • Pivot Tables
  • VLOOKUP
  • VBA
  • Excel Userforms
  • Free Downloads

239 Excel Keyboard Shortcuts

Download Free PDF

Free Webinars

Excel Dashboards Webinar

Watch our free webinars and learn to create Interactive Dashboard Reports in Excel or Power BI

Click Here to Watch Now

mynda treacy microsoft mvpHi, I'm Mynda Treacy and I run MOTH with my husband, Phil. Through our blog, webinars, YouTube channel and courses we hope we can help you learn Excel, Power Pivot and DAX, Power Query, Power BI, and Excel Dashboards.

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk – For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.