+ Reply to Thread
Results 1 to 6 of 6

Simple IF formua for searching for a word in a cell

  1. #1
    Registered User
    Join Date
    02-29-2012
    Location
    Gold Coast, Australia
    MS-Off Ver
    Excel 2010
    Posts
    20

    Smile Simple IF formua for searching for a word in a cell

    Hi, Hoping you would be so kind as to help me with a basic formula that searches 1 cell for a certain word.
    If the cell contains the word then it will display the contents of the cell that is adjacent to it

    eg if cell A1 contains "its a beautiful day" and we are searching for the word "beautiful" then the contents of cell B1 will be displayed.
    if the rule is not met then nothing is displayed.

    Thanks so much in advance

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Simple IF formua for searching for a word in a cell

    Try:

    =IF(ISNUMBER(FIND("Beautiful", A1)), B1, "")

  3. #3
    Registered User
    Join Date
    02-29-2012
    Location
    Gold Coast, Australia
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Simple IF formua for searching for a word in a cell

    You are my superhero for today, thanks for the speedy response too as it was quite urgent

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Simple IF formua for searching for a word in a cell

    Perhaps you might also consider if the word to find should be case-sensitive or not
    Please Login or Register  to view this content.
    FIND() is case-sensitive, SEARCH() isn't
    Last edited by Marcol; 05-10-2012 at 05:06 AM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  5. #5
    Registered User
    Join Date
    02-29-2012
    Location
    Gold Coast, Australia
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Simple IF formua for searching for a word in a cell

    thanks, Marcol that is going to be useful as there are different cases/combinations. I hope you have a lovely day.

  6. #6
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Simple IF formua for searching for a word in a cell

    Please don't PM members with further questions, see the Forum Rules, Rule #4.

    Your PM
    Hi Marcol
    Thanks again, would you know if its possible to add to the formula so that it looks for a few words and not just one word.

    eg "beautiful" Or "Day" Or "Night" and if it contains ANY of those words then it reurns the value as it already is.
    It would be a great help
    See if this workbook helps.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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