DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub benzersizler()
Dim sat As Integer
Dim s As Integer
Range("d2:e" & Rows.Count).ClearContents
s = 2
son = Cells(Rows.Count, "c").End(xlUp).Row
For sat = 2 To Cells(Rows.Count, "a").End(xlUp).Row
Set bul = Range("c2:c" & son).Find(Cells(sat, "a"), , xlValues, xlWhole)
If bul Is Nothing Then
Cells(s, "d") = Cells(sat, "a")
s = s + 1
End If
Next
'
s = 2
son = Cells(Rows.Count, "c").End(xlUp).Row
For sat = 2 To Cells(Rows.Count, "a").End(xlUp).Row
Set bul = Range("c2:c" & son).Find(Cells(sat, "a"), , xlValues, xlWhole)
If Not bul Is Nothing Then
Cells(s, "e") = Cells(sat, "a")
s = s + 1
End If
Next
End Sub
Kod:Sub benzersizler() Dim sat As Integer Dim s As Integer Range("d2:e" & Rows.Count).ClearContents s = 2 son = Cells(Rows.Count, "c").End(xlUp).Row For sat = 2 To Cells(Rows.Count, "a").End(xlUp).Row Set bul = Range("c2:c" & son).Find(Cells(sat, "a"), , xlValues, xlWhole) If bul Is Nothing Then Cells(s, "d") = Cells(sat, "a") s = s + 1 End If Next ' s = 2 son = Cells(Rows.Count, "c").End(xlUp).Row For sat = 2 To Cells(Rows.Count, "a").End(xlUp).Row Set bul = Range("c2:c" & son).Find(Cells(sat, "a"), , xlValues, xlWhole) If Not bul Is Nothing Then Cells(s, "e") = Cells(sat, "a") s = s + 1 End If Next End Sub