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

Calculating Business Days

by Allen Wyatt
(last updated February 9, 2016)

60

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. This function is not intrinsic to Excel; it is part of the Analysis ToolPak. (How you enable the Analysis ToolPak is discussed in other ExcelTips.)

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)

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (2155) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) 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

Printing Columns and Rows

If you want to print just the contents of a number of rows and columns, it can be challenging to get the output you want. ...

Discover More

Hiding Graphics when Filtering

Excel allows you to set up graphics so that they are associated with cells and even stay with the cells when the cells are ...

Discover More

Editing a Comment Close to Its Cell

Have you ever chosen to edit a comment, only to find that the comment is quite a ways from the cell with which it is ...

Discover More

Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!

More ExcelTips (menu)

Using the EOMONTH Function

If you need to determine the date of the last day in a month, it's hard to beat the flexibility of the EOMONTH function. This ...

Discover More

Using Excel for Timing

Excel allows you to store times in a worksheet. If you want to use Excel to time certain events, there are a couple of ways ...

Discover More

Parsing Non-Standard Date Formats

When you load data into Excel that was created in other programs, the formatting used for some types of data (such as dates) ...

Discover More
Subscribe

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

View most recent newsletter.

Comments

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 7 + 6?

2017-09-09 16:31:20

Judi Pfancuff

ALLEN!!!!! YOU ROCK!!!!! This information is exactly what we needed today. Thanks a MILLION!!!!!


2017-04-08 12:50:51

Michael (Micky) Avidan

@Sharon,
Try my suggestion shown in the following picture.
(see Figure 1 below)
--------------------------
Michael (Micky) Avidan
“Microsoft® Answers" - Wiki author & Forums Moderator
“Microsoft®” MVP – Excel (2009-2017)
ISRAEL

Figure 1. 


2017-04-08 06:41:18

Keith

I use this function daily in Mfg for spans and queuing, great formula.


2017-04-07 16:02:11

Sharon

Hello...I need help!

I am trying to combine formulas to contain the following:
>Count networkdays between two dates
>Exclude holidays
>Leave the results blank if the one of the dates are not inputted

Anybody's input will be greatly appreciated.


2017-03-25 17:58:05

Robert C Cline

Allen: Question: Calculating Due Date:

The formula workday, =WORKDAY(G2,H2,A2:A51) solves the question below. I found I could not use a named range to identify the specific bank holidays, it must be in the form A2:A50 Am I missing something?

Thank you.

Robert

I found the bank holidays at http://banking-holidays.com/ The formula works great. But how do you derive the date between x number of banking days. For example, I have a bank draft that is due upon arrival within 30 days. How do I create a function that will calculate the date that item is due for payment? Is there a formula that will work for MS Access as well as MS Excel?


2017-03-25 17:55:28

Robert C Cline

Allen: Question: Calculating Due Date:

I found the bank holidays at http://banking-holidays.com/ The formula works great. But how do you derive the date between x number of banking days. For example, I have a bank draft that is due upon arrival within 30 days. How do I create a function that will calculate the date that item is due for payment? Is there a formula that will work for MS Access as well as MS Excel?

Thank you.


2017-03-25 14:11:17

Robert C Cline

Allen: Question: Calculating Due Date:

I found the bank holidays at http://banking-holidays.com/ The formula works great. But how do you derive the date between x number of banking days. For example, I have a bank draft that is due upon arrival within 30 days. How do I create a function that will calculate the date that item is due for payment? Is there a formula that will work for MS Access as well as MS Excel?

Thank you.


2016-12-13 05:52:56

Charlotte

I am trying to identify how many working days there are between two dates but I need it to account for half days as well.

i.e. if someone went off sick for half a day on a Monday and returned to work on the Wednesday it should show 1.5 days.

Can you help?


2016-06-06 07:23:10

Kristof

Hi I am working on a storage calculation. I have product being stored on day A, then I have 14 days free of charge and as from day 15 I can charge customer. Now I would like to have an overview of the payable days per month. Meaning if on Jan 25 I would store goods, there will be no invoice in Jan for these goods, but in Feb this would mean on the 29 I would be able to charge (31-25 =6 => 14-6 = 8) as of 8 feb till end of month, in this case 29th for this month.

Thx in advance.


2016-05-18 09:50:50

