Formula To Calculate Dates That Overlap

MrMaker

Board Regular
Joined
Jun 7, 2018
Messages
56
Office Version
  1. 365
Platform
  1. Windows
Morning all,

Another little piece of help required please, this time regarding dates/times that overlap.

Example Data:

I need to calculate the number of days overlapping within the data for each unique Name.

[TABLE="width: 449"]
<tbody>[TR]
[TD]Name (A)
[/TD]
[TD]Start (B)
[/TD]
[TD]End (C)
[/TD]
[/TR]
[TR]
[TD]Dave
[/TD]
[TD]08/02/2018 09:00
[/TD]
[TD]08/02/2018 11:00
[/TD]
[/TR]
[TR]
[TD]Dave
[/TD]
[TD]08/02/2018 09:00
[/TD]
[TD]08/02/2018 12:00
[/TD]
[/TR]
[TR]
[TD]Tom
[/TD]
[TD]08/02/2018 09:30
[/TD]
[TD]08/02/2018 15:30
[/TD]
[/TR]
</tbody>[/TABLE]

So in the above example the expected outcome for Dave's total overlap would equal 0.0833 (or in other words 2 hours).

Thanks in advance

MM
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
I have this formula for overlapped time but this is just for the same day

Overlapped time (same day)
A1 B1 Start Finish Range 1
D1 E1 Start Finish Range 2
=MAX(0,MIN(B1,E1)-MAX(A1,D1)+1)
 
Upvote 0
Ah thanks SK, sadly my date ranges will be all over the place........the search continues
 
Upvote 0
If there are any other potential solutions or workarounds I’m all ears………….:)

Thanks very much
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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