ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Sumif, having two condition (https://www.excelbanter.com/excel-worksheet-functions/145579-sumif-having-two-condition.html)

ViestaWu

Sumif, having two condition
 
I want to use the function sumif. but I have two condition.

sumif(sheet1!a2:a100, sheet2!B2, Sheet1!D2:D100)
based on this, I want to add that when Sheet1!a2:a100 = Sheet2!B2, the value
on that row of column C must be larger than zero.

How can I do?

Thanks at advanced!

Bob Phillips

Sumif, having two condition
 
=SUMPRODUCT(--(Sheet1!A2:A100=Sheet2!B2),--(Sheet1!C2:C1000),Sheet1!D2:D100)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"ViestaWu" wrote in message
...
I want to use the function sumif. but I have two condition.

sumif(sheet1!a2:a100, sheet2!B2, Sheet1!D2:D100)
based on this, I want to add that when Sheet1!a2:a100 = Sheet2!B2, the
value
on that row of column C must be larger than zero.

How can I do?

Thanks at advanced!




Roger Govier

Sumif, having two condition
 
Hi

=SUMPRODUCT((Sheet1!$A$2:$A$100=Sheet2!$B$2)*
(Sheet1!$C$2:$C$1000)*Sheet1!$C$2:$C$100)

--
Regards

Roger Govier


"ViestaWu" wrote in message
...
I want to use the function sumif. but I have two condition.

sumif(sheet1!a2:a100, sheet2!B2, Sheet1!D2:D100)
based on this, I want to add that when Sheet1!a2:a100 = Sheet2!B2, the
value
on that row of column C must be larger than zero.

How can I do?

Thanks at advanced!





All times are GMT +1. The time now is 11:20 AM.

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