Sumproduct?

J

jc9972003

Hello
I need help ading a range of columns if it meets 2 criteria.

I need a formula that will add number found for example in column C D E If it meets 2 citeria on A&B
Example
A B C D E
3/15/2013 Colorado 2 4 1
3/15/2013 KS 1 5 0
3/16/2013 Colorado 9 1 2


Answer in this case would be:
3/15/2013 Colorado 7

Basically I need a formula that will add across if it meets 2 criteria.
Thank you
 
C

Claus Busch

Hi,

Am Wed, 20 Mar 2013 09:45:52 -0700 (PDT) schrieb (e-mail address removed):
I need a formula that will add number found for example in column C D E If it meets 2 citeria on A&B
Example
A B C D E
3/15/2013 Colorado 2 4 1
3/15/2013 KS 1 5 0
3/16/2013 Colorado 9 1 2

Answer in this case would be:
3/15/2013 Colorado 7

try:
=SUM(($A$1:$A$100=A1)*($B$1:$B$100=B1)*$C$1:$E$100)
and enter the array formula with CTRL+Shift+Enter


Regards
Claus Busch
 
C

Claus Busch

Hi,

Am Wed, 20 Mar 2013 09:45:52 -0700 (PDT) schrieb (e-mail address removed):
A B C D E
3/15/2013 Colorado 2 4 1
3/15/2013 KS 1 5 0
3/16/2013 Colorado 9 1 2

or:
=SUMPRODUCT(($A$1:$A$100=A1)*($B$1:$B$100=B1)*$C$1:$E$100)


Regards
Claus Busch
 
J

jc9972003

Hello I need help ading a range of columns if it meets 2 criteria. I needa formula that will add number found for example in column C D E If it meets 2 citeria on A&B Example A B C D E 3/15/2013 Colorado 2 4 1 3/15/2013 KS1 5 0 3/16/2013 Colorado 9 1 2 Answer in this case would be: 3/15/2013 Colorado 7 Basically I need a formula that will add across if it meets 2 criteria. Thank you



Like Always Claus, worked perfectly.
 

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