+ Reply to Thread
Results 1 to 6 of 6

How to eliminate duplicate lines within a cell

  1. #1
    Registered User
    Join Date
    10-18-2012
    Location
    South Jordan, Utah, USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    How to eliminate duplicate lines within a cell

    I need help eliminating duplicate lines within a cell. I've concatenated cell that have duplicate entries. Is there a slick way to remove the duplicates within each cell?

    Example, got to do this thousands of times within a spreadsheet.
    Got cell
    SDD_T4_4555
    SDD_T4_108
    SDD_T4_108
    SDD_T4_4378

    Want cell
    SDD_T4_4555
    SDD_T4_108
    SDD_T4_4378

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,962

    Re: How to eliminate duplicate lines within a cell

    try using data - remove dupliactes?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    10-18-2012
    Location
    South Jordan, Utah, USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: How to eliminate duplicate lines within a cell

    Thanks for responding.
    That works good for when you want to get rid of duplicat cells, unfortunately I need to elimiate lines that are duplicated within a cell. Any other ideas?

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,962

    Re: How to eliminate duplicate lines within a cell

    that was not what your example showed? or did you mean that this is all in 1 cell?

    SDD_T4_4555
    SDD_T4_108
    SDD_T4_108
    SDD_T4_4378

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

    Re: How to eliminate duplicate lines within a cell

    VBA solution
    Select the cell(s) then run the code
    Please Login or Register  to view this content.

  6. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: How to eliminate duplicate lines within a cell

    Hello kgraham2,

    Here is a very nice Code from Mudraker: http://www.excelforum.com/excel-gene...in-a-cell.html

    By tweaking it a bit, I got it to clear duplications within Cell contents in Column A, as demonstrated in the attached WorkBook.

    Maybe Mudraker would not mind showing us how to change it in such a way that it handles the total UsedRange of the Active Sheet.
    Attached Files Attached Files
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

+ 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