• DİKKAT

    DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
    Altın Üyelik Hakkında Bilgi

Yinelenen değerlerin bulunduğu satırları silme

Katılım
20 Ocak 2020
Mesajlar
247
Excel Vers. ve Dili
Office 2016 TR 64 Bit
Cümleten hayırlı akşamlar. Ekteki dosyamda sadece "A" sütununda yinelenen değerlerin bulunduğu satırları silmek istiyorum. Her değerden 1 tane kalmasını istiyorum. Koşullu biçimlendirmeden denedim ancak bazı sütunlarda veriler farklı oluyor bu sebeple sonuç alamadım.


234776
 

Ekli dosyalar

Merhaba
Kod:
sub sil()
dim STR as Long
for str= range("A"&rows.count).end(xlup).row  to 2 step -1
if worksheetfunction.countif("A:A"),cells(str,"A"))> 1 then
range("A"& str ":D"& str).delete xlup
end if
next
End Sub

Not : Ezber yazılmıştir. Deneme yapılamamıştır.
 
Merhaba
Kod:
sub sil()
dim STR as Long
for str= range("A"&rows.count).end(xlup).row  to 2 step -1
if worksheetfunction.countif("A:A"),cells(str,"A"))> 1 then
range("A"& str ":D"& str).delete xlup
end if
next
End Sub

Not : Ezber yazılmıştir. Deneme yapılamamıştır.

Sayın asi_kral denedim ancak syntax hatası verdi.
 
Doğru bir yeri atlamisim
Kod:
sub sil()

dim STR as Long

for str= range("A"&rows.count).end(xlup).row  to 2 step -1

if worksheetfunction.countif(range("A:A"),cells(str,"A"))> 1 then

range("A"& str ":D"& str).delete xlup

end if

next

End Sub

Bu şekilde dener misiniz
 
Doğru bir yeri atlamisim
Kod:
sub sil()

dim STR as Long

for str= range("A"&rows.count).end(xlup).row  to 2 step -1

if worksheetfunction.countif(range("A:A"),cells(str,"A"))> 1 then

range("A"& str ":D"& str).delete xlup

end if

next

End Sub

Bu şekilde dener misiniz

range("A"& str ":D"& str).delete xlup


Bu satırdaki ":D" syntax hatası veriyor
 
Merhaba, alternatif olarak.
Kod:
Sub Tekrarsiz()
    Range("A2:D" & Cells(Rows.Count, 1).End(3).Row).RemoveDuplicates Columns:=1
    MsgBox "Islem tamam..."
End Sub
 
Ezber yazmanın zararlari
Kod:
sub sil()

dim STR as Long

for str= range("A"&rows.count).end(xlup).row  to 2 step -1

if worksheetfunction.countif(range("A:A"),cells(str,"A"))> 1 then

range("A"& str & ":D"& str).delete xlup

end if

next

End Sub
 
Ezber yazmanın zararlari
Kod:
sub sil()

dim STR as Long

for str= range("A"&rows.count).end(xlup).row  to 2 step -1

if worksheetfunction.countif(range("A:A"),cells(str,"A"))> 1 then

range("A"& str & ":D"& str).delete xlup

end if

next

End Sub
Çok teşekkür ederim ilginiz için hakkınızı helal edin zamanınızı aldım
 
Geri
Üst