Results 1 to 6 of 6

Thread: SUM with Multiple Criteria

  1. #1
    Junior Member
    Join Date
    Dec 2011
    Posts
    5
    Rep Power
    0

    SUM with Multiple Criteria

    Hi There,
    I'm new to this site and would love some help with a SUMIFS formula.
    I want to add column "K" (which is m2) if column "A" = NSW and colomn "B" = land, build or demolish
    So 3 seperate criteria in column C.
    Any assistance would be much appreciated

  2. #2
    Member littleiitin's Avatar
    Join Date
    Aug 2011
    Posts
    90
    Rep Power
    14
    Hi Candygirl,

    Welcome to the board,

    You are applying multiple criteria in single column.. so It is better to use sumproduct:

    Use below formula: for Column C I have given my own criteria...Please change accordingly.


    Code:
    =SUMPRODUCT(--ISNUMBER(MATCH(B1:B5,{"Land";"Build";"Demolish"},0)),--(A1:A5="nsw"),--ISNUMBER(MATCH(C1:C5,{"abc";"def";"xxx"},0)),K1:K5)

  3. #3
    Junior Member
    Join Date
    Dec 2011
    Posts
    5
    Rep Power
    0
    Hi littleiitin,
    Thanks so much for your reply.
    I tried your formula and received a 0 value.
    I have attached an example.
    I would like to add D, if A = NSW, B = Build, Land or Demolish and C = A, B or C.
    Hope this makes sense.
    Thanks again.
    Attached Files Attached Files

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

    Try

    =SUMPRODUCT(--(A2:A289=F2),--ISNUMBER(MATCH(B2:B289,G2:G4,0)),--ISNUMBER(MATCH(C2:C289,H2:H4,0)),D2: D289)

    where

    F2 = NSW
    G2:G4 = Build,Land,demolish
    H2:H4 = A,B,C

    HTH
    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. #5
    Junior Member Haseeb A's Avatar
    Join Date
    Apr 2011
    Posts
    21
    Rep Power
    0
    Or use SUMIFS like,

    Code:
    =SUM(SUMIFS(D:D,A:A,"nsw",B:B,{"build";"land";"demolish"},C:C,{"a","b","c"}))
    Note: If first array separated by colon, then 2nd one should be be comma, If first array is separated by comma then 2nd should be colon.

    Or as Admin suggested use SUMIFS like, ARRAY entered.

    Code:
    =SUM(SUMIFS(D:D,A:A,F2,B:B,G2:G4,C:C,TRANSPOSE(H2:H4)))

  6. #6
    Junior Member
    Join Date
    Dec 2011
    Posts
    5
    Rep Power
    0
    Thanks Haseeb,
    I went with the first code and it worked perfectly!.
    Thanks very much.

Similar Threads

  1. Replies: 3
    Last Post: 05-23-2013, 11:17 PM
  2. Sum values based on multiple criteria
    By Jorrg1 in forum Excel Help
    Replies: 8
    Last Post: 01-07-2013, 03:04 PM
  3. Replies: 4
    Last Post: 08-11-2012, 10:50 PM
  4. SUM Value With Multiple Criteria In Same Column
    By MarkJohn in forum Excel Help
    Replies: 2
    Last Post: 05-18-2012, 07:52 AM
  5. Sum values based on multiple criteria
    By vmath in forum Excel Help
    Replies: 1
    Last Post: 05-07-2012, 08:53 AM

Tags for this Thread

Posting Permissions

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