+ Reply to Thread
Results 1 to 5 of 5

Formula - If find 3 possible words within a cell, return the word found?

  1. #1
    Forum Contributor
    Join Date
    12-29-2012
    Location
    usa
    MS-Off Ver
    Excel 2016
    Posts
    325

    Formula - If find 3 possible words within a cell, return the word found?

    So I want to search in a cell if it contains one of the following words: yearly, monthly, quarterly. If it finds yearly, I would want the formula to return YTD, if it finds Monthly I would want to return MTD, and if it finds quarterly I would want to return QTD.

    I thought it would be a simple nested if, but maybe I'm wrong?

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    06-12-2006
    Location
    Portugal
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    212

    Re: Formula - If find 3 possible words within a cell, return the word found?

    Try this:

    Please Login or Register  to view this content.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Formula - If find 3 possible words within a cell, return the word found?

    Or...

    =iferror(LOOKUP(1000,SEARCH({"Yearly","Monthly","Quarterly"},A2),{"YTD","MTD","QTD"}),"")
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Contributor
    Join Date
    12-29-2012
    Location
    usa
    MS-Off Ver
    Excel 2016
    Posts
    325

    Re: Formula - If find 3 possible words within a cell, return the word found?

    Quote Originally Posted by Glenn Kennedy View Post
    Or...

    =iferror(LOOKUP(1000,SEARCH({"Yearly","Monthly","Quarterly"},A2),{"YTD","MTD","QTD"}),"")
    Works perfectly! Thanks so much!

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Formula - If find 3 possible words within a cell, return the word found?

    You're welcome and thanks for the Rep.

+ 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] Formula Help for Array Word Search to find key words and put in adjacent cell
    By tains in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-25-2017, 06:36 PM
  2. Replies: 5
    Last Post: 01-14-2016, 12:04 AM
  3. [SOLVED] looking to find 1 of 2 words in a cell in column B and return the word found in the same
    By Rob69mfj in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-27-2014, 01:17 PM
  4. A word search to return words found in given fields
    By JonBrett in forum Excel General
    Replies: 2
    Last Post: 03-28-2014, 10:16 PM
  5. Which function to find a words in word string and return them
    By majo. in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-27-2013, 09:08 AM
  6. [SOLVED] Find and return a word, in a list of words, that is in a single cell.
    By nicholas.jacka in forum Excel General
    Replies: 2
    Last Post: 03-07-2012, 05:13 AM
  7. Using "Find" to return results if a word is found within multiple words in a cell
    By pylauzier in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-01-2011, 01:37 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