Laurent Longre created a formula that lets you work with visible rows
after a filter. For information see, Power Formula Technique in this
article at John Walkenbach's web site:
http://j-walk.com/ss/excel/eee/eee001.txt
For example, to count "Yes" cells in column D, after a filter on another
column, you could use the following, where there are no blank cells in
column A:
=SUMPRODUCT((D2

200="Yes")*(SUBTOTAL(3,OFFSET(A2:A200,ROW(A2:A200)-MIN(ROW(A2:A200)),,1))))
John Whitworth wrote:
> I have set up a worksheet with various columns that can contain "Yes"
> or "No" values. I have then set up a totals row at the bottom, that
> uses the =COUNTIF(K5:K82,"Yes") function.
>
> What I need to be able to do is then select all the Yes values in any
> of the columns, using the AutoFilter dropdown boxes, and then have the
> totals line dynamically update, counting only the "Yes" values that
> are still visible.
>
> Is this possible?
>
> Thanks
>
> John
--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html