SUMIF based on 2 conditions

G

Guest

Is there a way to do SUMIF to sum a column of number based on meeting 2
independent conditions rather than 1. (i.e. checking independent values or
conditrions in 2 different cells.)
 
P

Paul Corrado

=SUMPRODUCT(("rangea"="condition1)*("rangeb"="condition2")*("range to sum"))

Note all ranges must contain the same number of rows or columns.

With two columns of criteria and one column of data

=SUMPRODUCT(A1:A10="One")*(B1:B10=5)*(C1:C10))
 
R

RagDyer

To answer your original question, yes, there is a *way*.
And that "way" is to *add* the SUMIF()'s.

=SUMIF(A1:A100,D1)+SUMIF(A1:A100,D2)
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


Is there a way to do SUMIF to sum a column of number based on meeting 2
independent conditions rather than 1. (i.e. checking independent values or
conditrions in 2 different cells.)
 

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