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

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825
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:
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,148
Messages
5,835,680
Members
430,374
Latest member
PeteBrown

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
Top