Excel VBA : Remove Duplicates from a delimited List

Поділитися
Вставка
  • Опубліковано 6 вер 2024
  • Need help with Excel, Access or Oracle? Find me at www.upwork.com...

КОМЕНТАРІ • 3

  • @chrish281
    @chrish281  5 років тому

    VBA -
    Function UniqueList(ListIn As Variant, strSplitBy As String) As Variant
    Dim dict As Object
    Dim strTmp As Variant
    Set dict = CreateObject("Scripting.Dictionary")
    For Each strTmp In Split(ListIn, strSplitBy)
    dict(Trim(strTmp)) = 1
    Next
    UniqueList = Join(dict.keys, strSplitBy)
    End Function
    How to use, in Cell E2 -
    =UniqueList(D2,";")

  • @slowmopoke
    @slowmopoke 5 років тому

    Please download and re-upload this everywhere.

  • @slowmopoke
    @slowmopoke 5 років тому

    Please download and re-upload this everywhere.