DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub test()
Set dc = CreateObject("scripting.dictionary")
Set dz = CreateObject("scripting.dictionary")
son = 0
son = Range("O" & Rows.Count).End(3).Row
a = Range("O2:P" & son).Value
For i = 2 To UBound(a)
dc(a(i, 1)) = a(i, 2)
Next i
son = 0
son = Range("B" & Rows.Count).End(3).Row
a = Range("B3:D" & son).Value
For i = 2 To UBound(a)
If dc.exists(a(i, 1)) Then
y = dc(a(i, 1))
dz(y) = dz(y) + a(i, 3)
End If
Next i
Range("G6:H" & Rows.Count).ClearContents
Range("G6:H" & Rows.Count).ClearFormats
[G5].Resize(dz.Count + 2, 2).Borders.Color = rgbSilver
[G6].Resize(dz.Count, 2) = Application.Transpose(Array(dz.keys, dz.items))
[G6].Offset(dz.Count) = "Toplam"
[G6].Offset(dz.Count, 1) = Application.Sum(dz.items)
MsgBox "İşlem tamam.", vbInformation
End Sub
merhabalar,
hatırltmak için tekrar gönderiyorum. dosya içerisindeki makroya entegre yapma imkanı var mıdır.
teşekkürler,
saygılarımla