• 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
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member
  • Login

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
Mynda Treacy

Microsoft MVP logo

AUTHOR Mynda Treacy Co-Founder / Owner at My Online Training Hub

CIMA qualified Accountant with over 25 years experience in roles such as Global IT Financial Controller for investment banking firms Barclays Capital and NatWest Markets.

Mynda has been awarded Microsoft MVP status every year since 2014 for her expertise and contributions to educating people about Microsoft Excel.

Mynda teaches several courses here at MOTH including Excel Expert, Excel Dashboards, Power BI, Power Query and Power Pivot.

More Excel Formulas Posts

Excel SUMPRODUCT Function

Excel SUMPRODUCT Function

The Excel SUMPRODUCT function is one of Excel's most versatile and underutilized functions allowing for flexible aggregations of data.
Summarize Months to Quarters

Excel Formulas to Summarise Monthly Data into Quarters

3 ways (good, better, best) to summarize monthly data into quarters using formulas. Lots of examples and sample file to download.
Excel BYROW and BYCOL Functions

Excel BYCOL and BYROW Functions

Excel BYCOL and BYROW functions fundamentally change the way we write formulas that calculate across columns and down rows.
python in excel natively

How to Use Python in Excel Natively

How to use Python in Excel natively using libraries like Pandas, NumPy, Matplotlib, Seaborn and more for analysis and spectacular charts!
excel dynamic named ranges

Excel Dynamic Named Ranges

Excel Dynamic Named Ranges update automatically to include new data in the ranges referenced in your formulas and PivotTables etc.
functions for financial modelling

Excel Functions for Financial Modeling

Top 23 must know Excel functions for Financial Modeling. Includes example Excel file and step by step instructions.
excel formula by example

Excel Formula by Example

Excel can now write a formula by example. Simply give it an example or two of the result and Excel will write the formula.
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 Labs (Formerly, Advanced Formula Environment)

Excel Labs is a long awaited, new improved way to write, name and store Excel formulas, including LAMBDAS with the help of AI.


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

Popular 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

239 Excel Keyboard Shortcuts

Download Free PDF

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 Office Scripts
  • 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

Sign up to our newsletter and join over 400,000
others who learn Excel and Power BI with us.

 

Company

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

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.