+ Reply to Thread
Results 1 to 8 of 8

Multiple Criteria in IF arguments

  1. #1
    Registered User
    Join Date
    01-27-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    10

    Multiple Criteria in IF arguments

    What is the correct formula for satisfying multiple criteria in "IF" statements ie; two conditions are to be met before returning designated result data?
    eg; =IF(C4>T5ANDF7=D9,A12*I24,0)

  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
    53,048

    Re: Multiple Criteria in IF arguments

    Hi Hensgen and welcome to the forum

    you were almost there, try this...

    =IF(and(C4>T5,F7=D9),A12*I24,0)
    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 Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Multiple Criteria in IF arguments

    Try

    =IF(AND(C4>T5,F7=D9),A12*124,O)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Registered User
    Join Date
    01-27-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Multiple Criteria in IF arguments

    worked perfectly.......Much appreciated

    Thanks

  5. #5
    Registered User
    Join Date
    01-27-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Multiple Criteria in IF arguments

    Ok the below formula is working well, however I now need to add an independent formula "SUM(A4,B4)/2*M4" to the same cell to return either or both results, can I do this? =IF(AND(AJ12=TRUE,AH12=Data!$K$3),Data!L3,IF(AND(AJ12=TRUE,AH12=Data!$K$4),Data!L4,IF(AND(AJ12=TRUE,AH12=Data!$K$5),Data!L5,IF(AND(AJ12=TRUE,AH12=Data!$K$6),Data!L6,IF(AND(AJ12=TRUE,AH12=Data!$K$7),Data!L7,IF(AND(AJ12=TRUE,AH12=Data!$K$8),Data!L8,IF(AND(AJ12=TRUE,AH12=Data!$K$9),Data!L9,IF(AND(AJ12=TRUE,AH12=Data!$K$10),Data!L10,IF(AND(AJ12=TRUE,AH12=Data!$K$11),Data!L11,IF(AND(AJ12=TRUE,AH12=Data!$K$12),Data!L12,IF(AND(AJ12=TRUE,AH12=Data!$K$13),Data!L13,IF(AND(AJ12=TRUE,AH12=Data!$K$14),Data!L14,""))))))))))))+IF(AND(AJ12=TRUE,AI12=Data!$K$3),Data!L3,IF(AND(AJ12=TRUE,AI12=Data!$K$4),Data!L4,IF(AND(AJ12=TRUE,AI12=Data!$K$5),Data!L5,IF(AND(AJ12=TRUE,AI12=Data!$K$6),Data!L6,IF(AND(AJ12=TRUE,AI12=Data!$K$7),Data!L7,IF(AND(AJ12=TRUE,AI12=Data!$K$8),Data!L8,IF(AND(AJ12=TRUE,AI12=Data!$K$9),Data!L9,IF(AND(AJ12=TRUE,AI12=Data!$K$10),Data!L10,IF(AND(AJ12=TRUE,AI12=Data!$K$11),Data!L11,IF(AND(AJ12=TRUE,AI12=Data!$K$12),Data!L12,IF(AND(AJ12=TRUE,AI12=Data!$K$13),Data!L13,IF(AND(AJ12=TRUE,AI12=Data!$K$14),Data!L14,""))))))))))))

  6. #6
    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
    53,048

    Re: Multiple Criteria in IF arguments

    Hensgen, if this is the same question as what you are asking in this thread....

    http://www.excelforum.com/excel-form...same-cell.html

    Then please do not post duplicate questions

  7. #7
    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
    53,048

    Re: Multiple Criteria in IF arguments

    duplicate post deleted
    Last edited by FDibbins; 02-11-2013 at 05:14 PM.

  8. #8
    Registered User
    Join Date
    01-27-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Multiple Criteria in IF arguments

    it is, sorry just learning the whole Forum thing...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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