Lalti

need your help if possible.
I create an excel worksheet for storing good , under date in i keep it free
in the cell of date out I put the following formula to stay days current =TODAY() to calculate the duration I used =DATEDIF(E5,F5,"D")
after release the goods from the store I need to use a formula to stop counting the date can you please help on this
thanks in advance for your help


2016-03-03 00:57:34

Ali Anwar

how to find the days count in between two date , eg from 27-Jan-2016 to 03-Mar-2016, how many days. Please advise the formula to use in excel file.
Thanks
Best regards
Ali Anwar


2016-01-07 08:55:18

Mohammad

Dear Friend,

i need help to find this solution.
starting day plus 30 days excluding 2 days per week.
total how many days.
please help me out.
Thanks


2015-12-18 05:40:41

Michael (Micky) Avidan

@McKinley Darden,
If I understood you correctly - try my suggestion in the linked picture.
You may alter the number of days (presented in red font).
If I managed to help - I wish you all the best in your new job.
http://screenpresso.com/=t2IQc
--------------------------
Michael (Micky) Avidan
“Microsoft® Answers" - Wiki author & Forums Moderator
“Microsoft®” MVP – Excel (2009-2016)
ISRAEL


2015-12-17 13:13:28

McKinley Darden

Hello,
I appreciate your insight. Very helpful.
I am working for a home loan institution and I have been tasked to create a spreadsheet that will allow us to calculate the estimated closing date of a loan according to business days.
We have the start date(date of application), but here's where it can get tricky. Each portion of the loan process can last a different number of days. For instance gathering the initial documents takes 4-7 days depending on the customer. Then the paperwork is submitted which is time variable as well. There are about 15 stages to the loan process which we are trying to represent in the sheet.
Ideally we would like to be able to enter a start date, enter an ideal close date, then enter each of the loan stage names and a number of days each ideally takes, and equal a closing date.
If one stage gets delayed, we would like to be able to change the # of days and have it automatically change the closing date.

If I can get this right it will create a job for me at this institution. Please help!
McKinley Darden


2015-12-09 02:27:47

Sunitha

Hello,

I need a help..

I have time logged between two dates, for eg
1 Nov 2015 4 PM to 2 Nov 2015 4 AM, now the time recorded for this is say 5hrs and 2 hours respectively. this gets recorded in two dates mentioned, however i want it in 1 itself, as my working day 4 PM to 4 AM..

How to do this in excel..

Urgent pls


2015-12-04 11:59:18

Don Schnell

I came across an issue counting Working Days or Business Days which appears to be related to & only effecting the month of Dec after claendar year 2015 (counts for Working Days in Dec 2014 are correct).
There should be 23 Working Days in Dec 2015, but all of a sudden my formula calcs as 24 (was correct in prior months & years). Here is my formula:
=NETWORKDAYS(EOMONTH(todaysDate,-1),EOMONTH(todaysDate,0))

Am i doing something wrong or is this a new/known issue?
TIA


2015-11-13 13:08:32

Michael (Micky) Avidan

@John Finn,
A much shorter approach:
http://screenpresso.com/=rqVI
--------------------------
Michael (Micky) Avidan
“Microsoft® Answers" - Wiki author & Forums Moderator
“Microsoft®” MVP – Excel (2009-2016)
ISRAEL


2015-11-13 12:58:50

Michael (Micky) Avidan

@John Finn,
Try my suggested approach in the linked picture:
http://screenpresso.com/=8pICg
--------------------------
Michael (Micky) Avidan
“Microsoft® Answers" - Wiki author & Forums Moderator
“Microsoft®” MVP – Excel (2009-2016)
ISRAEL


2015-11-12 05:03:09

John Finn

Can you tell me how to create a formulae that takes a given date adds 28 days inc weekends and holidays and then returns a date that is the next Monday's date past the 28 day period please

I.e. Wednesday 4 November is the start date

28 days later would be 2 December, however I need a deadline date to display the following monday.(7 December).Unless the 28th day fell on a Monday...welcome to my dilemma!


2015-10-29 07:09:54

Michael (Micky) Avidan

@Atiqullah Raheel,
Try: =NETWORKDAYS.INTL(Start_Date, End_Date,7)
--------------------------
Michael (Micky) Avidan
“Microsoft® Answers" - Wiki author & Forums Moderator
“Microsoft®” MVP – Excel (2009-2016)
ISRAEL


2015-10-29 02:34:06

Atiqullah Raheel

Thanks for the article. How to define weekend days in this formula. In our case Friday and Saturday is weekend days, not Saturday and Sunday.

Tanks,
Atiq


2015-10-24 05:25:14

Michael (Micky) Avidan

@Melany,
Try the suggested formulas from the linked picture:

http://screenpresso.com/=3NYIc

--------------------------
Michael (Micky) Avidan
“Microsoft® Answers" - Wiki author & Forums Moderator
“Microsoft®” MVP – Excel (2009-2016)
ISRAEL


2015-10-23 05:11:03

melany

Hi!
Thank you for the article! In a range of dates I need to know how many days there are in one month and how many days in the following month!
Example:
30/05/2015-13/06/2015 : 2 days in May and 12 days in June.
Is it possible? Thank you ;)


2015-09-17 10:25:53

Ely

Im trying to identify dates. I need a formula thatI can plug a start date and it calculates 55 working dates (no weekends or holidays) and it gives me that future date.

Thanks


2015-09-15 12:17:36

Sean Doherty

I work in a complaints department and I am trying to calculate the average number of working days to close a complaint. I have so far calculated the average number of working days for each complaint closed in the month of July but now need to calculate the overall average of this (for the whole month).. Please help?


2015-09-13 08:12:27

Michael (Micky) Avidan

@Louis,
From Excel version 2010 and on - all you need is a simple formula like hereunder.

=NETWORKDAYS.INTL(Start_date,End_date,16)

It will calculate the amount of days (EXCLUDE Fridays) between to dates.
----------------------------------------
Michael (Micky) Avidan
“Microsoft® Answers" - Wiki author & Forums Moderator
“Microsoft®” MVP – Excel (2009-2016)
ISRAEL


2015-09-13 04:21:15

Louis

I would like to calculate remaining days between to dates and then remove friday. Formula please?


2015-09-05 09:43:26

ravi

hi

i need to Occupancy%

for example no of cabs 66

no of employees 338,

what is the Occupancy%

pls help me


2015-08-25 04:19:18

hiran

its like this

=networkdays(A1,B1,RANE X:Y)

A1 =start date
B1 =finish date
RANGE X:Y = range of selected cell with holidays added in it


hope this will be useful to a few :)


2015-08-18 09:30:50

Paula

I am trying to create a duty roster for weekends and holidays, what formula should I use?


2015-08-09 23:41:00

Moin Morshed

In MS Excel 2007:

How can I calculate total days required to do a job considering the below conditions:
> if the start date of the job is 01-Jan-15 (suppose)
> End Date: 30-jun-15 (suppose)
> only one day (Friday) as a weekly holiday
> other govt. holiday (as per govt. circular mentioning somewhere in the sheet manually)?

Please help.


2015-04-21 15:49:25

Marc

OK I need some help here. I have been trying to figure this one out and cant seem to get it. I need to calculate the time is takes for one of my agents to close a ticket that has been assigned to them. This needs to exclude holidays and weekends. My dates and times look like this:

Column O (opened) Column P (Closed)
2/27/2015 4:34:00 AM 3/10/2015 5:45:00 PM

(The time and date are in the same cell)

Here are the formulas that I have tried but none of them seem to be getting it right.

=(NETWORKDAYS(O2,P2)-1)*5/12+MOD(P2,1)-MOD(O2,1)
=NETWORKDAYS(O2,P2,Holidays!$A$2:$A$14)
=NETWORKDAYS(O2,P2)-1

Can anyone help??


2015-03-17 03:13:55

Princes

Hi. Please help me with this:

Company A service hour:
Mondays-Saturdays, 7am-5pm
Company B service hour:
Mondays-Friday, 8am-5pm

SLA of Ticket per Priority:
Priority 1 - 4hours
Priority 2 - 8 hours
Priority 3 - 36 hours
Priority 4 - 72 hours

What will be the general formula when a ticket is logged within and beyond the service period per priority?

Thanks in advance for the help!


2015-03-15 06:55:08

Vividon80

Hi

I need help.

I have a formula in Excel that calculates each day someone is off sick from work and stops counting once you enter a return to work date.

