Reputation: 3
Trying to count yes values in a column with autofiltered rows. Countif gives me result for total range and does not adjust to filtered rows like subtotal. Any ideas?
Upvotes: 0
Views: 369
Reputation: 60224
Try the following: Adjust the range to reflect the appropriate column:
=SUMPRODUCT(SUBTOTAL(3,OFFSET(A2:A20,ROW(A2:A20)-ROW(A2),0,1))*(A2:A20="Yes"))
Upvotes: 4