ExcelTip.com
ExcelTip.com
Account Icon Account Icon Account Icon
Google Exceltip.com
JOIN OUR NEWSLETTER
  and receive for joining:
Free eBook Learn More!
Free Excel ADD-IN
Free Weekly Excel Tip
4 e-books in cd-rom
F1 Formulas & Functions
F1 Formulas & Functions
F1 EXCEL
F1 eBook (Spanish)
F1 EXCEL
Financial Statements.xls
 

» Calculating the Number of Business Days in a Specified Period
Problem:

Calculating the number of business days between the dates entered in cells A2 & B2.
Solution:

Use the NETWORKDAYS function as shown in the following formula:
=NETWORKDAYS(A2,B2)


Rate this tip
12 34 5
  RATING: 3.25
  VIEWS: 27153

READER COMMENTS (view all comments)


Calculating networkdays (6 day work week)
jvanzomeren wrote on November 03, 2005 15:31 EST
Anyone have a tip to calculate network days mon through sat. I have the mail date and received date.

goober wrote on November 03, 2005 15:56 EST
=NETWORKDAYS(C12,F12)-(INT((((F12+6)-(C12+6))-MOD(7-(C12+6),7))/7)+1)

Where C12 is start date and F12 is ending date. By changing the +6 in the equation to 1 through 7 you can alter the day off it calculates. Alternately
changing ...F12)-(INT... to ...F12)+(INT... creates a three day weekend.

Good Luck.

Rao Faizan Ali wrote on December 31, 1969 19:00 EST
Very Good. The above formula i am looking in these days.

Thanks
Not working
hemali wrote on December 15, 2005 08:22 EST
This formula is not working for me.
I entered the date in MM/DD/YYYY format.
Do we have to enter the date in some specific format:confused:
let me know by giving some example that worked for you.

Thanks
hemali
Not working
hemali wrote on December 31, 1969 19:00 EST
This formula doesnt work for me..
Do we need to enter date in some specific format..
I am entering it in MM/DD/YYYY format
JVan
jlvandee wrote on December 31, 1969 19:00 EST
Hey, I hate to sound to simple but why not just add 1 to the result of networkdays.
Not working
hemali wrote on December 31, 1969 19:00 EST
This formula doesnt work for me..
Do we need to enter date in some specific format..
I am entering it in MM/DD/YYYY format

RATORRES wrote on December 31, 1969 19:00 EST
if it doesn't work you have to install and load the analysis toolpack add-in
How?

On the Tools menu, click Add-Ins.
In the Add-Ins available list, select the Analysis ToolPak box, and then click OK.
If necessary, follow the instructions in the setup program.

wrote on December 31, 1969 19:00 EST
I have a spreadsheet that I need to calculate when a task is due and use Business Dates.

Here's an example . . . report must be updated within 3 business days of it being received. .

Report due: 12/15/05
Actual Turned in: 12/16/05
3 days to update would be: 12/21/05

How do I set this up in a formula so it excludes Sat/Sun from being added as part of the 3 working days?

Thanks for your help!
Adding Business Days
ReneeST wrote on December 16, 2005 13:48 EST
[B]A[/B]...................................[B]B[/B].................[B]C[/B]..........................[B]D[/B].......................................[B]E[/B]
Task Name...............Duration.........Start Date.........Planned Finish Date............Actual Finish Date
Develop draft SOP.....3 days...........12/12/05..............12/15/05..........................12/19/05
1st draft update.........3 days...........12/20/05.............12/23/05


I have a spreadsheet that I need to calculate dates for when things are next due in a process of setting up a new client.

The date in C2 would be manually entered in, "Start Date"
Formula needed for D2 - to add 3 business days to give the "Planned Finish Date".
The date in E2 would be manually entered in, "Actual Finish Date"

Formula needed for C3, adding next business day to "start the 1st Draft Update"
Formula needed for D3 - to add 3 business days to give the "Planned Finish Date" for the 1st draft.

Anyone able to help with this?

Thanks so much!

Renee


3 business days to 12/16/05 for when

Report due: 12/15/05
Turned in: 12/16/05
3 days to update would be: 12/18/05 But since that is a Sunday, 3 business days would be 12/21.

How do I get Excel to exclude Sat/Sun from being counted as one of the 3 business days?


Thanks for your help!
Getting #NAME? error
srinivasan wrote on December 31, 1969 19:00 EST
I am using MS-Excel 2000. This function is not available in the functions list...is it an add-in?.

Pl. revert..

Thanks in advance!
Reply: hemali
Alan wrote on December 20, 2005 23:37 EST
Hi hemali,

[QUOTE=hemali]This formula is not working for me.
I entered the date in MM/DD/YYYY format.
Do we have to enter the date in some specific format:confused:
let me know by giving some example that worked for you.

Thanks
hemali[/QUOTE]Anyvalid date should work in the NETWORKDAYS function. Note that the valid date format might be affeted by your provincial settings - such as wanting to use MM/DD/YYYY rather than DD/MM/YYYY (for example).

However, if you enter dates such as 1/1/2004 and 2/2/2005 they would both be valid and equal under either format so you should get a result from the formula.

HTH,

Alan.
Reply: ReneeST
Alan wrote on December 20, 2005 23:55 EST
Hi ReneeST,

[QUOTE=ReneeST][B]A[/B]...................................[B]B[/B].................[B]C[/B]..........................[B]D[/B].......................................[B]E[/B]
Task Name...............Duration.........Start Date.........Planned Finish Date............Actual Finish Date
Develop draft SOP.....3 days...........12/12/05..............12/15/05..........................12/19/05
1st draft update.........3 days...........12/20/05.............12/23/05


I have a spreadsheet that I need to calculate dates for when things are next due in a process of setting up a new client.

The date in C2 would be manually entered in, "Start Date"
Formula needed for D2 - to add 3 business days to give the "Planned Finish Date".
The date in E2 would be manually entered in, "Actual Finish Date"

Formula needed for C3, adding next business day to "start the 1st Draft Update"
Formula needed for D3 - to add 3 business days to give the "Planned Finish Date" for the 1st draft.

Anyone able to help with this?

Thanks so much!

Renee


3 business days to 12/16/05 for when

Report due: 12/15/05
Turned in: 12/16/05
3 days to update would be: 12/18/05 But since that is a Sunday, 3 business days would be 12/21.

How do I get Excel to exclude Sat/Sun from being counted as one of the 3 business days?


Thanks for your help![/QUOTE]You could use the WORKDAY function that is included as a UDF in the analysis toolpak add-in to do that:

=WORKDAY(start_date,days,holidays)

However, be aware that if you use a function outside of the core excel functions, then anyone trying to use your workbook that doesn't have the add-in too will get error messages.

This is an alternative to the WORKDAY function using only core excel functions (same format of arguments as above):

=start_date+IF(days=0,0,SIGN(days)*SMALL(IF((WEEKDAY(start_date+SIGN(days)*(ROW(INDIRECT("1:"&ABS(days)*10))),2)<6)*ISNA(MATCH(start_date+SIGN(days)*(ROW(INDIRECT("1:"&ABS(days)*10))),holidays,0)),ROW(INDIRECT("1:"&ABS(days)*10))),ABS(days)))

Obviously that is a lot more complicated, but it will always work (I think!)

Alan.
modified
baghersad wrote on December 31, 1969 19:00 EST
I have a database on excel. it has 4 worksheets.
I enter data in the worksheets every day. I entered information in the database of 13th until 17th sep 2004
The information is wrong.
how could I seprate to delete the information onto this database. please?
Email: baghersad@yahoo.com
thanks
Baghrsad
Days Formula
mabvuto wrote on December 31, 1969 19:00 EST
Who can help me with a formula that should be doing the following:
It should be deplaying dates of weekly days in Monday, Wednesday and Friday excluding sundays. Or Tuesday, Thursday Saturday excluding Sunday. e.g

Mondays, Wednesdays and Fridays of June
June 1, 2006
June 3, 2006
June 6, 2006

Tuesdays, Thursdays and Saturdays of June
June 2, 2006
June 5, 2006
June 7, 2006

This should be happening after entering any date on the first cell of the List and should accommodate up to 3 months

Help!!
Regards

Mabvuto



REGISTERED USERS - Click here to post comments


GUESTS (Click here to register)
Name
Comment Title
Comments

The Total Money Makeover. : A Proven Plan for Financial Fitness

Advanced modelling in finance using Excel and VBA

The Laws of Money, The Lessons of Life: Keep What You Have and Create What You Deserve

Microsoft Excel 2002 Visual Basic for Applications Step by Step

Retire Young, Retire Rich

Dictionary of Finance and Investment Terms

RELATED MICROSOFT EXCEL TIPS


Convert PDF Files to Excel






Excel VBA books
Accounting books
Business Plans
MS Office books
Taxes books

VIEW ALL BOOKS


  Advertise With Us                               

Tips

Add-In in VBA | Applications - Word, Outlook in VBA | Array Formulas | Cells, Ranges, Rows, and Columns in VBA | Counting | Custom Functions | Custom Functions in VBA | Database Formulas | Database in VBA | Date & Time Formulas | Date & Time in VBA | Events in VBA | Excel 2003 | Excel Chart | Excel Consolidating | Excel Counting | Excel Custom Functions using VBA | Excel Customizing | Excel Data | Excel Dates | Excel Editing | Excel Files | Excel Filter | Excel Format | Excel Formula | Excel General | Excel Grouping and Outlining | Excel Importing Text Files | Excel Information | Excel Keyboard Shortcuts | Excel Loan Formulas | Excel Macros - VBA | Excel Pivot Tables | Excel Printing | Excel Range Name | Excel Security - Protection | Excel Sorting | Excel Style | Excel Subtotals | Excel Summing | Excel Text | Excel Time | Excel Tools | Excel Worksheet, Workbook | Files, Workbook, and Worksheets in VBA | Financial Formulas | Formating in VBA | General Topics in VBA | Import and Export in VBA | Information Formulas | Keyboard & Other Shortcuts in VBA | Keyboard Formula Shortcuts | Links between Worksheet and Workbooks | Links in VBA | Logical Formulas | Lookup Formulas | Mail - Send and Receive in VBA | Menus, Toolbars, Status bar in VBA | Modules, Class Modules in VBA | Other Q&A Formulas | Printing in VBA | Protecting in VBA | Summing | Text Formulas | User Forms, Input boxes in VBA | Using Loops | Working with Formulas |

Tips by Version

Microsoft Excel 97 | Microsoft Excel 2000 | Microsoft Excel 2002 | All Microsoft Excel Versions | New in Excel 2002 | New in Excel 2003 - Office 11

Website

Home | Tip of Hour | Recommended Tips | Most Viewed Tips | Tips by Version | Submit a Tip | My Tips
Microsoft Excel Tutorials | Excel Links | Write for Us | About Us | Search Results | Tip Archives | Excel Forum | Excel Forum Archives

Excel Book

Excel 97 Book | Excel 2000 Book | Excel 2002 Book | Excel XP Book | Book Store

Terms and Conditions of use
The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.

Copyright © 2003 ExcelTip.com
Microsoft, Microsoft Excel is a U.S. registered trademark of Microsoft Corporation
Site Developed By: Varien