For i = 4 To Sheet1.Range("a65536").End(xlUp).Row
For j = 8 To 14
If Sheet1.Cells(i, 3) = Sheet2.Cells(3, j) Then
For k = 4 To Sheet2.Range("a65536").End(xlUp).Row
If Sheet1.Cells(i, 1) = Sheet2.Cells(k, 1) And Sheet1.Cells(i, 8) = Sheet2.Cells(k, 6) Then
Sheet2.Cells(k, j) = Sheet2.Cells(k, j) + Sheet1.Cells(i, 9)
End If
Next
End If
Next
Next
For i = 4 To Sheet2.Range("a65536").End(xlUp).Row
For j = 8 To 13
Sheet2.Cells(i, 15) = Sheet2.Cells(i, 15) + Sheet2.Cells(i, j)
Next
Sheet2.Cells(i, 15) = Sheet2.Cells(i, 15) / 6
Next
Sheet2.Cells(1, 4) = Now()