+ Reply to Thread
Results 1 to 4 of 4

Find & delete duplicate words in a cell from a separat list of words that can be added to

  1. #1
    Registered User
    Join Date
    11-27-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    2

    Find & delete duplicate words in a cell from a separat list of words that can be added to

    Long time lurker, first time poster!

    As the title says, I need a macro which searches a single column for duplicate entries.

    Some of the duplicates I want to keep, so I need to remove the unwanted duplicates by using a reference list of words to dedupe.

    Any ideas? Here is an example of my data:

    Capture5.JPG

    I'd like to dedupe 'Handbag' and leave 'Ladies''.



    Thanks in advance!

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Find & delete duplicate words in a cell from a separat list of words that can be adde

    Hi Peter,

    Welcome to the forum.

    You can use below formula which assumes that your data is in column A:

    =SUBSTITUTE(A1,"Handbag","")

    You can give reference to "handbag" if that is available in some other cell. Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey
    +91 9810929744
    dilipandey@gmail.com

  3. #3
    Registered User
    Join Date
    11-27-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Find & delete duplicate words in a cell from a separat list of words that can be adde

    Quote Originally Posted by dilipandey View Post
    Hi Peter,

    Welcome to the forum.

    <click on below 'star' if this helps>

    Thanks Dili!

    I actually need something more complicated than this... I need a single 'handbag' remaining, not remove all of them.

    I just need an array that I can populate with words I want to deduplicate inside each cell, and run a macro on it.

    I already use the 'substitute' function to correct many common spelling errors on my files.

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Find & delete duplicate words in a cell from a separat list of words that can be adde

    Hi peter,

    If you need a single 'handbag' remaining, you can play with spaces / single quote etc while applying the substitute function.. can you upload a small sample of data? thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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