+ Reply to Thread
Results 1 to 5 of 5

Word Match in a String

  1. #1
    Registered User
    Join Date
    08-02-2017
    Location
    Phoenix
    MS-Off Ver
    2013
    Posts
    4

    Word Match in a String

    Hello Experts,

    Need your help in finding an automated (VLKP or MATCH) way to compare text in two cells. Compare two texts and identify matching words and # of words matched.

    Cell 1: How can I help you today sir?

    Cell 2: ▲* how can help you today

    Expected Result: how can help you
    Word Match Count: 4

    Would appreciate if you could share knowledge on how i can accomplish this in excel please. Thanks in advance

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,199

    Re: Word Match in a String

    You will need VBA to do this.

    OR

    listing words in second text in
    separate cells

    =SUMPRODUCT(--(ISNUMBER(SEARCH($B$1:$B$4,$A$1))))

    A1=String 1

    B1:B5 are words to be matched

    how
    can
    help
    you
    today

    Match count is 5 not 4
    Last edited by JohnTopley; 08-03-2017 at 12:46 AM.

  3. #3
    Registered User
    Join Date
    09-26-2016
    Location
    Japan
    MS-Off Ver
    Office 2013
    Posts
    6

    Re: Word Match in a String

    Just for testing.
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    08-02-2017
    Location
    Phoenix
    MS-Off Ver
    2013
    Posts
    4

    Re: Word Match in a String

    Hi Takae,

    Is this a VBA code ? Thanks

  5. #5
    Registered User
    Join Date
    08-02-2017
    Location
    Phoenix
    MS-Off Ver
    2013
    Posts
    4

    Re: Word Match in a String

    Hi John,

    Thanks for the response. I don't know VBA. So, i have to go with your 2nd recommendation. All i need is a matching count between the texts. If my text is below:

    Cell A1:

    And thank you for the payment sir. Is there anything else I can help you with today?

    Cell B1:

    ▼on ◆thank ▲you for that payment sir is there anything else i can help you with today

    Result Expected:

    Matching Count - 15

+ 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] Index Match with Whole Word Text in string
    By JCOENG in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 06-20-2017, 08:18 PM
  2. [SOLVED] Match single word to string of text
    By Seraph84 in forum Excel General
    Replies: 6
    Last Post: 02-24-2016, 03:37 AM
  3. [SOLVED] Grab last word from string and then delete word from original string.
    By mtilbury in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-14-2015, 04:14 AM
  4. Replies: 3
    Last Post: 01-22-2015, 06:21 PM
  5. Replies: 2
    Last Post: 08-05-2013, 04:45 PM
  6. [SOLVED] How to conditionally insert text string into a line after first word using Word 2010
    By staggers47 in forum Word Formatting & General
    Replies: 5
    Last Post: 12-08-2012, 11:07 AM
  7. Replies: 0
    Last Post: 07-11-2012, 06:05 AM

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