marreco Member Jun 17, 2016 #1 Hi I need find duplicate (each group separeted by blanck cell) and write in adjacent cell in column C. Thank you!!! Attachments DuplicateByGroup.jpg 162 KB · Views: 11
Hi I need find duplicate (each group separeted by blanck cell) and write in adjacent cell in column C. Thank you!!!
N NARAYANK991 Excel Ninja Jun 17, 2016 #2 Hi , Please upload a workbook with enough data in it. Narayan
J jindon Well-Known Member Jun 17, 2016 #3 Try Code: Sub test() Dim r As Range For Each r In Range("a2", Range("a" & Rows.Count).End(xlUp)).SpecialCells(2).Areas r.Offset(, 2).Value = r.Parent.Evaluate("if(countif(" & r.Address & "," & r.Address & ")>1,""GroupRepeated"","""")") Next End Sub
Try Code: Sub test() Dim r As Range For Each r In Range("a2", Range("a" & Rows.Count).End(xlUp)).SpecialCells(2).Areas r.Offset(, 2).Value = r.Parent.Evaluate("if(countif(" & r.Address & "," & r.Address & ")>1,""GroupRepeated"","""")") Next End Sub