Count non-hidden rows

  • Thread starter Thread starter Art
  • Start date Start date
Look in the help index for SUBTOTAL and read the part about hidden non
 
If you meant using VBA code, something like this should work...

Dim RangeToCount As String, VisibleRows As Long
.....
.....
RangeToCount = "A1:A100"
On Error Resume Next
VisibleRows = Range(RangeToCount).SpecialCells(xlCellTypeVisible).Count
 
Ryan; function_num 2 is to include hidden values. To ignore hidden values the
function_num is 102

=SUBTOTAL(102,A1:A100)
 
And I dont think the OP is looking for count() which gives the count of
numerics instead OP is looking for "count non-hidden rows in a column?"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top