- Katılım
- 4 Mayıs 2007
- Mesajlar
- 234
- Excel Vers. ve Dili
- office 2007 64 bit
office 2010 64 bit
Sub AYNI_OLANLARI_TOPLA()
Dim X, Son
Son = Cells(Rows.Count, "D").End(3).Row
If Son <= 11 Then Exit Sub
For X = Son To 11 Step -1
Cells(X, 1) = WorksheetFunction.SumIf(Range("B:B"), Cells(X, "B"), Range("A:A"))
Cells(X, 4) = WorksheetFunction.SumIf(Range("B:B"), Cells(X, "B"), Range("D:D"))
If WorksheetFunction.CountIf(Range("B" & Son & ":B" & X), Cells(X, "B")) > 1 Then
Rows(X).Delete
End If
Next
MsgBox "İşleminiz tamamlanmıştır.", vbInformation
End Sub