How to find number of overlapping days from a set of date ranges?

chiron

New Member
Joined
Dec 17, 2012
Messages
28
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I want to find out the number of overlapping dates from a range of dates. I saw a solution posted here; Check if two ranges of dates overlap [Excel Formulas] | Chandoo.org - Learn Microsoft Excel Online but that just shows whether the date ranges overlap and not the duration. I can't seem to figure out a simple formula that returns the number of overlapping days in case of overlap. Preferably without vba because in some computers in my office they don't allow running macros.

Sample of the data is posted below;


S.No
StartEndDurationOverlap
129.11.201315.12.201316
216.12.201320.12.20134
328.12.201314.01.201417
417.01.201427.01.201410
528.01.201408.02.201411
609.02.201420.02.201411
706.03.201420.03.201414
825.03.201426.03.20141
927.03.201404.05.201438
1006.05.201414.05.20148
1106.05.201415.05.20149
1210.05.201424.05.201414
1318.05.201423.05.20145
1420.05.201424.05.20144
1525.05.201430.05.20145
1617.06.201420.06.20143
1724.06.201427.06.20143
1824.06.201402.07.20148
1924.06.201420.07.201426
2030.07.201405.08.20146

<tbody>
</tbody>
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
I tried searching this forum also and while there are solutions to identifying whether overlap exists I can't find any that finds out the overlapping duration as well.
 
Upvote 0

Forum statistics

Threads
1,216,102
Messages
6,128,846
Members
449,471
Latest member
lachbee

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