ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Excel countif and (https://www.excelbanter.com/excel-discussion-misc-queries/23731-excel-countif.html)

KEN

Excel countif and
 
is there a "and" condition if you use countif or sumif?
example;


1 c
1
1 c
2
2 < countif(b1:b4,"=c")and(a1:a4,"=1")


Biff

Hi!

Try this:

=SUMPRODUCT(--(A1:A4=1),--(B1:B4="C"))

Biff

"KEN" wrote in message
...
is there a "and" condition if you use countif or sumif?
example;


1 c
1
1 c
2
2 < countif(b1:b4,"=c")and(a1:a4,"=1")





All times are GMT +1. The time now is 08:31 PM.

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