+ Reply to Thread
Results 1 to 6 of 6

Find if a text value contains one of the keywords

  1. #1
    Forum Contributor
    Join Date
    01-15-2013
    Location
    London
    MS-Off Ver
    Excel 2003, 2007, 2010, 2019
    Posts
    436

    Find if a text value contains one of the keywords

    Hi, everyone,

    I have 5 keywords in cells A1:A5,

    Quarter
    Semi
    Final
    Regular
    Interim

    Now I want to test if cell B1 contains one of the 5 keywords. Cell B1 is a text which is something like FinalABC. Because FinalABC contains the keyword Final, it should return true.

    Is it possible to test this in Excel? Otherwise, I have to do this in VBA.

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Find if a text value contains one of the keywords

    This will find the matching word:

    =LOOKUP(2,1/ISNUMBER(SEARCH(A1:A5,B1)),A1:A5)

    But if you only need yes/no:

    =IF(SUMPRODUCT(--ISNUMBER(SEARCH(A1:A5,B1))),"Yes","No")
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Forum Contributor
    Join Date
    01-15-2013
    Location
    London
    MS-Off Ver
    Excel 2003, 2007, 2010, 2019
    Posts
    436

    Re: Find if a text value contains one of the keywords

    Many thanks, daffodil11. It worked nicely

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Find if a text value contains one of the keywords

    No problem, glad I could help.

  5. #5
    Registered User
    Join Date
    12-09-2019
    Location
    India
    MS-Off Ver
    2016
    Posts
    27

    Re: Find if a text value contains one of the keywords

    If the Cell B1 contains multiple keywords, how to use the formula to extract multiple keywords

  6. #6
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: Find if a text value contains one of the keywords

    To extract multiple keywords:

    If you are using Excel 2021 or newer in the meantime please try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by HansDouwe; 02-22-2024 at 01:09 AM.

+ 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] HDI - Return multiple keywords in a text column based on a set of available keywords
    By zneiley in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-25-2013, 01:32 PM
  2. [SOLVED] Find word(s) within text string that matches a list of keywords - NOT case sensitive
    By gbm222 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2013, 02:15 AM
  3. Find multiple keywords/text and copy entire row into new spreadsheet?
    By sking333 in forum Access Tables & Databases
    Replies: 2
    Last Post: 08-21-2012, 11:35 PM
  4. Replies: 0
    Last Post: 07-11-2012, 06:05 AM
  5. [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
  6. [SOLVED] IF cant find selection of multiple keywords return "text"
    By Eagle75au in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-30-2012, 02:52 AM
  7. [SOLVED] find first word within text string that matches from a list of keywords
    By exclusivebiz in forum Excel General
    Replies: 5
    Last Post: 04-13-2012, 03:29 PM
  8. Replies: 6
    Last Post: 04-06-2012, 04:18 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