Public Sub sGpe()
Dim sArr(), dArr(), Tong(1 To 1, 1 To 5)
Dim I As Long, K As Long, R As Long
Tong(1, 1) = "T" & ChrW(7893) & "ng C" & ChrW(7897) & "ng:"
sArr = Sheets("DuLieu").Range("I16", Sheets("DuLieu").Range("Z1000").End(xlUp)).Value
R = UBound(sArr)
ReDim dArr(1 To R, 1 To 5)
For I = 1 To R
If sArr(I, 1) <> Empty Then
K = K + 1
If sArr(I, 1) <> Empty Then
dArr(K, 1) = sArr(I, 1)
dArr(K, 2) = sArr(I, 11): Tong(1, 2) = Tong(1, 2) + sArr(I, 11)
dArr(K, 3) = sArr(I, 8): Tong(1, 3) = Tong(1, 3) + sArr(I, 8)
dArr(K, 4) = sArr(I, 13): Tong(1, 4) = Tong(1, 4) + sArr(I, 13)
dArr(K, 5) = sArr(I, 18): Tong(1, 5) = Tong(1, 5) + sArr(I, 18)
End If
End If
Next I
With Sheets("Gpe")
.Range("C6").Resize(1000, 5).ClearContents
.Range("C6").Resize(K, 5) = dArr
.Range("C6").Offset(K).Resize(, 5) = Tong
End With
End Sub