Question

I have an Excel file that looks like this:

ZONES             Count                          Area 1 = (SUM OF ZONE COUNT)
------------------------------------------------------------------------------
1                 100                            1
2                 50                             2
3                 110                            5
4                 90                             7
5                 40                             
6                 10                             
7                 0                              
8                 80           

What I need to do is make (SUM OF ZONE COUNT) say 190 since 100+40+50+0 = 190. I've tried:

=SUMIFS(B3:B10, A3:A10, C3)

And it will return 100. When I try:

=SUMIFS(B3:B10, A3:A10, "="&C3:C6)

It returns 0.

I need to set the criteria to be a range instead of an individual cell.

Is this possible?

Was it helpful?

Solution

Try this version

=SUMPRODUCT(SUMIFS(B3:B10,A3:A10,C3:C6))

because the criteria range is four cells the SUMIFS function will return an "array" of four values - SUMPRODUCT is used to sum those four values

You can also use SUM but the formula needs to be "array entered", i.e.

=SUM(SUMIFS(B3:B10,A3:A10,C3:C6))

confirm with CTRL+SHIFT+ENTER

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top