+ Reply to Thread
Results 1 to 7 of 7

How to return text string based on choice made in another cell

  1. #1
    Registered User
    Join Date
    05-23-2022
    Location
    Slovakia
    MS-Off Ver
    Office 365
    Posts
    4

    Lightbulb How to return text string based on choice made in another cell

    Hi.

    I am trying to accomplish the following, but I don't seem to find the right formula:

    Cell A1 contains one of the following: A1 or A2 or B1 or B2

    Cell A2 should contain a formula that generates specific text based on the A1 cell like this:
    If A1 contains "A1", cell A2 should read "Elementary Proficiency"
    If A1 contains "A2", cell A2 should read "Limited Working Proficiency"
    If A1 contains "B1", cell A2 should read "Professional Working Proficiency"
    If A1 contains "B2", cell A2 should read "Bilingual Proficiency"

    I would really appreciate your help.
    Last edited by AliGW; 05-23-2022 at 03:31 AM. Reason: Title changed - please think more carefully about your thread titles in future!

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,084

    Re: What formula would you use?

    One way:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Or you could use nested IFs, or the IFS function, or you could set up a table and use VLOOKUP.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,333

    Re: What formula would you use?

    Or LOOKUP:

    =IFERROR(LOOKUP(A1,{"A1","A2","B1","B2"},{"Elementary Proficiency","Limited Working","Professional Working Proficiency","Bilingual Proficiency"}),"")

    Administrative Note:

    Welcome to the forum.

    For future reference, your thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. As you are new here I will do it for you this time.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,084

    Re: How to return text string based on choice made in another cell

    Nested IFs:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-23-2022
    Location
    Slovakia
    MS-Off Ver
    Office 365
    Posts
    4

    Re: How to return text string based on choice made in another cell

    Thank you all for your fast answers! All of the formulas were helpful and saved my time.

    AliGW, thank you for welcoming me here and for changing the title for me, too - I will do my best to choose relevant titles in the future.

    P.S.: Because I am from Slovakia, my Excel does not accept e.g. commas - I had to replace them by semicolons all the way, because my Excel stated there was a mistake in my formula. That is just for the future reference - maybe if someday the advised formulas don't work for someone, there might be this kind of "silly" trivia.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,333

    Re: How to return text string based on choice made in another cell

    The comma and semi-colon issue crops up a lot here and we are well aware of it - we should have mentioned it, sorry.

    Glad to have helped.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,084

    Re: How to return text string based on choice made in another cell

    You're welcome. 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. Replies: 3
    Last Post: 03-24-2020, 07:27 AM
  2. Replies: 3
    Last Post: 01-10-2019, 09:34 AM
  3. Replies: 5
    Last Post: 02-16-2018, 06:50 AM
  4. Replies: 8
    Last Post: 09-22-2017, 05:41 AM
  5. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  6. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  7. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 PM

Tags for this Thread

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