+ Reply to Thread
Results 1 to 5 of 5

Remove duplicates based on specific words

  1. #1
    Registered User
    Join Date
    08-04-2015
    Location
    Stoke on Trent, England
    MS-Off Ver
    2010
    Posts
    58

    Remove duplicates based on specific words

    Merry Christmas all.

    If there is anyone out there who could help me it would be much appreciated.

    Is there a way to remove duplicate words from a cell and anything after it.

    If there are multiple products for sale. Some have RRP's, some don't. But some have an RRP twice which might have a different value to the first one listed.

    EG.

    Brown Sofa - RRP £250
    Red Sofa
    Blue Sofa - RRP £250 RRP £249

    Is there a way to remote the duplicated word RRP and any text after it.

    Thanks for looking

    Graham

  2. #2
    Valued Forum Contributor
    Join Date
    12-28-2014
    Location
    NSW, Australia
    MS-Off Ver
    MS365
    Posts
    604

    Re: Remove duplicates based on specific words

    Hi Graham, Merry Christmas, try this formula assuming that "Brown Sofa - RRP £250" was in cell A1 and copy down.

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Remove duplicates based on specific words

    Hi Graham

    This is quite simple really, well not really

    We count how many times RRP appears in our String, and replace the second occurrance with |

    Then we delete the | and everything after it.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Paste in row 1, any cell but A1 and fill down
    Last edited by mehmetcik; 12-26-2016 at 08:03 AM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Remove duplicates based on specific words

    Another method:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    BSB

  5. #5
    Registered User
    Join Date
    08-04-2015
    Location
    Stoke on Trent, England
    MS-Off Ver
    2010
    Posts
    58

    Re: Remove duplicates based on specific words

    Amazing.
    Thank you so much for this help.
    Hope you have a great Christmas and a happy New Year.

    Graham

+ 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. How to remove (specific) Stop Words from a Text? I'm absolutely not getting it (:
    By dooyou in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-18-2016, 09:11 AM
  2. Replies: 15
    Last Post: 10-12-2014, 08:53 AM
  3. How To Remove Duplicates On Specific Condition?
    By TechnicGeek in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-15-2014, 02:12 PM
  4. Remove rows based on list of words
    By jewseboy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-24-2013, 09:00 AM
  5. How to remove two specific words from each cell in a column
    By pahari75 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-10-2013, 06:29 PM
  6. Remove specific words from cells
    By darkhorse4321 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-08-2010, 08:46 AM
  7. remove text after and before specific words
    By Statsman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-22-2008, 02:38 PM

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