+ Reply to Thread
Results 1 to 5 of 5

Remove Duplicates - similar but not exact

  1. #1
    Registered User
    Join Date
    02-01-2022
    Location
    Trinidad
    MS-Off Ver
    Microsoft 365
    Posts
    2

    Remove Duplicates - similar but not exact

    Hi all, I have data entered by multiple users, my table consists of time and plates. Ideally, each person suppose to enter a unique plate number/ take turns in entering the data, however I have instances where there will be the same plate entered within a 5 minute window. Thus, because the times are slightly off/ different, excel's "Remove duplicates" does not register these as duplicates due to the seconds/ minutes difference. How can I remove these duplicates within a 5 minute window?
    I am no expert in coding, I just know basic excel formulas. An example of the repeated data and my desired outcome is highlighted in the attached.

    Thank you in advance.

    Attachment 766095
    Attached Files Attached Files
    Last edited by DeenaDass; 02-01-2022 at 05:38 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,696

    Re: Remove Duplicates - similar but not exact

    We can't tell what's going on from a screen shot. Please see "HOW TO ATTACH YOUR SAMPLE WORKBOOK" in the yellow banner at the top of the page and attach your actual file (it's easier to attach the Excel file than to take a screen shot and attach that).
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Remove Duplicates - similar but not exact

    You could try adding a helper column with this formula (assuming you show col A and B)...
    =SUMPRODUCT(--(B1=$B$1:B1)--(COUNTIF(A1,$A$1:A1+(5/60/24))))

    Then filter on the helper, it should show you all the duplicates - check a few to make sure it's working OK. You can then delete the 2's
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    02-01-2022
    Location
    Trinidad
    MS-Off Ver
    Microsoft 365
    Posts
    2

    Re: Remove Duplicates - similar but not exact

    see attached file
    Attached Files Attached Files

  5. #5
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Remove Duplicates - similar but not exact

    Format your source as a table, then use a Power Query:

    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

+ 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. similar matching - not exact
    By fegeez in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-04-2021, 04:15 AM
  2. Match to exact and similar
    By SPIG in forum Excel General
    Replies: 5
    Last Post: 07-15-2019, 06:55 PM
  3. Replies: 0
    Last Post: 10-08-2018, 04:30 PM
  4. Replies: 3
    Last Post: 03-09-2011, 07:00 PM
  5. Comparing similar (but not exact) cells
    By sysco in forum Excel General
    Replies: 4
    Last Post: 10-07-2006, 01:41 AM
  6. [SOLVED] Similar vs. Exact comparison
    By dave in Toronto in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-31-2005, 06:05 PM
  7. similar vs. exact comparison
    By dave in Toronto in forum Excel General
    Replies: 1
    Last Post: 08-31-2005, 05:36 PM

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