+ Reply to Thread
Results 1 to 7 of 7

Deduplicate and merge

  1. #1
    Registered User
    Join Date
    07-19-2012
    Location
    paris, france
    MS-Off Ver
    Excel 2010
    Posts
    15

    Deduplicate and merge

    Hello,

    I have a table like this

    A Joe
    A John
    B Bob
    C Diana
    D James
    E Jack
    E Lou
    E Brad
    E Fred

    and would like to reach the following result

    A Joe, John
    B Bob
    C Diana
    D James
    E Jack, Lou, Brad, Fred

    I did not manage to find the right formula. Please advise if you have ideas. Many thanks, Tiger
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Deduplicate and merge

    Will you put the unique letters (A, B, C etc) in column F, or do you want a formula to extract those as well?

    How many names (maximum) are you likely to have for each individual letter?

    Pete

  3. #3
    Registered User
    Join Date
    07-19-2012
    Location
    paris, france
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Deduplicate and merge

    Thanks Peter for your feedback.
    I could easily put the unique letters in column F myself using the deduplicate function from Excel 2010. I guess I will have a maximum of 10 names for each individual letter.

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

    Re: Deduplicate and merge

    See the attached
    Attached Files Attached Files

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Deduplicate and merge

    Okay, I've put this formula in E7:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and copied it down beyond your data.

    Then I put this formula in G7:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and copied this down. This only returns up to 5 names, but hopefully you can see what needs to be done to increase this to more - you should highlight just this part of the formula in the formula bar:

    &IF(ISNA(MATCH(F7&"_5",E:E,0)),"",", "&INDEX(D:D,MATCH(F7&"_5",E:E,0)))

    then click <copy>, then move the cursor to the end of the formula in the formula bar and do CTRL-V (paste) a few times. Then you need to change the 5 (shown above in red) to 6, then 7 then 8 etc for each time that you have pasted the expression in.

    Then you can copy the longer formula down.

    Hope this helps.

    Pete
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    07-19-2012
    Location
    paris, france
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Deduplicate and merge

    Many thanks Pete. It works like a charm!
    All the best,
    Tiger.

  7. #7
    Registered User
    Join Date
    07-19-2012
    Location
    paris, france
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Deduplicate and merge

    Teethless Mama,

    This also works very well. Many thanks. Tiger.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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