how do sum a column only if meets the criterias of 2 columns

L

Lorenzo

I would like to sum a column only if meets the criteria of one and another
column.
what formula should i be using? i was using sumif but this is for the
criteria of one column.
 
P

pdberger

Lorenzo --

Not sure from your question -- do you mean compute the sum of cells in rows
where two other criteria are met? Or compute a sum of all rows if two
criteria are met (otherwise, do something else).
 
D

Dave Peterson

If you're using xl2007, take a look at =sumifs() in excel's help.

In xl2003 and below:

=sumproduct(--(a1:a10="something"),--(b1:b10="another"),C1:c10)

Adjust the ranges to match--but you can't use whole columns (except in xl2007).

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail here:
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html
 

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