+ Reply to Thread
Results 1 to 4 of 4

Finding Overlapping Date Entries with matching IDs

  1. #1
    Registered User
    Join Date
    01-04-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    Finding Overlapping Date Entries with matching IDs

    Hello all,

    I'm trying to find a way to find, and later delete, date entries which are overlapping but also belong to the same person or unique ID. In the Excel sheet I've attached I have Sally checked-in 3 times, an exact duplicate from 9:30-18:10 and another from 10:30 to 16:30. Since she can only have one check in at a time I need to be able to find the ones that overlap with her name only so I can remove them later. I've also included an entry from 21:00-23:30, which is acceptable because she has only one check in for that period.

    I need a solution that would be applicable to the other entries as well. Such as Joe which has overlapping Check In times. Note-The dataset I'm working with is also quite large.

    So far I've been able to use =IF with >= and MEDIAN functions to determine whether or not the data was overlapping but I haven't been able to combine that with another =IF or a Vlookup to make sure the Names/IDs are identical.

    Thanks in advance for any help you can provide.
    Attached Files Attached Files
    Last edited by Zabaran; 01-07-2013 at 06:31 AM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Finding Overlapping Date Entries with matching IDs

    In D2 copied down, this works in your example

    =IF(SUMPRODUCT(--($A$2:$A2=A2),($B$2:$B2<=B2)*($C$2:$C2>=C2))>1,"Delete","")
    Then filter the data on column D and delete those rows.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Finding Overlapping Date Entries with matching IDs

    See the attached
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-04-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Finding Overlapping Date Entries with matching IDs

    Thanks for all your help! Both solutions seem to work fine when I transferred it into the real data set.

    (Also sorry for the late reply)

    Eric

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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