From: mj on
I want to count the number of occourances of a "Y" in coulumn D .. so i used
a countif and it works great however when i filter another column it still
counts all the "Y".
From: Eduardo on
Hi,
try

=SUMPRODUCT(SUBTOTAL(3,OFFSET(d2:d11,ROW(d2:d11)-MIN(ROW(d2:d11)),,1)),
--(d2:d11="Y"))

change range to fit your needs
"mj" wrote:

> I want to count the number of occourances of a "Y" in coulumn D .. so i used
> a countif and it works great however when i filter another column it still
> counts all the "Y".