+ Reply to Thread
Results 1 to 3 of 3

Pick one out of several values in a text cell

  1. #1
    Registered User
    Join Date
    08-13-2013
    Location
    Cologne, Germany
    MS-Off Ver
    Excel 2010
    Posts
    10

    Pick one out of several values in a text cell

    I have a file where Column A is a text. It is a free text, but no matter what the text is, it will always have XX or YY or ZZ values inside. And it always is going to be either one of those 3 values – never 2 or all 3 together.

    What formula/function should I use in order to show in a separate column that if column A contains:
    XX value, the returned result will be Bla-Bla.
    YY should return boom-boom
    ZZ should return bam-bam.

    Thank you, guys!

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Pick one out of several values in a text cell

    What are the values for XX YY ZZ?
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Pick one out of several values in a text cell

    If you mean XX, YY, and ZZ literally, try the formula below:

    =IF(IFERROR(FIND("XX",A1),0)>0,"Found XX",IF(IFERROR(FIND("YY",A1),0)>0,"Found YY",IF(IFERROR(FIND("ZZ",A1),0)>0,"Found ZZ","Nothing Found")))

    Edit: I altered my initial post to account for errors and assume your text is in A1
    Last edited by CAntosh; 04-22-2016 at 11:29 AM. Reason: initially posted wrong formula

+ 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. Text configuration – how can I tell a cell to pick up a phrase
    By Sarah Christian in forum Excel General
    Replies: 3
    Last Post: 08-15-2013, 10:40 PM
  2. pick next blank cell in range to add some values.
    By cdafonseca in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-26-2013, 03:15 PM
  3. Replies: 0
    Last Post: 02-26-2013, 05:08 AM
  4. Replies: 1
    Last Post: 06-11-2008, 04:06 PM
  5. [SOLVED] Create a pick list to use to go to a text cell in Excel
    By Pegita in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  6. [SOLVED] Create a pick list to use to go to a text cell in Excel
    By Pegita in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  7. [SOLVED] Create a pick list to use to go to a text cell in Excel
    By Pegita in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-23-2005, 03:05 PM
  8. Replies: 1
    Last Post: 01-13-2005, 06:02 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