+ Reply to Thread
Results 1 to 4 of 4

Adding multiple answers to an IF OR formula

  1. #1
    Registered User
    Join Date
    05-05-2014
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    8

    Adding multiple answers to an IF OR formula

    Hi guys,

    Your officially my Excel mentors I hope you dont mind!

    I am using the forumla =IF(OR(E2="COLD"),"33%")

    Which kindly changes my cell to show the text 33% if the text cold is entered into cell E2. Now what I would like to know, is if I can add multiple catch words to give alternate pre defined percentages. Such as warm and hot to give the respective answers as 66% and 99%

    Your help is always appriciated!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Adding multiple answers to an IF OR formula

    I would use VLOOKUP() for this.

    1st, create a small table, as shown below...

    A
    B
    C
    D
    E
    1
    Cold
    33%
    2
    Warm
    66%
    Cold
    3
    Hot
    100%
    4
    Steaming
    133%
    5
    6
    7
    33%


    A7=VLOOKUP($E$2,$A$1:$B$4,2,0)

    You could expand on this, such that if you had a value in F2 that you wanted to apply the % to...

    A7=F2*VLOOKUP($E$2,$A$1:$B$4,2,0)

    (Good thread title, btw)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    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,630

    Re: Adding multiple answers to an IF OR formula

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



    Regards, TMS
    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


  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Adding multiple answers to an IF OR formula

    Maybe this one

    =INDEX({"33%","66%","99%"},MATCH(A2,{"Gold","Silver","Bronze"},0))

    A
    B
    1
    Key Word %
    2
    Gold 33%
    3
    Silver 66%
    4
    Bronze 99%
    5
    Silver 66%
    6
    Gold 33%
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

+ 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. Adding amount of yes answers over multiple sheets
    By GregJordan38 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-11-2013, 09:45 AM
  2. Countif formula for multiple searches and answers in one cell
    By RTrac in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-11-2012, 05:00 PM
  3. [SOLVED] Formula help, multiple answers for IF function
    By bigdog08 in forum Excel General
    Replies: 4
    Last Post: 06-08-2012, 02:11 AM
  4. Formula to return multiple answers matching criteria
    By taketwo in forum Excel General
    Replies: 3
    Last Post: 12-06-2010, 12:34 PM
  5. [SOLVED] How to create a formula with multiple contraints and answers
    By torky1 in forum Excel General
    Replies: 6
    Last Post: 03-05-2005, 04:06 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