CatLadee
New Member
- Joined
- Sep 7, 2018
- Messages
- 29
Please help me update the code below so that the counts work on the ranges of numbers (arrows below) Thanks!
Code:
Sub Metrics()
Dim ws As Worksheet
Set ws = Worksheets("Master")
''
Total = Application.WorksheetFunction.CountIf(ws.Range("i:i"), ">0")
Zeroto14 = Application.WorksheetFunction.CountIf(ws.Range("i:i"), "0-14") <---
Fifteento29 = Application.WorksheetFunction.CountIf(ws.Range("i:i"), "15-29") <---
Thirtyplus = Application.WorksheetFunction.CountIf(ws.Range("i:i"), ">30")
Range("a1").Select
Sheets("Tool | Summary").Select
Range("J6") = Total
Range("J7") = Zeroto14
Range("J8") = Fifteento29
Range("J9") = Thirtyplus
'
'
'
' Worksheets("Tool | Summary").Select
' Range("A1").Select
End Sub