Workday Formula

kumar1803

Board Regular
Joined
Jan 7, 2015
Messages
110
Hello,

I need help with workday formula to calculate the number of days excluding weekend and holidays. Here is the data for dates:

Start Date End Date
12/14/2015 12/14/2015
12/15/2015 12/15/2015
12/12/2015 12/12/2015
12/10/2015 12/11/2015
12/8/2015 12/25/2015
12/10/2015 1/15/2016
12/25/2015 1/25/2016



Holiday
2016 1/1/2016
1/18/2016
5/30/2016
7/4/2016
9/5/2016
11/24/2016
11/25/2016
12/25/2016
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
try this...

HqFyuM8.png
 
Upvote 0
Hello,

The formula appears to be incorrect. I would like the same day if there is no increment for example: 12-14-15, 12-14-15. your formula counting as 1 in this case.

Also I don't the formula you have provided subtracting weekend or holidays. I am assuming Saturday and Sunday are off days
 
Upvote 0
the function network days does not count weekend or the dates listed in the holiday array. That is why you see 0 for 12/12/15 to 12/12/15 ... because this was a Saturday. If you have 12/14/15 to 12/14/15 showing as 0 then you won't be able to distinguish it from a range that is only on the weekend. But if you want to do that then just check if they equal and put 0 if they equal or just subtract 1 from the networkdays result.

=NETWORKDAYS(A2,B2,$A$11:$A$18)-1

or

=IF(A2=B2,0,NETWORKDAYS(A2,B2,$A$11:$A$18))
 
Upvote 0

Forum statistics

Threads
1,223,101
Messages
6,170,116
Members
452,302
Latest member
TaMere

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top