Bakigemlik
Altın Üye
- Katılım
- 16 Ocak 2013
- Mesajlar
- 674
- Excel Vers. ve Dili
- 2010 Türkçe
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub Ozet_Topla()
Dim d As Object, i As Long, s, deg
Set d = CreateObject("Scripting.Dictionary")
For i = 2 To Cells(Rows.Count, "A").End(xlUp).Row
deg = Cells(i, "A")
If Not d.exists(deg) Then
s = Cells(i, "B")
d.Add deg, s
Else
s = d.Item(deg)
s = s + Cells(i, "B")
d.Item(deg) = s
End If
Next i
Range("E2:F" & Rows.Count).ClearContents
Range("E2").Resize(d.Count, 2) = Application.Transpose(Array(d.keys, d.items))
End Sub
Satırlarda bir hata yok. İstediğiniz gibi özet tabloyu farklı sütunda yapıyor.
Sorunuzu detaylı açıklamanızı rica ederim.
.
=EĞER(EĞERSAY(A$3:A3;A3)=1;ETOPLA(Sayfa1!$A$3:$A$8;Sayfa1!$A3;Sayfa1!$B$3:$B$8);"")
Sub usttekineTopla()
Dim i As Long, ref As String
With CreateObject("Scripting.Dictionary")
For i = 3 To Cells(Rows.Count, "A").End(xlUp).Row
ref = Cells(i, "A")
If Not .exists(ref) Then
.Add ref, Cells(i, "B")
Else
.Item(ref) = .Item(ref) + Cells(i, "B")
bossay = bossay + 1
.Add "boskey" & bossay, Empty
End If
Next i
Range("D3:D" & Rows.Count).ClearContents
Range("D3").Resize(.Count) = Application.Transpose(.items)
End With
End Sub