the removed duplicates function because other columns are different
let's assume the duplicated value appears in column A
i'd like the macro to delete only ONE of the duplicates
...
i have a helper column in Y that does a countif and this code
but the issue with this code is that it would stop once it finds the any row with 2 and there could be multiple rows with duplicate values in column A (this code only works if there's only two rows of data with duplicates, but, not, say, 4)
let's assume the duplicated value appears in column A
i'd like the macro to delete only ONE of the duplicates
...
i have a helper column in Y that does a countif and this code
Code:
finalrow = Cells(Rows.Count, "A").End(xlUp).Row
For i = finalrow To 2 Step -1
If Range("y" & i) > 1 Then
Range("y" & i).EntireRow.Delete
Exit Sub
End If
Next i
but the issue with this code is that it would stop once it finds the any row with 2 and there could be multiple rows with duplicate values in column A (this code only works if there's only two rows of data with duplicates, but, not, say, 4)