Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: IF Function with Multiple Criteria

  1. #11
    Member
    Join Date
    Apr 2011
    Posts
    69
    Rep Power
    14
    No still it does not work for last formula where it is equal to 14 and it is excluded in first match, returns 0.
    ----
    excel_learner
    (Using XL 2007 & 2010)

    -------Learning never stops!

  2. #12
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,123
    Rep Power
    10
    Hi

    Can you attach a sample workbook with some dummy values along with expected results ?
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

  3. #13
    Member
    Join Date
    Apr 2011
    Posts
    69
    Rep Power
    14

    IF Function with Multiple Criteria

    sample is attached and hope i have made it clear.
    Attached Files Attached Files
    ----
    excel_learner
    (Using XL 2007 & 2010)

    -------Learning never stops!

  4. #14
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,123
    Rep Power
    10
    Hi

    I think this is the formula you want.

    =IF(AND(ISNA(MATCH(A3,pc_cc,0)),ISNA(MATCH(C3,coun ,0))),IF(AND(A3<>14,B3>=$E$1,B3<=$F$1),(D3*2065375 0)/172884227,IF(AND(A3=14,B3>=$E$1,B3<=$F$1),(D3*1500 30)/6083342,0)),0)

    and if you evaluate this formula

    first it checks

    AND(ISNA(MATCH(A3,pc_cc,0)),ISNA(MATCH(C3,coun,0)) )

    if it evaluates TRUE, the next step

    IF(AND(A3<>14,B3>=$E$1,B3<=$F$1)

    .. and if it evaluates TRUE, then it calculates (D3*20653750)/172884227

    or if it evaluates FALSE, then evaluates this one.. IF(AND(A3=14,B3>=$E$1,B3<=$F$1)

    If it TRUE, (D3*150030)/6083342, otherwise 0

    Is it what you are after ?

    if not, give me the cell values for E3:E18.
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

  5. #15
    Member
    Join Date
    Apr 2011
    Posts
    69
    Rep Power
    14

    IF Function with Multiple Criteria

    I have attached sample data with required values;

    Kindly see.
    Attached Files Attached Files
    ----
    excel_learner
    (Using XL 2007 & 2010)

    -------Learning never stops!

  6. #16
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,123
    Rep Power
    10
    Hi,

    In E7, this ISNA(MATCH(A7,pc_cc,0)) returns FALSE.
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

  7. #17
    Member
    Join Date
    Apr 2011
    Posts
    69
    Rep Power
    14
    Ok, any way out to get correct values. But this works fine if I dont put the second match which excludes coun.
    ----
    excel_learner
    (Using XL 2007 & 2010)

    -------Learning never stops!

Similar Threads

  1. Replies: 7
    Last Post: 05-15-2013, 02:56 PM
  2. Vlookup with multiple criteria
    By patsir in forum Excel Help
    Replies: 7
    Last Post: 08-27-2012, 11:15 AM
  3. Replies: 4
    Last Post: 08-11-2012, 10:50 PM
  4. Count with Multiple Criteria
    By candygirl in forum Excel Help
    Replies: 3
    Last Post: 12-11-2011, 07:02 PM
  5. Lookup on Multiple Criteria
    By ramakrishnan in forum Excel Help
    Replies: 4
    Last Post: 09-15-2011, 10:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •