Workdays that fall in a time period of 1 year between date criteria

dlatha01

Board Regular
Joined
Apr 7, 2009
Messages
65
I’m trying to work out a formula to determine how many workdays (networkdays) fall within the 1Y date range in C1-D1, that fall in between the non trade periods.

So, for example, in Non trade period, in A2-B2, it would be 262 workdays as Non trade period covers the time period in C1-D1, for A3-B3, it would be 0, for A4-B4, 198, and A5-B5 would be 205.

Hope that makes sense, thanks for your help.


Time Period (1Y)
in C1 - 30/05/2013
in D1 – 31/05/2014

Non Trade Period
In A2 - 19/04/2011
In B2 - 24/11/2014

In A3 – 10/05/2013
In B3 – 29/05/2013

In A4 – 28/08/2013
In B4 – 17/06/2014

In A5 – 21/11/2013
In B5 – 12/03/2014
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
I think you would only get 205 for the last example if A5 is 21/11/2012 ....but if you use this formula in C2 copied down you should get the required results for the others

=MAX(0,NETWORKDAYS(MAX(C$1,A2),MIN(D$1,B2)))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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