However, I need the formula to discount weekends.

Now I'm aware of the "=NETWORKDAYS.INTL..." function.

The current formula I have enables me to calculate the number of days someone is off sick and effectively stops the clock once you enter a return to work date.

So what formula/function calculates the number of days someone is off sick, stops the clock once you enter a return to work date but also excludes weekends?


Kind Regards
Vividon80


2015-03-14 13:41:24

DanSquad

Hi. Excel master. I have a problem here.,

I want to know the 2 dates i Inputed.

This is the situation

I have 2 dates, the received date and the dispatch date.

I can subtract the two dates but what i want to know is " If no input dates or blank on the cell = the present date.

I hope someone can help me.

Thanks


2015-03-06 12:29:40

EG

I found it - i had to add the -1 to the end of the function.


2015-03-06 11:34:17

EG

I need to calculate the difference between business days.

Cell A1 = 3/3/15
Cell B1 = 3/3/15
Cell C1 = NETWORKDAYS(A1,B1)

Cell C1 then populates with "1". When in reality it should be "0".

What is the function I can use to calculate the difference between business days?


2015-02-25 20:12:43

flava

Dear All,

I hope if someone here can help me with a formula where I want to get how many days it is due. I want to subtract due dates with the current day and keeps on updating or incrementing with 1 on the next day. And, using Excel 2013

Thanks to all who can help me with this in advance :)

Regards,
Flava


2015-02-19 09:03:19

Michael (Micky) Avidan

@jc,
Assuming business days are Mon-Fri and your Excel version is earlier than 2010 and the 1st. Feb is in cells A1 and the 18th. Feb. in Cell B1, - try:
=NETWORKDAYS(A1,B1)
*** For this Function to work in old versions of Excel - you need to enable the "Analysis ToolPak" Add-In.
Michael (Micky) Avidan
“Microsoft® Answers" - Wiki author & Forums Moderator
“Microsoft®” MVP – Excel (2009-2015)
ISRAEL


2015-02-18 14:02:20

jc

How do I get excel to give me the actual number of business days (for today it should give me 13 as a result, today = 2/18/15) Thank you


2015-01-09 05:21:19

Michael (Micky) Avidan

@Willy,
In 'Excel 2003' (and maybe even in 2000/2002) it works fine for me with all its arguments.
If you can't "standarditied" it - try
to enable the Analysis Toolpak add-ins.
Michael (Micky) Avidan
“Microsoft® Answers" - Wiki author & Forums Moderator
“Microsoft®” MVP – Excel (2009-2015)
ISRAEL


2015-01-08 10:36:56

Willy Vanhaelen

You can solve this with the WORKDAY function but it is only standard starting Excel 2007


2015-01-07 05:24:23

Murtala

Thank you very much (Micky) Avidan,

However, my logic is I want employees to input their Leave start date in one column, then I want Excel to calculate 30 workdays from the start date and output the end date of their leave in the next column automatically.

