+ Reply to Thread
Results 1 to 4 of 4

3 options, want 3 different things returned with IF formula

  1. #1
    Registered User
    Join Date
    09-28-2022
    Location
    London
    MS-Off Ver
    10
    Posts
    3

    3 options, want 3 different things returned with IF formula

    Hi all, I came across a previous thread here that partly answered exactly what I was looking for, they wanted to know how to use if to return certain criteria.

    I have codes in a column that start with 1 of 3 letters, if they start with "e" I want say, "eggs" returned, if they start with I, I want say, "India" returned and if they start with V I want say "Voice" returned, is there a way I can extend this formula to have all 3 options covered?
    so, what I learned from the previous thread and worked perfectly was that this would work for me for the first condition -

    =if(left(a1,1)="E","eggs","") then how do I extend this to cover the other two possibilities?

    Thanks so much in advance, glad I came across this thread & forum!

  2. #2
    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
    80,856

    Re: 3 options, want 3 different things returned with IF formula

    IF is not actually the best option here - avoid function names in thread titles.

    Try this:

    =LOOKUP(LEFT(A1,1),{"e","i","v"},{"eggs","India","voice"})

    Administrative Note:

    Members will tailor the solutions they offer to the version (NOT release number) of Office (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this. Thanks.
    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.

  3. #3
    Registered User
    Join Date
    09-28-2022
    Location
    London
    MS-Off Ver
    10
    Posts
    3

    Re: 3 options, want 3 different things returned with IF formula

    That has worked a treat, thanks so much!

  4. #4
    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
    80,856

    Re: 3 options, want 3 different things returned with IF formula

    Please update your forum profile as I requested. Do this NOW.

    Glad to have helped.

    If that takes care of your original question, please choose 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.

+ 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 to compare a cell to another & do one of two things
    By bellaRainie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-21-2022, 07:49 PM
  2. [SOLVED] blank rows being returned, dates being returned twice
    By Kanuck in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-12-2020, 12:58 PM
  3. [SOLVED] Formula if cell contains one of many things, and those "things" contain multiple "items"
    By JulianS96 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-28-2020, 07:08 AM
  4. Issued & Returned - Identify Total Not Returned
    By ArchGIS in forum Excel General
    Replies: 6
    Last Post: 05-15-2019, 06:29 AM
  5. [SOLVED] Can't find corrext Index Match formula where different options have same sub-options
    By Ochimus in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-27-2016, 06:59 AM
  6. [SOLVED] Formula not executing, just shows formula. I tried the obvious things
    By simbot in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-08-2013, 01:58 AM
  7. Excel 2007 : Formula Counting Things At Random
    By Steveo5556 in forum Excel General
    Replies: 17
    Last Post: 07-11-2011, 03:50 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