ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   using sumif formula: but requiring satisfying 2 if statements (https://www.excelbanter.com/excel-worksheet-functions/34472-using-sumif-formula-but-requiring-satisfying-2-if-statements.html)

karenm

using sumif formula: but requiring satisfying 2 if statements
 
columnA column b column c
c rent a 600
c name a ken
c rent b 200
c name b tom
p rent c 800
p name c bill

i want to sumif (column c) ... if column a is = a AND column b = "rent"


Bernard Liengme

=SUMPRODUCT(--(A1:A20="a"),--(B1:B20="rent"),C1:C20)
The double negatives convert TRUE/FALSE of the logic test to 1/0
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"karenm" wrote in message
...
columnA column b column c
c rent a 600
c name a ken
c rent b 200
c name b tom
p rent c 800
p name c bill

i want to sumif (column c) ... if column a is = a AND column b = "rent"





All times are GMT +1. The time now is 05:12 AM.

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