ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I sum (like sumif) but predicated on multiple criteria, in. (https://www.excelbanter.com/excel-worksheet-functions/8520-how-do-i-sum-like-sumif-but-predicated-multiple-criteria.html)

djpaik

How do I sum (like sumif) but predicated on multiple criteria, in.
 
How do I sum (like SUMIF) but predicated on multiple criteria, in Excel. I
belive there is a single function that will resolve this question. PS I do
not want to filter the document by column than sum.

Bob Phillips

=SUMPRODUCT(--(A1:A100=condition1),--(B1:B100=condition2),C1:C100)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"djpaik" wrote in message
...
How do I sum (like SUMIF) but predicated on multiple criteria, in Excel. I
belive there is a single function that will resolve this question. PS I do
not want to filter the document by column than sum.




Jerry W. Lewis

The following requires both conditions 1 and 2
=SUMPRODUCT((condition1)*(condition2),sumRange)
To sum if either condition is met, use
=SUMPRODUCT((condition1)+(condition2),sumRange)
You can also combine AND and OR criteria with judicious use of parentheses.

Jerry

djpaik wrote:

How do I sum (like SUMIF) but predicated on multiple criteria, in Excel. I
belive there is a single function that will resolve this question. PS I do
not want to filter the document by column than sum.




All times are GMT +1. The time now is 08:14 AM.

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