Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, and 2016. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Calculating Business Days.

by Allen Wyatt
(last updated December 8, 2020)

In performing calculations with Excel, it is often helpful to know how many days there are between two dates. Excel makes this easy—you just subtract the earlier date from the latter.

In a business environment, however, you may not want to know just the number of days—you probably want to know the number of business days between two dates. In other words, how many workdays are there between two dates?

Believe it or not, Excel makes it almost as easy to calculate business days as it is to calculate regular days. All you need to do is use the NETWORKDAYS worksheet function. Let's suppose for a moment that you had two dates: one in A3 and the other in A4. The date in A3 is your starting date and the date in A4 is the ending date. To calculate the work days between the two dates, you could use the following formula:

```=NETWORKDAYS(A3,A4)
```

This returns a count of all the days between the two dates, not counting weekends. You should note that the function returns the number of full days. Thus, if your starting date was Sept. 4 and your ending date was Sept. 5, the function would return a value of 2. (Provided neither day was a weekend day.)

If you want to account for holidays, the easiest way is to enter your standard holidays in a range of cells, and then define a name for that range. (I always like the terribly obvious name of “Holidays.”) You can then alter the NETWORKDAYS formula in this manner:

```=NETWORKDAYS(A3,A4,Holidays)
```

Microsoft also introduced an expanded version of the NETWORKDAYS function in Excel 2010, but it has a different function name: NETWORKDAYS.INTL. The biggest difference between NETWORKDAYS.INTL and NETWORKDAYS is that NETWORKDAYS.INTL allows you to specify how the function should handle weekends. This new parameter goes right after the ending date parameter. So, for instance, if you wanted to know the number of work business days between the dates in A3 and A4 and you wanted to take holidays into account, you would use something like the following:

```=NETWORKDAYS.INTL(A3,A4,1,Holidays)
```

Note the addition of the "1" parameter in the third parameter position. The value you use here can be any of 14 values:

Number Weekend Days 1 Saturday, Sunday 2 Sunday, Monday 3 Monday, Tuesday 4 Tuesday, Wednesday 5 Wednesday, Thursday 6 Thursday, Friday 7 Friday, Saturday 11 Sunday 12 Monday 13 Tuesday 14 Wednesday 15 Thursday 16 Friday 17 Saturday

If that isn't flexible enough for you, NETWORKDAYS.INTL allows you to use a string for the third parameter that exactly specifies which days should be considered workdays and weekend days. So, for instance, let's say that your company uses a four-day workweek, Monday through Thursday. In this case, you could use a formula such as the following:

```=NETWORKDAYS.INTL(A3,A4,"0000111",Holidays)
```

Note that the string in the third parameter position is exactly 7 digits long and represents the days of the week, Monday through Sunday. A 0 indicates that day is a workday and a 1 indicates it is a "weekend" day that should not be used in calculations.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (12401) applies to Microsoft Excel 2007, 2010, 2013, and 2016. You can find a version of this tip for the older menu interface of Excel here: Calculating Business Days.

##### Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

##### MORE FROM ALLEN

Updating to Smart Quotes

As you type a document, Word automatically converts your quote marks and apostrophes to "curly" versions that look more ...

Discover More

Adding a File Path and Filename

If you need to stuff the current workbook's filename and path into a cell or a header or footer, you'll appreciate the ...

Discover More

Changing Focus when Starting to Print

Sometimes small changes between versions of Word can affect how we do our work. (And, thereby, bug the heck out of us.) ...

Discover More

Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!

##### More ExcelTips (ribbon)

Changing How Excel Determines which Year to Use

When you enter a date into a cell and you omit the year, Excel helpfully adds the current year to the date. If you want ...

Discover More

Unique Date Displays

Need to print an elapsed date in a strange format? It's easier to do than may appear at first glance. Here's a discussion ...

Discover More

Finding the Previous Work Day

Simple math will tell you what the previous day is (just subtract 1 from today's date). What if you want to know the date ...

Discover More
##### Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 8 - 8?

2020-12-08 11:02:13

Jennifer Thomas

That was really useful - I still thought you needed that old Add-in to do this! I love that you included the INTL variation - that almost broke my brain when I was working with a German company (they scheduled with 4 10-hour days), so thank you!

##### This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

##### Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."