+ Reply to Thread
Results 1 to 8 of 8

combine SUMIF and SUMPRODUCT

  1. #1
    Registered User
    Join Date
    10-11-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    13

    combine SUMIF and SUMPRODUCT

    I need to combine a IF/SUMIF and SUMPRODUCT statement. My current statement states: =SUMPRODUCT(H309:H606,P309:P606). I need the value to be returned only if column a = "ABC".

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: combine SUMIF and SUMPRODUCT

    Try...

    =IF(A309="ABC",SUMPRODUCT(H309:H606,P309:P606),"")
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    10-11-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: combine SUMIF and SUMPRODUCT

    Thanks for the response, how do I use this same formula for a range of cells? If A309:A606 contains the initials "ABC", then SUMPRODUCT(H309:H606,P309:P606), otherwise 0.

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: combine SUMIF and SUMPRODUCT

    In the range, A309:A606, what are you looking for? One cell out of all those has "ABC" or all?

  5. #5
    Registered User
    Join Date
    10-11-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: combine SUMIF and SUMPRODUCT

    Multiple cells in the range could have ABC.

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: combine SUMIF and SUMPRODUCT

    So, if at least one of those cells has "ABC" then apply the sumproduct...

    =IF(COUNTIF($A$309:$A$606,"ABC"),SUMPRODUCT(H309:H606,P309:P606),"")

  7. #7
    Registered User
    Join Date
    10-11-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: combine SUMIF and SUMPRODUCT

    Perfect, thank you.

  8. #8
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: combine SUMIF and SUMPRODUCT

    You are very welcome. Thanks for the feedback.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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