Forum Discussion

glen302's avatar
glen302
Copper Contributor
Oct 06, 2020
Solved

Check for overlap of Date and Time Formula

I am trying to find a formula to check overlap of Date and time in excel . I have a 2 worksheets each have columns of  start and Finish Date and Time Combined . I want to review each row  and give a ...
  • Riny_van_Eekelen's avatar
    Oct 06, 2020

    glen302 Please have look at the attached workbook. I sorted the dat/time entries in sheet1 in ascending order. In sheet 2 I sorted the date/time entries in descending order.

     

    Then on sheet1, I used XLOOKUP and INDEX/MATCH to find, for each start time the next largest starting time in sheet2 and compered it the ending time in sheet1. If it is less, then there is an overlap (TRUE) otherwise not (FALSE). If I have misunderstood, please give a few examples of entries that you consider to be overlapping and explain how you come to that conclusion.

     

    Note that the ending dates/times in sheet1 were texts, so I converted them to real dates first using Text.to-columns.

Resources