+ Reply to Thread
Results 1 to 4 of 4

If cell contains specific text, return that text

  1. #1
    Registered User
    Join Date
    11-18-2011
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2016
    Posts
    31

    If cell contains specific text, return that text

    How would I pull only a specific word from a text cell? If you see my example, in one column I have various job titles. If A2 contains "Manager", then in B2 return "Manager. If A1 contains "Coordinator", return "Coordinator. Etc.

    Excel Forum.jpg

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: If cell contains specific text, return that text

    How many different words are you looking for?

    Make a list of the keywords you're looking for, in say E1:E5 for example.

    Then use this to find those keywords in the string in A1
    =IFERROR(LOOKUP(2^15,SEARCH(E$1:E$5,A1),E$1:E$5),"no keywords found")


    Note, there CANNOT be any blanks in your list of keywords in E1:E5

  3. #3
    Registered User
    Join Date
    11-18-2011
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2016
    Posts
    31

    Re: If cell contains specific text, return that text

    Perfect! Thank you!

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: If cell contains specific text, return that text

    You're welcome.

    A couple other notes about that formula.
    It's NOT case senstive, change Search to Find if you want it to be case sensitive.
    If there are 2 or more of the keywords found in the string, it returns the one that is listed last (furthest down) in the list E1:E5

+ 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] If a cell contains a specific text than return a value
    By dcdeez in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 06-04-2013, 08:31 AM
  2. [SOLVED] Help to return only first 12 characters when a cell contains specific text
    By ports83 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-25-2012, 10:30 PM
  3. [SOLVED] Find Specific Text in Text String and Return Value in Adjacent Column
    By watchouse in forum Excel General
    Replies: 2
    Last Post: 07-11-2012, 03:53 PM
  4. Replies: 3
    Last Post: 06-20-2012, 07:16 AM
  5. Select cell containing specific text &return value from another ce
    By plf100 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-16-2005, 10:00 AM

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