SUMIF summing multiple columns

J

juliejg1

I have the following formula in cell E9:
=SUMIF(Details!$X$6:$X$167,">"&0.3,Details!$AF$6:$AG$169)

It seems there is a problem with the SUMIF summing more than one column
(AF6:AG169). Any suggestions?
 
D

David Biddulph

What Don meant by "167 169" is that in SUMPRODUCT the arrays must be the
same length. Yours are not, as one has 162 rows and the other has 164.
 
P

Peo Sjoblom

It doesn't really matter since the OP is using SUMIF and wants to sum 2
columns (AF:AG) it will only work for one. This will work

=SUMPRODUCT((Details!$X$6:$X$167>0.3)*(Details!$AF$6:$AG$167))


and that is where same sized arrays are important. SUMIF will gladly swallow
it


--


Regards,


Peo Sjoblom
 
J

juliejg1

Thank you!

Peo Sjoblom said:
It doesn't really matter since the OP is using SUMIF and wants to sum 2
columns (AF:AG) it will only work for one. This will work

=SUMPRODUCT((Details!$X$6:$X$167>0.3)*(Details!$AF$6:$AG$167))


and that is where same sized arrays are important. SUMIF will gladly swallow
it


--


Regards,


Peo Sjoblom
 

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

Top