• 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.

Compare column A with column D and retain only A values found

I don't understand how you want to apply this in your initial question.

UDF
Use in cell like
=RemoveDup(F3,"\")

In a Standard module
Code:
Function RemoveDup(ByVal txt As String, ByVal delim As String) As String
    Dim e
    With CreateObject("Scripting.Dictionary")
        .CompareMode = 1
        For Each e In Split(txt, delim)
            .Item(e) = Empty
        Next
        RemoveDup = Join(.keys, delim)
    End With
End Function
 

Attachments

  • REmove duplicate.xlsm
    16 KB · Views: 2
Back
Top