Hello all,
I am trying to find a way to locate exact duplicates across 13 columns of data. The worksheet that I'm using as a template has a VBA written that looks like the below:
' Final check is to see if there are duplicate rows. This is just informational. If a duplicate exists then the duplicate rows are colored yelow
Set duplicateRows = CreateObject("Scripting.Dictionary")
For x = 22 To rowData
dupRow = wsData.Range("B" & x).Value & wsData.Range("C" & x).Value & wsData.Range("D" & x).Value & wsData.Range("D" & x).Value & wsData.Range("E" & x).Value & _
wsData.Range("F" & x).Value & wsData.Range("G" & x).Value & wsData.Range("H" & x).Value & wsData.Range("I" & x).Value & wsData.Range("J" & x).Value & _
wsData.Range("K" & x).Value & wsData.Range("L" & x).Value
If Not duplicateRows.exists(dupRow) Then
duplicateRows.Add dupRow, x
Else
wsData.Range("B" & x & ":N" & x).Interior.ColorIndex = 36
wsData.Range("B" & duplicateRows(dupRow) & ":N" & duplicateRows(dupRow)).Interior.ColorIndex = 36
End If
Next x
I'm trying to figure out what changes I need to make to have this apply to my worksheet. I have attached an example.
Thank you!
CROSS-POSTED - https://www.mrexcel.com/forum/excel-...3-columns.html
Bookmarks