• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Find duplicate by group in column

marreco

Member
Hi
I need find duplicate (each group separeted by blanck cell) and write in adjacent cell in column C.

Thank you!!!
 

Attachments

  • DuplicateByGroup.jpg
    DuplicateByGroup.jpg
    162 KB · Views: 11
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
 
Back
Top