+ Reply to Thread
Results 1 to 7 of 7

Concatenate last column for rows with same ID

  1. #1
    Registered User
    Join Date
    03-28-2012
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 365
    Posts
    79

    Concatenate last column for rows with same ID

    Hi,

    I would like to have text in column L concatenated based on the same ID

    ID Status CSE EntryDate Serial Address1 Area Fault PurchaseOrder Customer line Data
    1234 Complete D12Livy 2016/08/30 FT00682 Malparl 3 Not reading 9176 Statto 1 New data
    1234 InComplete D12Livy 2016/08/30 FT00682 Malparl 3 Not reading 9176 Statto 1 New data
    1234 InComplete D12Livy 2016/08/30 FT00682 Malparl 3 Not reading 9176 Statto 8 31/08/2019 10:00 Tech currently at Mulgrave
    1234 InComplete D12Livy 2016/08/30 FT00682 Malparl 3 Not reading 9176 Statto 9 31/08/2016 12:52 Tech currently at Key West
    1234 InComplete D12Livy 2016/08/30 FT00682 Malparl 3 Not reading 9176 Statto 11 incomplete call machine freezing
    458 InComplete D70 2016/08/31 FT785 Terrace 4 Freezing 8111 Statto 4 New data
    458 InComplete D70 2016/08/31 FT785 Terrace 4 Freezing 8111 Statto 7 Tech on site
    458 InComplete D70 2016/08/31 FT785 Terrace 4 Freezing 8111 Statto 8 Tech to order part

    Result for ID 1234 must be;

    ID Status CSE EntryDate Serial Address1 Area Fault PurchaseOrder Customer line Data
    1234 Complete D12Livy 2016/08/30 FT00682 Malparl 3 Not reading 9176 Statto 1 New data, 31/08/2019 10:00 Tech currently at Mulgrave, 31/08/2016 12:52 Tech currently at Key West, incomplete call machine freezing

  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 2406
    Posts
    44,662

    Re: Concatenate last column for rows with same ID

    can you post an Excel sheet, as it's not obvious from your post where one column ends and the next begins...

    Make sure there is enough data to demonstrate your need. Make sure your desired results are shown, mock them up manually if necessary. Remember to remove ALL confidential information first!!!

    However, nothing on this Forum works quite as well as you might expect. The attachment icon doesn't work!! (Helpful, isn't it!!). Instead, just before you submit your post, click on GO ADVANCED (near the bottom) and then scroll down to Manage Attachments to open the upload window. The relevant instructions are at the top of that screen.
    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

  3. #3
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Concatenate last column for rows with same ID

    @Glenn
    This is a double post. The one with the file attachment is here:

    http://www.excelforum.com/excel-prog...h-same-id.html

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Concatenate last column for rows with same ID

    You could do this nicely with an INDEX(MATCH(INDEX to isolate unique values of A, INDEX(MATCH to return columns of A's match, and then a concatenation UDF to pull in unique values of L for each A.

    A: =INDEX($A$2:$A$9,MATCH(0,INDEX(COUNTIF($A$12:A12,$A$2:$A$9),0,0),0))
    B: =INDEX(B$2:B$9,MATCH($A13,$A$2:$A$9,0))
    L: =ConcatIf($A$2:$A$9,A13,$L$2:$L$9,", ",1)

    ConcatIf parameters: =CONCATIF(criteria_range, criteria, concatenation_range, delimiter, boolean for unique values)
    Attached Files Attached Files
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Concatenate last column for rows with same ID

    Try
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    03-28-2012
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 365
    Posts
    79

    Re: Concatenate last column for rows with same ID

    To Jindon, the Forum Guru, Thank you so much. The test macro works so easily. You are a Guru indeed.
    Thank you also to daffodil11 , DBY and Glenn Kennedy for your contributions.
    This is the best online Excel Forum.
    I don't have enough words to thank you

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Concatenate last column for rows with same ID

    bongielondy

    You are welcome and thanks for the PM. (no need to do it though)

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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] concatenate 3 rows ,and transpose it into single column in another sheet
    By raj soni in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-25-2016, 06:33 AM
  2. To concatenate column headers if value in rows below is non-blank
    By chibidee in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-17-2015, 06:19 AM
  3. Concatenate a column based on a column with matching rows
    By excelsior51 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-01-2013, 11:13 AM
  4. concatenate rows in column b for every corresponding value in column A
    By devaguptam in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-26-2012, 07:37 PM
  5. Concatenate multiple rows based on column value
    By sbartlett1123 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-20-2012, 05:58 PM
  6. [SOLVED] How to Concatenate multiple Rows into 1 Column cell
    By rbapdx in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-11-2012, 12:02 AM
  7. Concatenate row values based on Column “A” merged rows
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-16-2011, 01:51 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