# Formula needed to calculate working days in specified month between two dates

1. ## Formula needed to calculate working days in specified month between two dates

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!

2. ## Re: Formula needed to calculate working days in specified month between two dates

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.

3. ## Re: Formula needed to calculate working days in specified month between two dates

Are your normal workdays Monday thru Friday? Will you need to exclude any holiday dates?

4. ## Re: Formula needed to calculate working days in specified month between two dates

Originally Posted by Tony Valko
Are your normal workdays Monday thru Friday? Will you need to exclude any holiday dates?
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.

5. ## Re: Formula needed to calculate working days in specified month between two dates

So then it's the month of the EndDate that matters?

Try

=NETWORKDAYS(MAX(StartDate,EndDate-DAY(EndDate)+1),EndDate)

6. ## Re: Formula needed to calculate working days in specified month between two dates

Why can't you just define the period as May 1 2013 thru May 17 2013?

7. ## Re: Formula needed to calculate working days in specified month between two dates

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

9. ## Re: Formula needed to calculate working days in specified month between two dates

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 -

Incase your issue is not solved, you can undo it as follows -

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.

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1