Starting time and finishing time for overlapping time periods

VickyBez

New Member
Joined
Jul 2, 2022
Messages
8
Office Version
  1. 365
Platform
  1. Windows
Hi
I hope someone can assist.... I need to get the start and finish time of overlapping times.
For egsample my first columns time periods are:
8:00 - 10:00
12:00 - 14:00
16:00 - 18:00

The second column is 9:00 - 13:00.

I need to get the start and finish times where the first column's times fall within the second column ie. Answer would be:
9:00 - 10:00
12:00 - 13:00

Please help!!
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Welcome to the MrExcel board!

Is this the sort of thing you are after?

22 07 03.xlsm
ABC
1
28:00 - 10:009:00 - 13:009:00 - 10:00
312:00 - 14:009:00 - 13:0012:00 - 13:00
416:00 - 18:009:00 - 13:00 
516:00 - 18:0016:30 - 17:2016:30 - 17:20
Overlap
Cell Formulas
RangeFormula
C2:C5C2=LET(a,MAX(LEFT(A2,5),LEFT(B2,5)),b,MIN(RIGHT(A2,5),RIGHT(B2,5)),IF(a<b,TEXT(a,"h:mm - ")&TEXT(b,"h:mm"),""))
 
Upvote 0
Welcome to the MrExcel board!

Is this the sort of thing you are after?

22 07 03.xlsm
ABC
1
28:00 - 10:009:00 - 13:009:00 - 10:00
312:00 - 14:009:00 - 13:0012:00 - 13:00
416:00 - 18:009:00 - 13:00 
516:00 - 18:0016:30 - 17:2016:30 - 17:20
Overlap
Cell Formulas
RangeFormula
C2:C5C2=LET(a,MAX(LEFT(A2,5),LEFT(B2,5)),b,MIN(RIGHT(A2,5),RIGHT(B2,5)),IF(a<b,TEXT(a,"h:mm - ")&TEXT(b,"h:mm"),""))
 
Upvote 0
Thank you so much! Can I please ask that you upload the sheet you attached... I am struggling to duplicate it on my side. I would really appreciate it if I could access your sheet and see where I am going wrong.
 
Upvote 0
  1. Start with a blank worksheet
  2. Click this icon at the top left of my mini-sheet above.
    1656831039803.png
  3. Select cell A1 on your blank worksheet
  4. Paste
 
Upvote 0

Forum statistics

Threads
1,215,654
Messages
6,126,048
Members
449,282
Latest member
Glatortue

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