+ Reply to Thread
Results 1 to 9 of 9

Removing duplicate words in a text tring seperated by a commas within a single cell

  1. #1
    Registered User
    Join Date
    02-07-2012
    Location
    LA
    MS-Off Ver
    Excel For Mac 2011
    Posts
    99

    Question Removing duplicate words in a text tring seperated by a commas within a single cell

    Hi, I'm trying to remove duplicate values in a text string separated by a commas in a single cell. I want to run it down through all cells containing data in Column A. Any ideas ? thank you

    Example :

    Data in A2:
    red,car,boat,blue,red,mail,sun,blue,street

    Result desired in B2:
    red,car,boat,blue,mail,sun,street

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Removing duplicate words in a text tring seperated by a commas within a single cell

    Select the cells you want the macro to work on and push the button.
    Attached Files Attached Files
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

  3. #3
    Registered User
    Join Date
    02-07-2012
    Location
    LA
    MS-Off Ver
    Excel For Mac 2011
    Posts
    99

    Re: Removing duplicate words in a text tring seperated by a commas within a single cell

    Thanks Skywriter , But I could not get it to work. Here's the error message I got and a pic of the debugging screen. I'm using Excel for Mac, in-case that has something to do with it._1_Screen Shot 2015-05-28 at 10.25.33 PM.png_1_Screen Shot 2015-05-28 at 10.25.44 PM.png

  4. #4
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Removing duplicate words in a text tring seperated by a commas within a single cell

    Hi syncguy,
    maybe this (see attachment)
    Attached Files Attached Files

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

    Re: Removing duplicate words in a text tring seperated by a commas within a single cell

    Use in cell like

    =UniqInCell(A1,",",1)
    1 for Non case-sensitive, 0 for case-sensitive
    Please Login or Register  to view this content.

  6. #6
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Removing duplicate words in a text tring seperated by a commas within a single cell

    Thanks Skywriter , But I could not get it to work. Here's the error message I got and a pic of the debugging screen. I'm using Excel for Mac, in-case that has something to do with it.
    Yeah you probably don't have a file that's needed or it's not in the right place.
    You should just go with one of the other solutions that don't need a reference to make them work.

    Thanks for letting me know.

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

    Re: Removing duplicate words in a text tring seperated by a commas within a single cell

    You can't use Dictionary with Mac OS.
    It's a well-known issue...

  8. #8
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Removing duplicate words in a text tring seperated by a commas within a single cell

    It's a well-known issue.
    Qualify well known.

  9. #9
    Registered User
    Join Date
    02-07-2012
    Location
    LA
    MS-Off Ver
    Excel For Mac 2011
    Posts
    99

    Re: Removing duplicate words in a text tring seperated by a commas within a single cell

    Jindon and Nilem , both solutions worked excellently . I'll specify Excel for Mac in the future...my bad. You guys are all geniuses ! Thanks!

+ 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. Convert Excel Column to text file seperated by commas
    By stri9504 in forum Excel General
    Replies: 9
    Last Post: 05-17-2015, 02:34 PM
  2. [SOLVED] ListBox - Copy all selected options into a single cell seperated by commas
    By AusTempest in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 03-31-2014, 08:04 AM
  3. Multiple numbers seperated by commas in a single cell
    By abe10 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-26-2013, 05:42 PM
  4. To fill non-duplicate dof a range in cells of other worksheet seperated by commas
    By kmlprtsngh in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 12-09-2010, 01:21 PM
  5. Replies: 2
    Last Post: 04-03-2006, 05:50 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