Sum column if multiple criteria are met in adjacent cells

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a table like this:

Column_A Column_B Column_C
03 S 100
03 T 100
02 S 100
02 T 100
04 S 100
04 T 100

I want to sum the cells in C only when A="03" and B="S". In this case, I
would expect the total to be 100.
 
Assume your values are in the range A1:A10, B1:B10 and C1:C10:

=SUMPRODUCT(--(A1:A10="03"),--(B1:B10="S"),C1:C10)
 
Hi,

Try this with array formulas (Ctrl+Shift+Enter):

SUM(IF((A5:A7="03")*(B5:B7="A"),C5:C7))

Regards,

Ashish Mathur
 

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

Back
Top