Sumif where sum range is more than one column?


J

John Mitchell

I am familiar with using SUMIF to conditionally sum a column of data:

=SUMIF(A1:A10,"YES",B1:B10)

To conditionally sum data in columns B, C, and D, I can:

=SUMIF(A1:A10,"YES",B1:B10)+SUMIF(A1:A10,"YES",C1:C10)+SUMIF(A1:A10,"YES",D1:D10)

Is there is a more concise way of doing this with an array formula?

Regards, John M
 
Ad

Advertisements

P

Peo Sjoblom

One way

=SUMPRODUCT((A1:A10="Yes")*(B1:D10))

--
Regards,

Peo Sjoblom

(No private emails please)
 

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