I have the following code to identify duplicates in Column “G” and identifies them in Column “K” with Duplicate RGB. But I want to go one step more and have the Row number of the other duplicate included with the Duplicate RGB, such as Duplicate RBG row 569
VBA Code:
For row_data = row_data_start To row_data_last
On Error Resume Next
If Application.WorksheetFunction.CountIf(Ws.Range("G4:G500"), Ws.Range("G" & row_data)) > 1 Then
Ws.Range("K" & row_data).Value = "Duplicate RGB " '''''& Ws.Range("G" & row_data).Address > 1
Ws.Range("K" & row_data).Interior.Color = vbRed
Else
Ws.Range("K" & row_data).Value = ""
End If
Next row_data