Learn when you want, where you want with convenient online training courses. Sign up now!
[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More
Experts Exchange Solution brought to you by
"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.
Dim ws As Worksheet
Dim lr As Long, lc As Long, r As Long, c As Long
Dim clrB As Long, clrP As Long, clrG As Long
Dim cntB As Long, cntP As Long, cntG As Long, cntAM As Long, cntPM As Long
Application.ScreenUpdating = False
Set ws = Sheets("DTA")
lr = ws.Cells(Rows.Count, 1).End(xlUp).Row
If lr < 8 Then Exit Sub
lc = ws.Range("A8").End(xlToRight).Column
If lc < 3 Then Exit Sub
ws.Range(ws.Cells(4, 3), ws.Cells(6, lc)).ClearContents
clrB = ws.Range("A4").Interior.Color
clrP = ws.Range("A5").Interior.Color
clrG = ws.Range("A6").Interior.Color
For r = 8 To lr
If ws.Range("B" & r).Value = "AM" Then
cntAM = cntAM + 1
ElseIf ws.Range("B" & r).Value = "PM" Then
cntPM = cntPM + 1
ws.Range("B2").Value = cntPM
ws.Range("B3").Value = cntAM
For c = 3 To lc
For r = 8 To lr
If ws.Cells(r, c).Interior.Color = clrB Then
cntB = cntB + 1
ElseIf ws.Cells(r, c).Interior.Color = clrP Then
cntP = cntP + 1
ElseIf ws.Cells(r, c).Interior.Color = clrG Then
cntG = cntG + 1
ws.Cells(4, c) = cntB
ws.Cells(5, c) = cntP
ws.Cells(6, c) = cntG
cntB = 0
cntP = 0
cntG = 0
Application.ScreenUpdating = True
Open in new window
Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.
The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.