ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   find identical names in list (https://www.excelbanter.com/excel-programming/362643-find-identical-names-list.html)

chemicals-international

find identical names in list
 
We run a very long product list in Excel which is prequently updated.
We need a formula that identifies and removes identical product names.

excelent

find identical names in list
 
'Mark aktual colum, run sub

Sub SletDubletter()
Dim c, r, t, t2
c = ActiveCell.Column
r = Cells(65500, c).End(xlUp).Row
Range(Cells(1, c), Cells(65500, c).End(xlUp)).Select
For t = 1 To r
If Cells(t, c) < "" Then
For t2 = t + 1 To r
If Cells(t, c) = Cells(t2, c) Then
Cells(t2, c) = ""
End If
Next
End If
Next
Selection.Sort Key1:=Range(ActiveCell.Address), Order1:=xlAscending
ActiveCell.Select
End Sub


All times are GMT +1. The time now is 04:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com