+ Reply to Thread
Results 1 to 4 of 4

If Error-If Search function to find a word in a range of cells (partial string match)

  1. #1
    Registered User
    Join Date
    07-25-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    4

    If Error-If Search function to find a word in a range of cells (partial string match)

    I need to find if the words in column A are anywhere in the sentences within column D. If for example the word "wine" is in column D, I need it to spit back "yes". The problem is it's not an exact cell match from column A to column D. Column D has sentences, not single words. So I need to find "wine" in the sentences.

    Attached is an example.

    Thank you in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: If Error-If Search function to find a word in a range of cells (partial string match)

    The formula will give you true and false but you can use IF function to convert to yes or no. In B2, enter =NOT(ISERR(SEARCH(A2,$C$2:$C$10))) then fill the formula.

  3. #3
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: If Error-If Search function to find a word in a range of cells (partial string match)

    You could use MATCH with wildcard,

    =IF(ISNUMBER(MATCH("*"&A2&"*",C:C,0)),"Yes","No")
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: If Error-If Search function to find a word in a range of cells (partial string match)

    Another possibility is to use COUNTIF with wildcards like this

    =IF(COUNTIF(C:C,"*"&A2&"*"),"Yes","No")
    Audere est facere

+ 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. Search variable number of sheets to find partial match on name
    By carolmwondering in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-19-2014, 01:44 PM
  2. [SOLVED] VBA function to search partial string and return value
    By gorelordz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-28-2014, 11:48 AM
  3. [SOLVED] Partial String Match in COUTIF Criteria Range?
    By amazinglazers in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-21-2013, 09:58 AM
  4. [SOLVED] Vlookup, Match (Search or Find) partial string within string in a Cell
    By dluhut in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-28-2013, 12:40 PM
  5. [SOLVED] Search for a partial string match and cycle through matching results
    By kamelkid2 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-08-2013, 08:27 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