+ Reply to Thread
Results 1 to 3 of 3

Getting rid of duplicate values in a cell after using concatenate

  1. #1
    Registered User
    Join Date
    03-25-2011
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    3

    Getting rid of duplicate values in a cell after using concatenate

    I have a large spreadsheet with 2 columns of names. Each cell may contain anywhere from one to 50 names. I combined the columns using concatenate. The problem is that the names in each column were not unique, so I have some dulicate names which now must be removed. The problem is the duplicates are in one cell. The format of the names is as follows:

    Lastname1, Firstname1; Lastname2, Firstname2, etc...

    First name and last name separated by a comma, names seperated by a semi colon.

    Is there anyway to remove the dupes within the cell? It is quite difficult to do by hand. There are hundred of rows. Thanks!

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Getting rid of duplicate values in a cell after using concatenate

    Hi outofgum,

    We need to talk about having a cell with multiple names in it. It seems to me Excel works better if names are in separate cells. Perhaps you should post an example file and explain what you have and what you are trying to achieve.

    That said. If I had this problem, I'd start by splitting out the named based on the semicolon character. Perhaps using import as text using the semicolon as the delimiter character. Then I imagine a transpose all the imported data and a delete duplicates one each individual row. This would remove duplicates and be ready to put it back like you asked.

    All said above - we need a sample. Click on "Go Advanced" and then on the Paper Clip Icon above the message area to attach a sample.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    03-25-2011
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Getting rid of duplicate values in a cell after using concatenate

    Thanks for the suggestion! What I did was copy the column to a new workbook and use text to colums using the semi colon as the delimiter.

    For some reason remove dulicates wouldn't work across rows (only columns?) so I made a conditional formating macro to apply to each row. All this does is highlight which makes it easier to find the dupes. Can conditional formatting delete cell data? I looked but it doesn't seem like it.

    Anyone have an idea of where to go from here?

+ 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