DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub Ozet()
Dim s(), a1, deg
Dim i As Long, d As Object, j As Byte
With Application
.ScreenUpdating = False
.Calculation = xlManual
End With
Sheets("[COLOR=red]sonraki[/COLOR]").Select
Rows("3:" & Rows.Count).Clear
Set d = CreateObject("Scripting.Dictionary")
With Sheets("[COLOR=red]önceki[/COLOR]")
For i = 2 To .Cells(Rows.Count, "B").End(xlUp).Row
deg = .Cells(i, "B")
If Not d.exists(deg) Then
ReDim s(2 To 96)
For j = 2 To 96
s(j) = .Cells(i, j)
Next j
d.Add deg, s
Else
s = d.Item(deg)
For j = 4 To 96
s(j) = s(j) + .Cells(i, j)
Next j
d.Item(deg) = s
End If
Next i
End With
a1 = d.items
For i = 0 To d.Count - 1
s = a1(i)
For j = 2 To 96
Cells(i + 3, j) = s(j)
Next j
Next i
Range("B:B").NumberFormat = "#"
Range("B:B").HorizontalAlignment = xlCenter
Set d = Nothing
With Application
.ScreenUpdating = True
.Calculation = xlAutomatic
End With
End Sub