Closed Thread
Results 1 to 14 of 14

SUMIF Multiple Conditions

  1. #1
    Registered User
    Join Date
    03-17-2009
    Location
    Phoenix
    MS-Off Ver
    Excel 2003
    Posts
    4

    SUMIF Multiple Conditions

    Im trying to have a formula look at two diferent columns and if they meet the criteria add the third column.

    I tried using sumproduct but It wont give me anything but error messages or a zero.

    Looks like this
    =SUMPRODUCT(A:A="Stewart",(G:G="Fiduciary"),C:C)

    Need it to say:
    if column A = Stewart and Column B = Fiduciary then add up the amount in Column C

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: SUMIF Multiple Conditions

    Pre XL2007 you can't use entire column references nor should you want to, keep ranges to a minimum in terms of size

    =SUMPRODUCT(--(A1:A1000="Stewart"),--(G1:G1000="Fiduciary"),C1:C1000)

  3. #3
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127

    Re: SUMIF Multiple Conditions

    First, SUMPRODUCT does not work on entire column references. If you want to reference the entire column, try A1:A65536.

    Your formula should look like this:

    Please Login or Register  to view this content.
    Try that and report back

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: SUMIF Multiple Conditions

    BigBas, your point re: entire column references holds true only up to XL2007, also using 65536 won't help, you would need to use 65535 (XL will convert A1:A65536 to A:A) but as stated you should not use large ranges with Arrays full stop.

  5. #5
    Registered User
    Join Date
    03-17-2009
    Location
    Phoenix
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: SUMIF Multiple Conditions

    Here's my exact formula. It returns a zero no matter what I do.

    =SUMPRODUCT((DataQTD!A1:A10000="Charles Stewart"),(DataQTD!G1:G10000="Fiduciary"),DataQTD!C1:C10000)

    Thanks for your help

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: SUMIF Multiple Conditions

    Maybe this is a good moment to ask

    Is there any way to put something like instead of A:A

    A2:A(count....) so range would change as there a datas...

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: SUMIF Multiple Conditions

    Quote Originally Posted by Cfitzwater View Post
    Here's my exact formula. It returns a zero no matter what I do.

    =SUMPRODUCT((DataQTD!A1:A10000="Charles Stewart"),(DataQTD!G1:G10000="Fiduciary"),DataQTD!C1:C10000)

    Thanks for your help
    You've not used the formula I provided... note the double unary operator (--), used to coerce Logicals to Integer (True = 1, False = 0)

    =SUMPRODUCT(--(DataQTD!A1:A10000="Charles Stewart"),--(DataQTD!G1:G10000="Fiduciary"),DataQTD!C1:C10000)

    you can also use

    =SUMPRODUCT((DataQTD!A1:A10000="Charles Stewart")*(DataQTD!G1:G10000="Fiduciary")*(DataQTD!C1:C10000))

    But I am of the opinion that double unary is preferable where ranges referenced are of equal dimension.
    Last edited by DonkeyOte; 03-17-2009 at 02:59 PM.

  8. #8
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: SUMIF Multiple Conditions

    Quote Originally Posted by zbor View Post
    Maybe this is a good moment to ask

    Is there any way to put something like instead of A:A

    A2:A(count....) so range would change as there a datas...
    zbor, please do not hijack threads - please create your own
    (yes there is an answer but create your own thread first)

  9. #9
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127

    Re: SUMIF Multiple Conditions

    Quote Originally Posted by DonkeyOte View Post
    BigBas, your point re: entire column references holds true only up to XL2007, also using 65536 won't help, you would need to use 65535 (XL will convert A1:A65536 to A:A) but as stated you should not use large ranges with Arrays full stop.
    True on all counts...

  10. #10
    Registered User
    Join Date
    03-17-2009
    Location
    Phoenix
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: SUMIF Multiple Conditions

    Beautiful! That worked.... thanks!

  11. #11
    Registered User
    Join Date
    10-18-2011
    Location
    uae
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: SUMIF Multiple Conditions

    i have some data to moniter its daily transaction

    Date wise+item code wise sum
    project Wise +item code wise sum

    itemRegister
    Date Project # Item Code Description Unit QtyRec Qty Issue

    Summery Report

    Item Code Description Unit Total QtyRec Total Qty Issue

    01/10/11
    15/10/11
    Item Code Description Unit Total QtyRec Total Qty Issue


    i am using sumproduct funcation but it slow down the work sheet while calculation.

    Kindly gudie how to do all this .

    noor

  12. #12
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: SUMIF Multiple Conditions

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.

  13. #13
    Registered User
    Join Date
    10-18-2011
    Location
    uae
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: SUMIF Multiple Conditions

    Quote Originally Posted by arthurbr View Post
    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.
    i try to post new but it mistakenly posted here. but try to reply i realy need resolve this issue

  14. #14
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: SUMIF Multiple Conditions

    Please start a new thread - Thread closed

Closed 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