• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Sum with criteria range

blcexcel

Member
I have another tricky formula I need help with. I have attached an example. I'm trying to solve for a total in cell G11. It needs to sum the locations listed in range G7..G9 for the Sub# in cell G5. It is the multiple locations as a criteria that is giving me trouble. Note: normally I would concatenate Sub & Location for a lookup but there are reasons I don't want to do that. This is a simplified example. Thanks in advance!
 

Attachments

  • sum with criteria range example.xlsx
    9.6 KB · Views: 9
@blcexcel

Other option is to do simple addition of multiple SUMIFS. Might be better suited if you need to hand off the sheet for someone else to manage.

=SUMIFS(C5:C34,A5:A34,G5,B5:B34,G7)+SUMIFS(C5:C34,A5:A34,G5,B5:B34,G8)+SUMIFS(C5:C34,A5:A34,G5,B5:B34,G9)

Array formula is simply combining above by nesting it in SUM(Array).

See link for detailed explanation and variations of SUMIFS with OR condition.
http://www.excel-university.com/sumifs-with-or/
 
Back
Top