+ Reply to Thread
Results 1 to 11 of 11

Overlapping time within one column

  1. #1
    Registered User
    Join Date
    02-20-2014
    Location
    sweden
    MS-Off Ver
    Excel 2010
    Posts
    18

    Overlapping time within one column

    Hi.

    I've been trying to create a formula that checks if the time of two rows overlap and then post true or false. I've had no luck so I've come here for help, what I'm trying to do is have a formula that works like this:

    Column J

    07.00-12.00
    07.00-16.00

    So the upper part would check if it overlaps with the lower one and if it does it would be false. I've provided an excel with full of time values, hope my question is clear .
    Attached Files Attached Files

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: Overlapping time within one column

    b2=IF(ROWS(B$2:B2)=1,"Not Overlap",IF(AND(LEFT(A2,5)+0>=LEFT(A1,5)+0,LEFT(A2,5)+0<RIGHT(A1,5)+0),"Overlap","Not Overlap"))
    try this one and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Registered User
    Join Date
    02-20-2014
    Location
    sweden
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Overlapping time within one column

    Thank you, works great

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: Overlapping time within one column

    Thanks for your feedback

  5. #5
    Registered User
    Join Date
    02-20-2014
    Location
    sweden
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Overlapping time within one column

    Is it possible to have it check dates as well, I realized that alot of times overlap but they're on different dates which is fine, but if they overlap on the same date I'd like to be able to find that.
    Attached Files Attached Files

  6. #6
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: Overlapping time within one column

    c2=IF(ROWS(C$2:C2)=1,"Not Overlap",IF(AND(LEFT(B2,5)+A2>=LEFT(B1,5)+A1,LEFT(B2,5)+A2<RIGHT(B1,5)+A1),"Overlap","Not Overlap"))
    Try this and copy towards down

  7. #7
    Registered User
    Join Date
    02-20-2014
    Location
    sweden
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Overlapping time within one column

    Thanks again

  8. #8
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: Overlapping time within one column

    You are welcome

  9. #9
    Registered User
    Join Date
    02-20-2014
    Location
    sweden
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Overlapping time within one column

    I'm still having some issues, I believe it's mainly due to my own editing but I've marked it red in the excel file. It's the time overlapping when it shouldn't. Did I break something?
    Attached Files Attached Files

  10. #10
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: Overlapping time within one column

    Q7218=
    Please Login or Register  to view this content.
    Try the above code in Q7218 and copy towards down

  11. #11
    Registered User
    Join Date
    02-20-2014
    Location
    sweden
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Overlapping time within one column

    I see that the rows I used were incorrect, thank you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Calculating the overlapping time intervals
    By Mukund03 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-26-2015, 07:20 PM
  2. Counting Overlapping Time & Non-Overlapping Time
    By I_need_help1 in forum Excel General
    Replies: 4
    Last Post: 02-08-2011, 02:36 PM
  3. Overlapping Time Formula
    By misterzr in forum Excel General
    Replies: 4
    Last Post: 01-21-2011, 05:55 PM
  4. Overlapping or Duplicate Date & Time
    By Mike in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  5. Overlapping or Duplicate Date & Time
    By Mike in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1