DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub topla()
For i = 2 To WorksheetFunction.Max(2, Cells(Rows.Count, 1).End(3).Row)
yeni = Cells(Rows.Count, 8).End(3).Row + 1
If WorksheetFunction.CountIf(Range("H2:H" & yeni), Cells(i, 3)) = 0 Then
Cells(yeni, 8) = Cells(i, 3)
Cells(yeni, 9) = Cells(i, 1)
Cells(yeni, 10) = Cells(i, 4)
Else
For j = 2 To yeni - 1
If Cells(j, 8) = Cells(i, 3) Then
Cells(j, 9) = Cells(j, 9) & "-" & Cells(i, 1)
Cells(j, 10) = Cells(j, 10) + Cells(i, 4)
End If
Next
End If
Next
End Sub
Sub topla1()
For i = 2 To WorksheetFunction.Max(2, Cells(Rows.Count, 1).End(3).Row)
yeni = Cells(Rows.Count, 8).End(3).Row + 1
If WorksheetFunction.CountIf(Range("H2:H" & yeni), Cells(i, 3)) > 0 Then
For j = 2 To yeni - 1
If Cells(j, 8) = Cells(i, 3) Then
If Cells(j, 9) = "" Then
Cells(j, 9) = Cells(i, 1)
Else
Cells(j, 9) = Cells(j, 9) & "-" & Cells(i, 1)
End If
Cells(j, 10) = Cells(j, 10) + Cells(i, 4)
If Cells(j, 11) = "" Then
Cells(j, 11) = Cells(i, 2)
Else
Cells(j, 11) = Cells(j, 11) & "-" & Cells(i, 2)
End If
End If
Next
End If
Next
End Sub
Sub topla2()
For i = 2 To WorksheetFunction.Max(2, Cells(Rows.Count, 1).End(3).Row)
yeni = Cells(Rows.Count, 8).End(3).Row + 1
If WorksheetFunction.CountIf(Range("H2:H" & yeni), Cells(i, 3)) > 0 Then
For j = 2 To yeni - 1
If Cells(j, 8) = Cells(i, 3) Then
If Cells(j, 9) = "" Then
Cells(j, 9) = Cells(i, 1)
Else
Cells(j, 9) = Cells(j, 9) & "-" & Cells(i, 1)
End If
If Cells(j, 10) = "" Then
Cells(j, 10) = Cells(i, 4)
Else
Cells(j, 10) = Cells(j, 10) & "-" & Cells(i, 4)
End If
If Cells(j, 11) = "" Then
Cells(j, 11) = Cells(i, 2)
Else
Cells(j, 11) = Cells(j, 11) & "-" & Cells(i, 2)
End If
End If
Next
End If
Next
End Sub