COUNTIF Ignoring Hidden Rows

Jambo2000

New Member
Joined
Jul 17, 2020
Messages
10
Platform
  1. Windows
Very New to Excel - Please go easy on me ;)

I'm putting together a spreadsheet to store and monitor TASKS
Each TASK will have smaller ACTIONS to go along with it. I have set the sheet so that once all the ACTIONS are 100% done, the TASK is also marked as 100% done.
I've created a tally at the top for both the total TASKS and the total ACTIONS.

Each TASK has been populated with 10 rows of ACTIONS.
As not every TASK will need all 10 ACTIONS, the rows not used will be hidden. Issue i have is the formula i'm using to count the total ACTIONS is : =COUNTIF(A7:A1000,"Action*")
This counts the total even if the row is hidden. Looking around on Google, you can't seem to have something that both ignores the hidden rows and uses the COUNTIF

Struggling to find a work around - Please help
 

Jambo2000

New Member
Joined
Jul 17, 2020
Messages
10
Platform
  1. Windows
What did you try - like this ? :
VBA Code:
Private Sub CommandButton1_Click()
Rows("6:16").Copy Cells(Rows.Count, 1).End(3)(3)
End Sub

Didn't have exactly that but that does work. Thank you! Appreciated
 

Some videos you may like

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Watch MrExcel Video

Forum statistics

Threads
1,118,791
Messages
5,574,312
Members
412,586
Latest member
Medhum
Top