Telecom said:
I have a column of various text answers and I want to count the number of
times they appear, but I also have criteria which hides rows of information
and I want the count when these lines are hiden.
hi
Countif will count hidden rows e.g =COUNTIF(D4
7,"=true") will count then
range including row 6 that has been hidden.
if you wanted to know how many rows are hidden in the worksheet then this
macro will give provide the information.
Sub HiddenRows()
Selection.SpecialCells(xlCellTypeLastCell).Select
lastrow = ActiveCell.Row
range(Cells(1, 1), Cells(lastrow, 1)).Select
For i = 1 To lastrow
If Rows(i).Hidden Then
Hrows = Hrows + 1
End If
Next
Cells(1, 1).Select
x = MsgBox("N Hidden rows" & vbTab & Hrows, vbInformation, "Hidden rows In
Sheet")
End Sub
Regards
Peter