Share via

SUMIF rectangle range

Anonymous
2013-05-29T06:40:27+00:00

Hi,

I am trying use the sumif function on a rectangular range as opposed to a range of single column. Formulae seems to be working only for one column.

In the below example, I need to get the total for Jan.  I used the formulae =SUMIF(B11:D15,B11,C11:D15) and the answer is 225 and not 675.

Appreciate any help - thanks.

SS

s1 s2
JAN 100 200
JAN 125 250
FEB 1100 2200
FEB 368 736
FEB 25 50
Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2013-05-29T07:32:19+00:00

SUMIF() and SUMIFS() were not intended to sum multiple columns. Try this SUMPRODUCT() formula instead,

=SUMPRODUCT((B11:B15=B11)*C11:D15)

SUMIF function
SUMIFS function
SUMPRODUCT function

Was this answer helpful?

0 comments No comments

Answer accepted by question author

Anonymous
2013-05-29T07:31:17+00:00

Use sumproduct formula in case you need to get sum of more than 1 column

=SUMPRODUCT((B11:B15=B11)*C11:D15)

Was this answer helpful?

0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2013-05-29T18:29:20+00:00

    Many thanks to all !

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2013-05-29T07:37:54+00:00

    You could use =SUMIF(B11:B15,B11,C11:C15)+SUMIF(B11:B15,B11,D11:D15), alternatively use the array formula:

    =SUM(IF(B11:B15=B11,C11:D15))

    Press Ctrl+Shift+Enter to enter the formula as an array formula.

    Was this answer helpful?

    0 comments No comments