+ Reply to Thread
Results 1 to 3 of 3

Is it possible to find out if any part of a text string appears in another text string?

  1. #1
    Registered User
    Join Date
    03-18-2015
    Location
    Sydney, Australia
    MS-Off Ver
    2013
    Posts
    12

    Is it possible to find out if any part of a text string appears in another text string?

    Hello,
    First time user here so apologies if I get anything wrong.
    I have a column of names in sheet 1 and a column of names in sheet 2, I am trying to ascertain if I can somehow get an indication that there is something within the 2 cell that matches.


    Column A of sheet 1 contains the name Diane Greenshields, Column A of sheet 2 contains the name DR & BW Greenshields.

    I basically want a true or false answer to if they contain similar enough text strings to be considered a match so I can apply it to an entire column not just one entry (as I know if it was just one entry I could use ISNUMBER(SEARCH() and gain a result using "Greenshields" as the "Find text" component of that formula).

    I hope this makes sense and again apologies if it doesn't. The data I'm using is sensitive so I cannot attach even a small part of it sorry.
    Thanks for any help anyone can provide.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Is it possible to find out if any part of a text string appears in another text string

    "similar enough text strings to be considered a match" is more complicated than you think it is.

    I know of no way to do this with standard Excel built-in functions (although somebody else may know how).

    This could be done by creating a user-defined function with VBA. However, you need to think over what kind of a match you are looking for.

    For example, what if the first cell has

    Diane Greenshields

    and the second has

    Greenfield & Co.

    Well, part of the first one matches part of the second one, but I'm sure you don't want to consider that to be a match.

    If you want to match only if a whole word in one matches a whole word in another, you are going to get matches like this:

    Dan Mitchell
    Fred Mitchell
    Mitchell Sanders

    Do you know exactly what constitutes a match?
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    03-18-2015
    Location
    Sydney, Australia
    MS-Off Ver
    2013
    Posts
    12

    Re: Is it possible to find out if any part of a text string appears in another text string

    Thanks 6 String,
    Yes I do want the whole word to be a match because I can then use the information from another column (example membership number and/or email) and an IF(AND/OR statement to ensure the match is true.

    Thanks again

+ 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. [SOLVED] Find the last row in which a text string appears
    By dale_willey in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 06-23-2013, 10:41 PM
  2. [SOLVED] Find partial text string within another text string return original text into cell.
    By mikey42979 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-17-2013, 02:58 PM
  3. Vlookup to find part of text string
    By boatbabe in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-06-2013, 10:32 AM
  4. Find/use part of a text string
    By -emma- in forum Excel General
    Replies: 2
    Last Post: 12-06-2008, 07:14 PM
  5. Replies: 3
    Last Post: 12-09-2005, 03:10 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