+ Reply to Thread
Results 1 to 9 of 9

If statement for multi criteria

  1. #1
    Forum Contributor
    Join Date
    12-06-2015
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    513

    If statement for multi criteria

    Dear all

    How should i amend the following formula
    when i want to say , if the E7 is "adult", "SIC-Adult", "Child","SIC-Child" , then $F7 ( no only "Adult"

    =IFERROR(IF($E7="adult",$F7,$F7/H$4),"")

    How can i do it ?

    Eric

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: If statement for multi criteria

    That is a bit confusing! Try listing yoour criteria and results so that they make more sense, something like.

    E7="Adult", result =$F7
    E7="SIC-Adult" result =$G7
    etc..

    Please list all possible combinations.

  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,425

    Re: If statement for multi criteria

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    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 Contributor
    Join Date
    12-06-2015
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    513

    Re: If statement for multi criteria

    Dear Jason

    The selection for user are :

    Coach
    Adult
    Child
    SIC-Adult
    SIC-Child

    They can select all these option

    The return should go to F7. If those have been selected, it does not need to be divided by H4.
    If user select "Coach"the return should be divided by H4

    Hope that is clear

    ERic

  5. #5
    Forum Contributor
    Join Date
    03-17-2010
    Location
    karachi
    MS-Off Ver
    Excel 2003
    Posts
    113

    Re: If statement for multi criteria

    Mab be.
    =IFERROR(IF($E7="adult",$F7,$F7&H$4),"")

  6. #6
    Forum Contributor
    Join Date
    12-06-2015
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    513

    Re: If statement for multi criteria

    Can i upload the file for your view

    the formular is in Tab - Calculation
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: If statement for multi criteria

    The suggesiton in post 3 looks as if it has already answered your question, but if not then maybe this one.

    =F7/IF(E7="Coach",H7,1)

  8. #8
    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,425

    Re: If statement for multi criteria

    @jason.b75: your solution seems most appropriate if there only the 5 options and "Coach" is the only odd one out. That is information we didn't have in the OP.

  9. #9
    Forum Contributor
    Join Date
    12-06-2015
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    513

    Re: If statement for multi criteria

    Dear TMS

    I tried your formula , it returns the correct number but it does not prompt F7 , instead goes F7/H4
    =IFERROR(IF(OR($E7="adult",$E7="SIC-adult",$E7="child",$E7="SIC-child"),$F7,$F7/H$4),""

    Anything wrong

    Thanks

+ 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] Need a multi-conditional index match statement with > and < criteria
    By tankgrrlz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-07-2016, 11:30 AM
  2. [SOLVED] Regular formula or array for multi colum multi criteria?
    By scaffdog845 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-25-2016, 01:40 PM
  3. New & Lost: Multi Criteria & Multi Row INDEX, SMALL, MATCH...
    By morleyp in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-23-2014, 12:40 PM
  4. Large multi criteria / Vlookup/Choose Multi criteria
    By deanusa in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-20-2014, 01:48 AM
  5. SUMIFS for Multi set of colums & multi criteria
    By Harish Kumar M in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-02-2014, 10:11 PM
  6. Count it multi criteria accross multi cells
    By jfoley5197 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-10-2013, 03:42 PM
  7. [SOLVED] IF statement with multi criteria returns "#N/A"
    By ms.excelnewbie in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 12-06-2012, 12:38 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