+ Reply to Thread
Results 1 to 5 of 5

Lookup & return multiple values in one cell, separated by comma

  1. #1
    Registered User
    Join Date
    04-10-2020
    Location
    Toronto, Canada
    MS-Off Ver
    Excel for mac 14.7.2
    Posts
    9

    Lookup & return multiple values in one cell, separated by comma

    Hello,

    I have been trying to find a function that performs like vlookup or index-match but it returns multiple matches in a comma separated list. I have come to the tentative conclusion that this is only possible with VBA. I have found a few solutions, however they seem require Microsoft 365 (which I don't have) or Office 2019 (I have 2016).

    Given these constraints, does anyone have a solution?


    Thank you!

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Lookup & return multiple values in one cell, separated by comma

    UDF
    Use in cell like
    =VLookUps(A1,$C$1:$E$21,2,",")
    where
    A1 = Search value
    $C$1:$E$21 = LookUp Range
    2 = Column reference
    "," = Join string
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-10-2020
    Location
    Toronto, Canada
    MS-Off Ver
    Excel for mac 14.7.2
    Posts
    9

    Re: Lookup & return multiple values in one cell, separated by comma

    Thank you, but for some reason even when I past this code into VB, excel still does not recognize the function. Am I doing something wrong?

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Lookup & return multiple values in one cell, separated by comma

    Which code module did you use?
    The code needs to be placed in a standard cide module.

  5. #5
    Registered User
    Join Date
    04-10-2020
    Location
    Toronto, Canada
    MS-Off Ver
    Excel for mac 14.7.2
    Posts
    9

    Re: Lookup & return multiple values in one cell, separated by comma

    Oh that was the problem. It worked! Thank you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 16
    Last Post: 11-07-2018, 05:03 AM
  2. [SOLVED] Vlookup or Index to search and return multiple values in one cell separated by a comma
    By Trnecessary in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 10-17-2018, 12:59 PM
  3. Vlookup or Index to search and return multiple values in one cell separated by a comma
    By Trnecessary in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-17-2018, 10:37 AM
  4. Replies: 3
    Last Post: 03-10-2017, 07:56 PM
  5. Replies: 4
    Last Post: 11-16-2015, 05:12 AM
  6. Replies: 1
    Last Post: 11-10-2011, 12:57 PM
  7. Return Y/N after matching from multiple lookup values separated by comma
    By indoglans in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-16-2011, 03:13 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1