ضع هذا آخر الكود قبل End Sub
'إجمالي عام
For C = 2 To 43
With ورقة6
For R = 14 To 18 Step 4
If .Cells(R, C) > 0 Then
coun = coun + 1
.Cells(19, C) = Val(.Cells(19, C)) + Val(.Cells(R, C))
End If
Next
If coun > 0 Then .Cells(19, C) = Val(.Cells(19, C)) / coun
coun = 0
End With
Next