+ Reply to Thread
Results 1 to 5 of 5

Match criteria in table and make combinated result with comma separated

  1. #1
    Registered User
    Join Date
    11-13-2019
    Location
    EU
    MS-Off Ver
    2019
    Posts
    4

    Match criteria in table and make combinated result with comma separated

    Dear,

    Please help me with this issue i dont know which function to use. I have one criterria example Pizza, in one table, and friends who eat pizza, in result it needs to write Friend X, Friend Y. But if there is duplicate, not to show it. Here is example in attachment.

    Many thanks whoever helps i just dont understand excel very well.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: Match criteria in table and make combinated result with comma separated

    B8: =TEXTJOIN(", ",1,INDEX(LEFT(A1:A5,(B1:B5=A8)*255),0))

    This should work in any Excel version which supports TEXTJOIN. Note that from your workbook, A8 contains Pizza.

  3. #3
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Match criteria in table and make combinated result with comma separated

    I can't test previous solution because have no TEXTJOIN but think dublicate will present
    For older versionof Excel additional column is must be
    d2 and down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    b8
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: Match criteria in table and make combinated result with comma separated

    Missed the part about duplicates. Make that

    B8: =TEXTJOIN(", ",1,INDEX(LEFT(A1:A5,(B1:B5=A8)*(MATCH(A1:A5,A1:A5,0)=ROW(A1:A5)-ROW(A1)+1)*255),0))

  5. #5
    Registered User
    Join Date
    11-13-2019
    Location
    EU
    MS-Off Ver
    2019
    Posts
    4

    Re: Match criteria in table and make combinated result with comma separated

    It works GREAT both examples! Many thanks friends, such a great community!

+ 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. [SOLVED] INDEX MATCH comma separated values in one cell
    By Jay S. in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-02-2019, 12:20 AM
  2. Replies: 2
    Last Post: 10-31-2018, 04:16 PM
  3. Replies: 5
    Last Post: 02-18-2017, 11:21 AM
  4. INDEX & MATCH multiple rows to return comma separated cell
    By sifuchi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-18-2015, 04:36 PM
  5. Match a Value from a single-cell, comma separated list
    By secondchild12 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-24-2014, 06:16 PM
  6. Using a Comma separated list as criteria for sumif function
    By yoshik in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-25-2013, 12:47 AM
  7. [SOLVED] Macro to match values in cells separated by semicolon and comma
    By Ale84 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-21-2013, 11:00 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