sumif

J

Judith

In the "sum range" part of the sumif formula, I want to sum multiple columns.
Only the first column is being recognized. Can it be done?
 
J

Jacob Skaria

With SUMIF() You cannot. Instead use SUMPRODUCT() or SUMIFS() available with
2007

To SUM
--For a single criteria SUM you can use
=SUMIF(A:A,criteria,BB)

--When you have multiple criteria use SUMPRODUCT()
=SUMPRODUCT((A1:A10=criteria1)*(B1:B10=criteria2),C1:C10)

If you are using Excel 2007 you can use SUMIFS() to acheive the same result
=SUMIFS(C1:C10,A1:A10,criteria1,B1:B10,criteria2)

'or with cells F1 and F2 holding the criteria
=SUMIFS(C1:C10,A1:A10,F1,B1:B10,F2)

If this post helps click Yes
 
T

T. Valko

Try something like this:

A1:A10 = criteria range
B1:D10 = sum range

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

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