Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

=counta() unless row is hidden

8 views
Skip to first unread message

Susan

unread,
Aug 21, 2009, 2:32:30 PM8/21/09
to
hi all
in column A i have some text data. some of the rows have been
hidden. i want to count how many are left (visible). but any COUNT
functions count the hidden rows, too. any ideas?
thanks a lot in advance.
susan

Jacob Skaria

unread,
Aug 21, 2009, 2:43:01 PM8/21/09
to
Check out the helo for the below function...The below will return the number
of cells with data in Column B which are visible...Please note that hidden
cells are hidden through menu...
=SUBTOTAL(103,B:B)

If this post helps click Yes
---------------
Jacob Skaria

Susan

unread,
Aug 21, 2009, 3:14:01 PM8/21/09
to
thanks, jacob, that works great at work on my 2007 excel here at
work. i'll keep it in mind for a good function to use! got any ideas
for <2007 versions? when i open the old 2000 version it doesn't work,
& at home i only have '03.
thanks again
susan

On Aug 21, 2:43 pm, Jacob Skaria

> > susan- Hide quoted text -
>
> - Show quoted text -

Jacob Skaria

unread,
Aug 21, 2009, 3:38:03 PM8/21/09
to
Works for 2003 and greater versions
--

Susan

unread,
Aug 21, 2009, 3:42:26 PM8/21/09
to
ok, thanks!
susan


On Aug 21, 3:38 pm, Jacob Skaria

> > > - Show quoted text -- Hide quoted text -

JLatham

unread,
Aug 22, 2009, 9:11:01 AM8/22/09
to
Jacob,
Works also if the rows have been hidden via macro, as
Range("A2:A6").Rows.EntireRow.Hidden=True
will exempt values in rows 2:6 from the subtotal.

I just had to check that out (Excel 2003) because I have use for it, and I
always forget about the 103 type function feature of SubTotal() which your
post reminded me about. Thanks for the reminder.

Also works for auto-filtered data, but you'd probably want to subtract 1
from that result to account for the auto-filter label row.
Jerry

0 new messages