+ Reply to Thread
Results 1 to 6 of 6

How to find duplicated words

  1. #1
    Registered User
    Join Date
    09-12-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2007
    Posts
    3

    How to find duplicated words

    Hi,
    I need help finding duplicated words in two different cells. This is what I am trying to do:

    Cell A1: "Eyewash, Saline wash station"
    Cell B1: "Shower Station"

    I need to Highlight the word "Station" in column B1 since it is duplicated in both cells.

    Then compare A2 & B2 and highlight all duplicate words. And keep doing this for all rows.

    Appreciate your comments!

  2. #2
    Registered User
    Join Date
    09-12-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: How to find duplicated words


  3. #3
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: How to find duplicated words

    Want to get your question answered quickly?

    Ensure your question is not too vague. Don't assume anyone is familiar with your problem. While you can upload small attachments, describe your problem in the body of the post. We are fortunate to have several Excel gurus, but few mind-readers.
    On the other hand, skip irrelevant details. Be descriptive and concise. Short, direct, and to-the-point questions with apt thread titles are almost always answered promptly.
    Keep the scope reasonably narrow. Questions like, "How do I set up an accounting system in Excel?" might be a long time waiting.
    Explain what you've already tried. ("Calculation is set to automatic, but formulas still don't compute") so helpers don't waste your time or theirs.
    Post a WORKBOOK. Nobody wants to type data from a picture or paste text from your post into a spreadsheet as a prelude to helping. To attach a file, push the button with the paperclip (or scroll down to the Manage Attachments button), browse to the required file, and then push the Upload button.
    If your question has not been answered within a day, consider adding another post with any additional information you believe is relevant. If you think your post is good as is, just reply to your own thread with the words "Bump no response", which will bring it to the top of the forum.
    If solved remember to mark Thread as solved

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: How to find duplicated words

    Hi, Refused07,

    how familiar are you with loops and arrays? Split both contents up (using the split function), running both arrays from LBound to UBound and use InStr for comparing to the other cell, if a value greater zero is returned use the InStr for the Start character and the length of the term to "highlight" (change colour of font for example). You could use Find as well but then you would have to investigate about the start of the item.

    Maybe this can give you some hint on how to solve the problem.

    Ciao,
    Holger
    Last edited by arlu1201; 09-13-2012 at 01:37 PM.
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  5. #5
    Registered User
    Join Date
    09-12-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: How to find duplicated words

    Thanks for the advice! I will try it

  6. #6
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: How to find duplicated words

    Hi, Refused07,

    if you need help with transforming my tip into code feel free to come back and ask.

    Ciao,
    Holger

+ 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