Sub addCount()
Dim lr As Long, lr1 As Long
Dim sumW As Long, sumW1 As Long, countW As Long, countW1 As Long
lr = Sheets("Sheet1").Cells(Rows.Count, 1).End(xlUp).Row
lr1 = Sheets("Sheet1").Cells(Rows.Count, 7).End(xlUp).Row
sumW = 0
sumW1 = 0
countW = 0
countW1 = 0
For i = 3 To lr1
For j = 3 To lr
If Cells(j, 3) = Cells(i, 7) Then
If Cells(j, 1) = "Sunday" Or Cells(j, 1) = "Saturday" Then
sumW1 = sumW1 + Cells(j, 4)
countW1 = countW1 + 1
Else
sumW = sumW + Cells(j, 4)
countW = countW + 1
End If
End If
Next j
Cells(i, 8) = sumW
Cells(i, 9) = sumW1
Cells(i, 10) = countW
Cells(i, 11) = countW1
sumW = 0
sumW1 = 0
countW = 0
countW1 = 0
Next i
End Sub