+ Reply to Thread
Results 1 to 5 of 5

Delete duplicates (both pairs)

  1. #1
    Registered User
    Join Date
    02-01-2022
    Location
    London
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2111 Build 16.0.14701.20278) 32-bit
    Posts
    27

    Delete duplicates (both pairs)

    I have some data, I want to delete the duplicates. This is easy in PowerQuery, however I want to delete both pairs (the original as well as the copy).

    Please see attached how the data is (ignore calc column to quickly show duplicates) and how I want the data to look (did this by eye might be slightly wrong).
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Delete duplicates (both pairs)

    I deleted the calulated column.

    =FILTER(Table4,COUNTIFS(Table4[Person],Table4[Person],Table4[Date],Table4[Date])=1) and format the date column as a date.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    02-01-2022
    Location
    London
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2111 Build 16.0.14701.20278) 32-bit
    Posts
    27

    Re: Delete duplicates (both pairs)

    Hi that works thanks. I would be grateful if someone could provide a solution for this within Power Query.

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

    Re: Delete duplicates (both pairs)

    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...

  5. #5
    Registered User
    Join Date
    02-01-2022
    Location
    London
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2111 Build 16.0.14701.20278) 32-bit
    Posts
    27

    Re: Delete duplicates (both pairs)

    Quote Originally Posted by Olly View Post
    Please Login or Register  to view this content.
    This works thanks!

+ 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. [SOLVED] Delete rows in pairs if columns value match and cells have opposite numbers.
    By elbarauljr in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-17-2022, 12:08 PM
  2. Delete duplicate entry if both entries have corresponding pairs
    By immigrated4urjob in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-12-2021, 09:52 AM
  3. Replies: 7
    Last Post: 10-17-2019, 12:00 PM
  4. Random Pairs no duplicates
    By mar1331bro in forum Excel General
    Replies: 2
    Last Post: 07-27-2016, 01:00 PM
  5. [SOLVED] Macro to find duplicates, concatenate Unique Values, then delete old duplicates
    By lesoies in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-17-2013, 04:32 PM
  6. [SOLVED] How to get most frequent pairs with no duplicates?
    By sem in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 09-20-2012, 11:04 AM
  7. How to identify duplicates based on multiple cell pairs
    By dhendridge in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-18-2011, 05:06 AM

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