Forum Discussion

Bluemoon613's avatar
Bluemoon613
Occasional Reader
Apr 27, 2026
Solved

Overlapping times within one row

Hello,

What I would like to do is identify if two time ranges within the same row overlap with each other. My ideal end goal would look like:

 

Start 1

End 1ClientStart 2End 2ServiceOverlap?
8:55am8:59amNAME12:09pm12:19pmSERVICEFALSE
10:01am10:48amNAME10:00am11:10amSERVICETRUE
10:17am11:17amNAME10:40am10:58amSERVICETRUE
10:30am11:00amNAME10:30am11:14amSERVICETRUE
10:50am11:05amNAME2:01pm2:38pmSERVICEFALSE
10:50am11:00amNAME9:00am10:05amSERVICEFALSE

 

I have attempted methods like SUMPRODUCT to identify overlaps, but each one appears to work until I double check and find that it does not identify all overlapping times. For instance,  these two rows will be listed as false, even though the times are overlapping.

 

9:59am11:04amNAME10:00am10:45amSERVICEFALSE
9:58am10:55amNAME9:45am10:25amSERVICEFALSE

 

Thank you in advance for your help!

  • you can try this:

    = (endTime2 > startTime1) * (startTime2 < endTime1)

    and if you want it to be specifically T/F insteas of 1/0 then just 

    = (endTime2 > startTime1) * (startTime2 < endTime1) = 1

    note this does assume all your times are the same day and each end time > start time

1 Reply

  • m_tarler's avatar
    m_tarler
    Silver Contributor

    you can try this:

    = (endTime2 > startTime1) * (startTime2 < endTime1)

    and if you want it to be specifically T/F insteas of 1/0 then just 

    = (endTime2 > startTime1) * (startTime2 < endTime1) = 1

    note this does assume all your times are the same day and each end time > start time