+ Reply to Thread
Results 1 to 3 of 3

Need to modify formula that checks if word in phrase appears in list of single words

  1. #1
    Registered User
    Join Date
    09-13-2019
    Location
    California
    MS-Off Ver
    Office 365
    Posts
    2

    Need to modify formula that checks if word in phrase appears in list of single words

    Hi All - I hope you can help me with this. I know enough to break things and be dangerous.

    I have a list of phrases in one column and I want to see if any word in a phase appears in another column of single words. This is the formula I am using and it mostly works...

    =SUMPRODUCT(--ISNUMBER(SEARCH(BroadWords,A2)))>0 (Note: BroadWords is the Named Range of single words)

    The problem I have is this. For example, in the phrase column I have Trash Box. In the Named Range, I have neither trash nor box, however I do have trashy. The result is Trash Box gets flagged as True.

    Is there a way to modify the formula to only match whole words?

    Thanks,
    Bill

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Need to modify formula that checks if word in phrase appears in list of single words

    =SUMPRODUCT(--ISNUMBER(SEARCH(BroadWords&" ",A2&" ")))>0

  3. #3
    Registered User
    Join Date
    09-13-2019
    Location
    California
    MS-Off Ver
    Office 365
    Posts
    2

    Re: Need to modify formula that checks if word in phrase appears in list of single words

    I believe that worked! My ability to break things and be dangerous also enables me to partially understand what you did (I think). In my formula it looks for a string. In your modification, It looks a space before and/or after the string. Is that correct? If it is and then this won't catch a first word in the phrase, if it is or than it will.

    thank you very much for your reply.

+ 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. Include random word from the word list with a phrase as suffix or prefix
    By faizzsheikh in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-10-2016, 05:53 AM
  2. Replies: 5
    Last Post: 01-14-2016, 12:04 AM
  3. Replies: 18
    Last Post: 06-30-2015, 08:24 PM
  4. Replies: 4
    Last Post: 06-28-2015, 10:57 AM
  5. Delete words within phrase from list of words
    By El Cosmos in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-04-2014, 02:18 PM
  6. Replies: 0
    Last Post: 06-13-2012, 09:16 PM
  7. [SOLVED] Find and return a word, in a list of words, that is in a single cell.
    By nicholas.jacka in forum Excel General
    Replies: 2
    Last Post: 03-07-2012, 05:13 AM

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