Count non-hidden rows

  • Thread starter Thread starter Art
  • Start date Start date
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?"
 
Back
Top