Find Time Overlaps ?

theta

Well-known Member
Joined
Jun 9, 2009
Messages
960
Hi,

I have a data table as follows :

COLUMN A - Date
COLUMN B - Start
COLUMN C - Finish
COLUMN D - Total time

I need a formula to site in COLUMN L that will highlight (TRUE/FALSE) if there are overlaps in the times, specific to date.

THIS LIST IS SUBJECT TO SORTING AND SO THE FORMULA IN COLUMN F MUST USE OFFSET, or a full array to analyse the data and take into account the date.

e.g.

26/10/2009...09:00....13:00
26/10/2009...13:00....13:45
26/10/2009...13:40....16:00 overlap
26/10/2009...15:45....18:00 overlap
26/10/2009...18:15....19:00
27/10/2009...09:15....10:00
27/10/2009...10:00....13:00
27/10/2009...13:00....15:00
27/10/2009...15:00....16:00

Would be an amazing help!!!

Best regards

T
 
Welcome to the MrExcel board!

Does this do what you want? You may need to change the "200"s in the formula before copying down. That number needs to be big enough the reach at least the last row of your data.

Check overlap

ABCDE
1dateroutearrivedepart
21/09/2010Route 38:418:59check
31/09/2010Route 38:5510:00check
41/09/2010Route 39:3510:00check
51/09/2010Route 311:0211:25
61/09/2010Route 39:159:28check
71/09/2010Route 39:4510:00check
81/09/2010Route 311:5512:12
91/09/2010Route 312:3312:39
101/09/2010Route 313:2213:37
111/09/2010Route 314:0714:16
121/09/2010Route 313:5413:59
131/09/2010Route 49:5510:25
141/09/2010Route 412:2012:30
151/09/2010Route 48:459:30
161/09/2010Route 410:5511:20
171/09/2010Route 414:1014:40
181/09/2010Route 413:3513:40
19

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:103px;"><col style="width:85px;"><col style="width:74px;"><col style="width:68px;"><col style="width:56px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
E2=IF(COUNTA(A2:D2)=4,IF(SUMPRODUCT(--(A$2:A$200=A2),--(B$2:B$200=B2),(C$2:C$200<c2)< span="">*(D$2:D$200>C2)+(C$2:C$200<d2)< span="">*(D$2:D$200>D2))</d2)<>>0,"check","")</c2)<>,"")

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4

That's great!!! Only problem is that the exact overlap does not alert us with check... Also for some reason in my worksheet only one of the two entries writes check and not both like i see in yours.
 
Upvote 0

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
If we have a double entry, it doesn't alert us. For example


ABCDE
1dateroutearrivedepart
21/09/2010Route 38:418:59check
31/09/2010Route 38:418:59check

<tbody>
</tbody>
Is there a way to include double entry?
 
Last edited:
Upvote 0
If we have a double entry, it doesn't alert us. For example


ABCDE
1dateroutearrivedepart
21/09/2010Route 38:418:59check
31/09/2010Route 38:418:59check

<tbody>
</tbody>
Is there a way to include double entry?

My problem excactly.
Does any of you smart people know how to solve that?
Or might be able to sugest another formula?
thanks a lot.
 
Upvote 0
Hi,

I also need help some help regarding venue reservation schedule. I want to know the availability of reservation attempts. I have date range and time range in a single row(reservation).
Here is my data:

VenueFrom Date End DateStart Time End Time
Hall3/14/2019 3/14/20199:00 AM11:30 AM
Park3/15/20193/16/201911:30 AM1:30 PM
Hall3/16/20193/17/20198:30 AM2:30 PM

<colgroup><col><col span="2"><col><col></colgroup><tbody>
</tbody>

I need to figure out whether a venue is still available or not based on the existing data.
How can I identify if my reservation for a certain venue is possible (if no overlap of time between dates of a single row)? Else reservation will not be allowed Thanks for the help.
 
Upvote 0

Forum statistics

Threads
1,216,000
Messages
6,128,203
Members
449,433
Latest member
mwegter95

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