Hi,
Does anyone know a formula I could use to tell me the number of working days in a specified month between start and end dates? I have the start and end dates in separate columns and the month in a separate cell.
Thanks!
Hi,
Does anyone know a formula I could use to tell me the number of working days in a specified month between start and end dates? I have the start and end dates in separate columns and the month in a separate cell.
Thanks!
Look at the Networkdays function...
=Networkdays(startdate, enddate, holidays)
Holidays is an optional range for you to enter holiday dates to be excluded from the count.
Are your normal workdays Monday thru Friday? Will you need to exclude any holiday dates?
Biff
Microsoft MVP Excel
Keep It Simple Stupid
Let's Go Pens. We Want The Cup.
Hi,
The workdays are Monday - Friday and holidays shouldn't be excluded. The tricky part is that I need to specify the month between the start and end date for which the working days should be calculated.
For example, if the start date is April 1, 2013 and the end date is May 17, 2013, I want to calculate only the working days in May 2013.
Why can't you just define the period as May 1 2013 thru May 17 2013?
So then it's the month of the EndDate that matters?
Try
=NETWORKDAYS(MAX(StartDate,EndDate-DAY(EndDate)+1),EndDate)
If you have start date in A2 and end date in B2 then list the 1st of each month in C1 across and then use this formula in C2 copied across for the number of workdays in each month
=MAX(0,NETWORKDAYS(MAX($A2,C$1),MIN($B2,EOMONTH(C$1,0))))
You can format Row 1 as mmm-yyyy or similar
Audere est facere
Thanks Daddylonglegs! It works!
Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.
In future, to mark your thread as Solved, you can do the following -
Select Thread Tools-> Mark thread as Solved.
Incase your issue is not solved, you can undo it as follows -
Select Thread Tools-> Mark thread as Unsolved.
Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
If I have helped, Don't forget to add to my reputation (click on the star below the post)
Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
Use code tags when posting your VBA code: [code] Your code here [/code]
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks