DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub ozet_say()
Dim d As Object, i As Long, deg, son As Long
Set d = CreateObject("Scripting.Dictionary")
son = Cells(Rows.Count, "A").End(xlUp).Row
Application.ScreenUpdating = False
For i = 1 To son
deg = Cells(i, "A")
If Not d.exists(deg) Then
d.Add deg, 1
Else
d.Item(deg) = d.Item(deg) + 1
End If
Next i
Range("B:C").ClearContents
Range("B1").Resize(d.Count, 2) = Application.Transpose(Array(d.keys, d.items))
End Sub
Sub ozet_say()
Dim d As Object, i As Long, deg, son As Long
Set d = CreateObject("Scripting.Dictionary")
son = Cells(Rows.Count, "A").End(xlUp).Row
Application.ScreenUpdating = False
For i = 2 To son
deg = Cells(i, "A")
If Not d.exists(deg) Then
d.Add deg, 1
Else
d.Item(deg) = d.Item(deg) + 1
End If
Next i
Range("C2:D" & Rows.Count).ClearContents
Range("C2").Resize(d.Count, 2) = Application.Transpose(Array(d.keys, d.items))
End Sub
Dosya ektedir.
Sub dagit()
Dim i As Long, sat As Long, son As Long
son = Cells(Rows.Count, "C").End(xlUp).Row
Application.ScreenUpdating = False
Range("A2:a" & Rows.Count).ClearContents
sat = 2
For i = 2 To son
Cells(i, "C").Copy Cells(sat, "A").Resize(Cells(i, "D"), 1)
sat = sat + Cells(i, "D")
Next i
End Sub
Sub test()
son = Cells(Rows.Count, "C").End(xlUp).Row
Range("a2:a" & Rows.Count).ClearContents
sat = 2
For i = 2 To son
deg = Cells(i, "C")
kac = Cells(i, "D")
Cells(sat, 1).Resize(kac, 1).Value = deg
sat = sat + kac
Next i
End Sub