+ Reply to Thread
Results 1 to 5 of 5

Yes or No if specific words are found

Hybrid View

  1. #1
    Registered User
    Join Date
    10-23-2018
    Location
    Texas
    MS-Off Ver
    2016
    Posts
    3

    Yes or No if specific words are found

    so, i want to search a cell for the words "meals" or "breakfast". If it's found, I want to put Yes into the cell where the formula is. If not, no. Didn't think it would be this hard... lol

    This is what I have so far...
    =IF(ISNUMBER(SEARCH(OR("meals", "Breakfast") ,cellwiththestring)), "Yes", "No")

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Yes or No if specific words are found

    Welcome to the forum.

    You're close. Try this:
    Formula: copy to clipboard
    =IF(OR(ISNUMBER(SEARCH("meals",A1)),ISNUMBER(SEARCH("breakfast",A1))),"Yes","No")

    Replace A1 with the correct cell reference, obviously.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  3. #3
    Registered User
    Join Date
    10-23-2018
    Location
    Texas
    MS-Off Ver
    2016
    Posts
    3

    Re: Yes or No if specific words are found

    Quote Originally Posted by Aardigspook View Post
    Welcome to the forum.

    You're close. Try this:
    Formula: copy to clipboard
    =IF(OR(ISNUMBER(SEARCH("meals",A1)),ISNUMBER(SEARCH("breakfast",A1))),"Yes","No")

    Replace A1 with the correct cell reference, obviously.

    That worked perfectly! Thanks.

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Yes or No if specific words are found

    If your String is in A1 then

    =IF(AND(ISERROR(FIND("meal",LOWER(A1))),ISERROR(FIND("breakfast",LOWER(A1)))),"No","Yes")
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  5. #5
    Valued Forum Contributor jtakw's Avatar
    Join Date
    05-05-2018
    Location
    CA, USA
    MS-Off Ver
    2016
    Posts
    668

    Re: Yes or No if specific words are found

    Hi,

    Another way:

    Excel 2016 (Windows) 64 bit
    A
    B
    C
    1
    some meals Yes
    2
    no breakfast Yes
    3
    breakfast meals Yes
    4
    didn't eat anything No
    Sheet: Sheet118

    Excel 2016 (Windows) 64 bit
    C
    1
    =IF(ISNUMBER(LOOKUP(2,1/SEARCH({"meals","breakfast"},A1))),"Yes","No")
    Sheet: Sheet118

+ 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] counting occurrence of specific words in another group of words
    By kh@horsemanship101.com in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-02-2021, 07:33 PM
  2. [SOLVED] Deleting Rows where multiple words are found
    By ScottyZ92 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-09-2015, 01:21 PM
  3. how can i copy/paste the word which is found during search in the current row wise
    By baig123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-16-2014, 02:55 AM
  4. Replies: 15
    Last Post: 10-12-2014, 08:53 AM
  5. [SOLVED] looking formula for Extract Specific WORDs in existing LONG Words
    By santosh226001 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-07-2013, 08:21 AM
  6. Looking for VBA that will search for a list of words and add a logo if found
    By kmckie in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-29-2012, 06:48 AM
  7. move data/row when certain words are found in cell
    By skyeye519@yahoo.com in forum Excel General
    Replies: 1
    Last Post: 01-27-2005, 07:06 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