+ Reply to Thread
Results 1 to 4 of 4

Use vlookup in a table with multiple matches

  1. #1
    Registered User
    Join Date
    05-29-2019
    Location
    Italy
    MS-Off Ver
    2016
    Posts
    2

    Use vlookup in a table with multiple matches

    Dears,

    I have this following problem.

    I have a table like the following one:

    ID Comment
    001 Hello
    001 Try
    002 asd
    003 -
    003 bye

    What I would like to get is:
    001 Hello ; Try
    002 asd
    003 - ; bye

    How can I do?

    Thank you,
    Luca

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Use vlookup in a table with multiple matches

    Hello and welcome to the forum.

    One way to do this would be by using Power Query (Get & Transform).

    1) Highlight your data > Data > From Table > Check the "My table has headers" box > OK
    2) Delete the "Changed Type" applied step to keep the leading 0's
    3) Group By > Group by: ID > New column name: Temp > Operation: All Rows > OK
    4) Add Column > Custom Column > formula Table.Column([Temp],"Comment") > OK
    5) Click on the button to the right of the Custom header and select Extract Values > Semicolon > OK
    6) Select the Temp column > Home > Remove columns > Close & Load

    See attachment.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    05-29-2019
    Location
    Italy
    MS-Off Ver
    2016
    Posts
    2

    Re: Use vlookup in a table with multiple matches

    Thank you for your support, it worked!

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Use vlookup in a table with multiple matches

    You're welcome. Happy to help.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. Extract data from table into new table that matches multiple criteria
    By joplrw10 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-25-2016, 12:30 PM
  2. Help with Vlookup and Multiple Matches
    By ITRIEDEL in forum Excel General
    Replies: 5
    Last Post: 01-06-2016, 11:19 PM
  3. [SOLVED] VLookup with multiple matches
    By prudential in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-30-2014, 07:07 AM
  4. VLOOKUP for Specific Text in One Table Where an ID Matches in Another Table
    By towanda7 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-04-2013, 12:52 PM
  5. Multiple VLookup Matches
    By speedy53 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-05-2010, 10:37 AM
  6. need to sum multiple matches from vlookup
    By gmoney123 in forum Excel General
    Replies: 3
    Last Post: 11-09-2009, 10:38 AM
  7. Multiple matches on VLOOKUP
    By [email protected] in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-09-2005, 01:06 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