+ Reply to Thread
Results 1 to 4 of 4

Consolidate data from multiple rows to one cell separated by comma.

  1. #1
    Registered User
    Join Date
    07-17-2018
    Location
    Dublin, Ireland
    MS-Off Ver
    Microsoft Office Professional Plus 2010
    Posts
    2

    Consolidate data from multiple rows to one cell separated by comma.

    Hi All,

    Slightly complicated to explain my issue but please see sample data attached.

    I basically have products in my store which fit specific vehicles, where each vehicle has a unique code (in this example a 3 digit number). I have a list of over 330,000 rows with just part number in column A and the vehicle code in column B. The part numbers are duplicated as many times as there are vehicle codes listed for it. I need to consolidate all of the vehicle codes that fit the one part number, to one cell with each code separated by commas in order to import that field to my system.

    Some part numbers might fit many vehicle codes (hundreds), so it is not something I want to be doing manually!

    I would be fairly handy with excel as I use it every day to add products to my system and website and analyse business data etc but just not sure where to start here! Any help much appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Consolidate data from multiple rows to one cell separated by comma.

    Add this into a standard module:
    Please Login or Register  to view this content.
    To extract unique use: =IFERROR(INDEX($A$3:$A$15,MATCH(0,INDEX(COUNTIF($E$2:E2,$A$3:$A$15),0,0),0)),"")
    To cancatenate use: =Concat_Unique($E3,$A$3:$A$15,$B$3:$B$15)
    Attached Files Attached Files
    Click the * to say thanks.

  3. #3
    Registered User
    Join Date
    07-17-2018
    Location
    Dublin, Ireland
    MS-Off Ver
    Microsoft Office Professional Plus 2010
    Posts
    2

    Re: Consolidate data from multiple rows to one cell separated by comma.

    Thank you! Works great, although my system is not able to handle it very fast so I am splitting the data up into around 23 files of 15,000 lines each..!

  4. #4
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Consolidate data from multiple rows to one cell separated by comma.

    You did not mention that. I found a great solution to overcome this types of solutions here: https://stackoverflow.com/questions/...es-in-column-a
    Try this one:
    Please Login or Register  to view this content.

+ 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. Replies: 5
    Last Post: 04-19-2017, 03:18 PM
  2. [SOLVED] How to create new rows when a cell has data separated by a comma
    By Ohhaa in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 04-14-2017, 08:56 AM
  3. INDEX & MATCH multiple rows to return comma separated cell
    By sifuchi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-18-2015, 04:36 PM
  4. [SOLVED] Splitting Cell that contains multiple Headers with Data separated by comma.
    By omershafiq2012 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-25-2014, 09:42 AM
  5. Replies: 4
    Last Post: 03-13-2013, 07:52 AM
  6. Combine multiple rows into one comma separated column
    By NotAvg1 in forum Excel General
    Replies: 9
    Last Post: 03-04-2013, 07:06 PM
  7. Best way to parse colums and rows w/ multiple values separated by comma?
    By Sutukh19 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-28-2009, 04:37 AM

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