Find the intersection of 4 periods

Flyingjoblo

New Member
Joined
Mar 25, 2023
Messages
5
Office Version
  1. 2003 or older
Platform
  1. MacOS
Hi everyone,
I am looking for a way to find the number of days at the intersection of 4 different periods using max/min formulas as stated in an old thread of 2009.
Anyone interested to help?
Exemple:
How many days included in all of the following periods:
1/3/2023-5/4/2025
6/6/2022-8/10/2030
9/1/2025-15/1/2025
10/2/2028-20/2/2028
 
Book1
ABC
11/03/20235/04/2025period 1
26/06/20228/10/2030period 2
39/01/202515/01/2025period 3
411/01/202517/02/2025period 4
5
61/04/20242/10/2027reference period
7
85How about this instead?
9
Sheet1
Cell Formulas
RangeFormula
A8A8=MAX(MINIFS(B1:B4,B1:B4,"<="&B6)-MAXIFS(A1:A4,A1:A4,">="&A6)+1,0)
 
Upvote 0

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,214,965
Messages
6,122,496
Members
449,089
Latest member
Raviguru

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