+ Reply to Thread
Results 1 to 4 of 4

Check if a string of text contains a word from a list, and specify which word that it is.

  1. #1
    Registered User
    Join Date
    08-14-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    10

    Check if a string of text contains a word from a list, and specify which word that it is.

    Hello,

    CONTEXT:

    I have a list of product IDs in column A and their titles in column B in a tab called "Products" (around 900,000). In the other tab called "Taxonomy" I have a list of category names in column B and their category ID in column A (around 10,000).

    I would like create a formula which searches the product titles to see if they contain words that match the category names, and if so return which category ID it matches to.

    I've found a way to confirm whether or not the title contains a category name in with this array formula:

    {=IF(MAX(IFERROR(SEARCH(Taxonomy!B:B,Products!B2),0))>0,"yes","no")}

    and I know how to return a category ID using the name with an INDEX MATCH formula, but I can't figure out or find any post that covers how to find out which word from the category list the formula has found in the title.

    Does anyone know how I can do this or is this something only VBA can do?

    Thank you in advance for any help

  2. #2
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,841

    Re: Check if a string of text contains a word from a list, and specify which word that it

    I'm not sure I understood what you want but here are some suggestions.
    Attached Files Attached Files
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  3. #3
    Registered User
    Join Date
    08-14-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Check if a string of text contains a word from a list, and specify which word that it

    Thank you Jacc! This worked perfectly :D

  4. #4
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,841

    Re: Check if a string of text contains a word from a list, and specify which word that it


    ''''''''''

+ 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. Check if last word in text string is lower case
    By cmb80 in forum Excel General
    Replies: 10
    Last Post: 11-13-2014, 04:32 PM
  2. [SOLVED] Find word in text string and return word adjacent to the left
    By eadamquinn in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-06-2014, 03:22 PM
  3. [SOLVED] Excel - Get the Word to the Left or Right of Another Word (text string)
    By sweetrevelation in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-22-2013, 01:36 PM
  4. Replies: 2
    Last Post: 08-05-2013, 04:45 PM
  5. [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
  6. Replies: 3
    Last Post: 09-28-2012, 11:12 AM
  7. [SOLVED] find word(s) within text string that matches a list of keywords
    By ecc34_11 in forum Excel General
    Replies: 10
    Last Post: 07-11-2012, 06:04 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