+ Reply to Thread
Results 1 to 6 of 6

Need to concatenate cells and remove duplicates

  1. #1
    Registered User
    Join Date
    06-23-2014
    Location
    Chicago, IL
    MS-Off Ver
    2010
    Posts
    3

    Need to concatenate cells and remove duplicates

    Hello,

    I currently have a spreadsheet that contains about 1700 lines of data related to ~400 different clients which I am looking to consolidate.

    The data is currently in this format (a set like this repeated ~400 times with anywhere between 3 and 7 services):


    Company ID # Company Name Service1
    Company ID # Company Name Service2
    Company ID # Company Name Service3


    I would like to have the data in this format (one row per company with all of the services in the third column concatenated into a single cell, all while removing the duplicate rows.)


    Company ID # Company Name Service1, Service2, Service3



    Would anyone be able to help me create the code (or describe the process) necessary to do this?

    Thank you for your time and consideration in this matter!

    James Cooper
    Last edited by jdcooper88; 06-23-2014 at 01:37 PM.

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Need to concatenate cells and remove duplicates

    Has the data already been sorted?
    Gary's Student

  3. #3
    Registered User
    Join Date
    06-23-2014
    Location
    Chicago, IL
    MS-Off Ver
    2010
    Posts
    3

    Re: Need to concatenate cells and remove duplicates

    The data is currently sorted in alphabetical order by Company Name, however I could just as easily sort it by company ID # and work from there.

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

    Re: Need to concatenate cells and remove duplicates

    try the attached.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-23-2014
    Location
    Chicago, IL
    MS-Off Ver
    2010
    Posts
    3

    Re: Need to concatenate cells and remove duplicates

    Worked like a charm! Thank you for your help, Jindon!

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

    Re: Need to concatenate cells and remove duplicates

    You are welcome and thanks for the rep.

    Can you please mark the 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. Macro to find duplicates, concatenate cells, then delete old duplicates
    By givemepuppies in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 03-04-2016, 02:43 AM
  2. Superformula to remove duplicates, Sum, vlookup and concatenate
    By aleighto in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-03-2013, 11:53 AM
  3. Concatenate cells and delete duplicates
    By plente in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 02-17-2011, 07:19 PM
  4. concatenate, sum, and remove duplicates
    By jmerry1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-25-2011, 10:31 AM
  5. Concatenate non-adjacent cells without duplicates
    By turningitred in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-18-2009, 11:08 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