ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Sumproduct? (https://www.excelbanter.com/excel-worksheet-functions/448440-sumproduct.html)

[email protected]

Sumproduct?
 
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

Claus Busch

Sumproduct?
 
Hi,

Am Wed, 20 Mar 2013 09:45:52 -0700 (PDT) schrieb :

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
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2

Claus Busch

Sumproduct?
 
Hi,

Am Wed, 20 Mar 2013 09:45:52 -0700 (PDT) schrieb :

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
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2

[email protected]

Sumproduct?
 
On Wednesday, March 20, 2013 11:45:52 AM UTC-5, wrote:
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




Like Always Claus, worked perfectly.


All times are GMT +1. The time now is 06:55 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com