ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Count rows after filter (https://www.excelbanter.com/excel-worksheet-functions/193701-count-rows-after-filter.html)

Learn-more

Count rows after filter
 
I want to count how many rows are left in the worksheet after I used filter
and some rows had been hidden. COUNTA give me all rows and not the one after
filter.
Are there any function can do that or need to use VBA?
Thank you.

Héctor Miguel

Count rows after filter
 
hi, anonymous !

I want to count how many rows are left in the worksheet after I used filter and some rows had been hidden.
COUNTA give me all rows and not the one after filter.
Are there any function can do that or need to use VBA?


subtotal(... worksheet-function only tracks visible cells/rows after any autofilter criteria so...

counting numbers: =subtotal(2,<filtered range)
counting text/any: =subtotal(3,<filtered range)

hth,
hector.



Learn-more

Count rows after filter
 
Hello,
Thank you. It work out good. I know subtotal can sum but forget/not realize
it can do counting etc too.

Thanks a lot.
Learn-more

"Héctor Miguel" wrote:

hi, anonymous !

I want to count how many rows are left in the worksheet after I used filter and some rows had been hidden.
COUNTA give me all rows and not the one after filter.
Are there any function can do that or need to use VBA?


subtotal(... worksheet-function only tracks visible cells/rows after any autofilter criteria so...

counting numbers: =subtotal(2,<filtered range)
counting text/any: =subtotal(3,<filtered range)

hth,
hector.





All times are GMT +1. The time now is 02:09 AM.

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