+ Reply to Thread
Results 1 to 2 of 2

Remove duplicates from one column and Concat data from another column

  1. #1
    Registered User
    Join Date
    11-01-2023
    Location
    Leicester, England
    MS-Off Ver
    2023
    Posts
    1

    Remove duplicates from one column and Concat data from another column

    Hi
    I have an Excel sheet with multiple entries(see example). I need to remove the duplicates from columns 1&2 but keep the data in column 3. Ideally concatenating this data in to column 3 or a new column with all entries, separated by a dash. An example of output is attached.

    There can be more than 2 duplicates of columns 1 & 2 within the sheet and a similar number of duplicates in column 3(to be retained)

    Hope that makes sense but is it possible?

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    23,950

    Re: Remove duplicates from one column and Concat data from another column

    Here is a power query solution

    Please Login or Register  to view this content.


    Excel 2016 (Windows) 64 bit
    A
    B
    C
    D
    E
    F
    G
    H
    I
    1
    column 1 column 2 column 3 Column 4 column 1 column 2 Custom Column 4
    2
    abc1 abc2
    1234
    a abc1 abc2 1234-5678 a
    3
    abc1 abc2
    5678
    g bce2 bce3 4556 h
    4
    bce2 bce3
    4556
    h def3 def4 5678 j
    5
    def3 def4
    5678
    j
    Sheet: Sheet1
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. Need VBA code to remove space at end of text in column
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-19-2022, 12:05 AM
  2. Replies: 18
    Last Post: 09-14-2022, 09:09 AM
  3. Replies: 2
    Last Post: 08-26-2021, 01:15 PM
  4. After CONCAT remove duplicates and identify unique records
    By Jon_P in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-22-2019, 04:53 PM
  5. Replies: 15
    Last Post: 06-30-2015, 02:36 AM
  6. Replies: 5
    Last Post: 05-08-2014, 07:24 AM
  7. Remove duplicates on column A and merge rows in column B
    By JJcool in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-29-2012, 05:41 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