Hi,
Now I got another problem...
A1 = Apple
A2 = Pear
A3 = Orange
A4 = Starfruit
A5 = Apple
A6= Apple
B1 = 1
B2 = 1
B3 = 1
B4 = 0
B5 = 0
B6= 1
I want to count the apples but second condition is that B1:B6 must be greater than 0.
I search example for COUNTIF but it only has COUNTIF(range,criteria)
I tried =COUNTIF(A1:A5,AND("APPLE",B1:B5>0)) but it gives me the wrong count.
Bookmarks