Sum if is only calculating one column

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to calculate more data in more than one column with the sumif
function but it only adds up data in the first column. The formula I have is

=SUMIF($A$10:$A$12,$A1,B10:D12)

For some reason it only adds up data in column b and not columns b to d as
expected.

Is this unique to Excel 2003 as I believe I used to be able to do this in
older versions.
 
Not unique to 2003, all versions of sumif has this, one possible way

=SUMPRODUCT((A10:A12=A1)*(B10:D12))
 
I am trying to calculate more data in more than one column with the sumif
function but it only adds up data in the first column. The formula I have is

=SUMIF($A$10:$A$12,$A1,B10:D12)

For some reason it only adds up data in column b and not columns b to d as
expected.

Is this unique to Excel 2003 as I believe I used to be able to do this in
older versions.


{=SUM(($A$10:$A$12=A1)*(B10:D12))}

Array formula entered with CTRL SHIFT & Enter will achieve what you
want.


__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top