Please see if you can help me out. I have been trying and experimenting with the DATE functions but cqant get the solution :(


2015-01-07 05:06:45

Michael (Micky) Avidan

@Murtala,
The function: WORKDAY has a special argument called: Holidays
Check it out in Excel's help.
Michael (Micky) Avidan
“Microsoft® Answers" - Wiki author & Forums Moderator
“Microsoft®” MVP – Excel (2009-2015)
ISRAEL


2015-01-07 04:36:45

Murtala

HELLO,

THANK YOU ALL FOR THE GOOD INPUT.

I NEED A SOLUTION WHEREBY, I HAVE 30 WORKDAYS HOLIDAY, AND I HAVE A START DATE.

HOW DO I AUTOMATICALLY MAKE EXCEL CALCULATE 30 WORKDYAS FROM MY START DATE AND DISPLAY THE END DATE IN THE NEXT COLUMN.

YOUR SUPPORT WILL BE HIGHLY APPRECIATED.


2014-11-06 06:55:54

Michael (Micky) Avidan

@Coleen,
Assuming today's date resides in cell A1 - Try:
=WORKDAY(A1, 30)
Michael (Micky) Avidan
“Microsoft® Answers" - Wiki author & Forums Moderator
“Microsoft®” MVP – Excel (2009-2015)
ISRAEL


2014-11-05 16:43:50

Coleen

I want a quick formula that can put in today's date and calculate what date it will be for business days. For example, I have a note that was done on 10/7/14 and I need to find out how to calculate what date it will be in 30 business days. I do not have a two date span. I want to find out what date it "will" be once I do the calculation. Thank you


2014-10-11 12:23:33

Michael (Micky) Avidan

@Erica,
Check Excels Help for both functions:
WORKDAY.INTL and WORKDAY
Michael (Micky) Avidan
“Microsoft® Answers" - Wiki author & Forums Moderator
“Microsoft®” MVP – Excel (2009-2015)
ISRAEL


2014-10-10 12:02:44

Erica

How do I calculate a due date that is 30 business days from the end date? Excluding holidays.


2014-04-23 12:27:04

Michael (Micky) Avidan

@Patti,
Assuming the start date is in cell A1 and the number of days to add in B1 - try:
=WORKDAY(A1,B1)
Michael (Micky) Avidan
“Microsoft® Answers" - Wiki author & Forums Moderator
“Microsoft®” MVP – Excel (2009-2014)
ISRAEL


2014-04-22 10:54:22

Patti

If I have a start date and the duration is 2 days (indicated by a whole number is an adjacent cell), what formula do I use to find the end date which COUNTS the start date as one day, excluding holidays and weekends. This is for creating a schedule, and want to be able to change the "Duration" whole number and have it automatically calculate the new end date. Or have a start date and calculate the start date for the next task based on the days from previous task start date including that start date as Day 1.


2014-04-10 16:19:45

Michael (Micky) Avidan

@CG,
Put: =TODAY() in the starting date cell or: TODAY() directly into the formula.
Michael (Micky) Avidan
“Microsoft® Answers" - Wiki author & Forums Moderator
“Microsoft®” MVP – Excel (2009-2014)
ISRAEL


2014-04-10 16:17:42

Michael (Micky) Avidan

@JKP,
if the "aware" date is in cell A1 and the amount of workdays to be added is in cell A2 -
type the following formula into cell A3: =WORKDAY(A1,A2)
and you should end up with the: March, 14, 2014.
Michael (Micky) Avidan
“Microsoft® Answers" - Wiki author & Forums Moderator
“Microsoft®” MVP – Excel (2009-2014)
ISRAEL


2014-04-09 14:28:59

CG

How can I set up the formula to always look at today's date?


2014-03-13 12:16:41

JKP

I am trying to add 30 business days to an "aware" date (in this case it's Jan 31 2014) to calucale a "due date". can you help me with the calculation?


2014-02-20 08:56:29

Michael (Micky) Avidan

Although this tip is intended for "97-2007" users - all "Modern" users should be aware that starting with "Excel 2010" there is an extended NetWorkdDays Function: NETWORKDAYS.INTL

The following formula calculates the working days' between two given dates, excluding Fri-Sat.

=NETWORKDAYS.INTL(A3,A4,7)

One should check "Excel" Help for, so called, excluded "weekends" options.

Michael Avidan
“Microsoft®” MVP – Excel
ISRAEL


2014-02-19 11:46:47

Doug Roach

I had a challenge because of a business process wrinkle. They wanted monthly SLA averages of ticket times, but only wanted to charge the help desk for time spent between 7:00am and 5:00pm.

The most direct solution I could devise was to use NETWORKDAYS to add the time for the first day, the time of the last day, and 10 x the count of the days in between.

NETWORKDAYS made it easy to eliminate weekends and holidays, but I had to devise error checking in the formula and limit one day responses to not include additional time.


2013-02-07 12:57:51

PhilP

Sara,

Add -1 to the end of the formula thus: =NETWORKDAYS(A3,A4)-1


2013-02-06 15:11:18

Sara Talluto

You said this function counts 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"

Is there a function to use that would not count the start date as a day?

I work at a test lab, and I have to calculate how many days tests were started late. So if the start date was Sept. 4 and the end date was Sept. 5, I need to show that the test started one day late. Any advice will be helpful.


2013-01-02 16:52:31

TJ

If this tip does not work on your spreadsheet, you need to do the following:
Go to: Tools ---> Add Ins, then turn on Anaysis ToolPak.
After the Analysis ToolPak installs, re-type the formula and it should work just fine.


This Site

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

Newest Tips
Subscribe

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

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.