+ Reply to Thread
Results 1 to 6 of 6

Concatenate unique values which meet criteria

  1. #1
    Registered User
    Join Date
    07-17-2019
    Location
    Argentina
    MS-Off Ver
    Office 365
    Posts
    3

    Concatenate unique values which meet criteria

    Hello, I'm trying to concatenate unique values in a column which meet a certain criterion. I basically need to concatenate all the responsible persons for a given company without duplicates, as seen in column C of the attached screenshot. I'm using TEXTJOIN to get values which meet my criterion but don't know how to eliminate duplicates. Any ideas? Thanks in advance!
    Attached Images Attached Images

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Concatenate unique values which meet criteria

    one option, perhaps:

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

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Concatenate unique values which meet criteria

    You could use Power Query. Format the data in A:B as a table, then use:

    Please Login or Register  to view this content.
    Attached Files Attached Files
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Concatenate unique values which meet criteria

    or, to assemble unique companies, in E2, copied down:
    =IFERROR(INDEX($A$2:$A$12,MATCH(0,INDEX(COUNTIF($E$1:$E1,$A$2:$A$12),0),0)),"")


    and then TEXTJOIN, in F2, copied down:

    =TEXTJOIN(", ",,IF($A$2:$A$12=E2,$B$2:$B$12,""))
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Registered User
    Join Date
    07-17-2019
    Location
    Argentina
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Concatenate unique values which meet criteria

    Wow, that worked like a charm. Thanks! I'm not familiar with the REPT function, but I will study your work to understand this in depth. Amazing work. Thanks again!

  6. #6
    Registered User
    Join Date
    07-17-2019
    Location
    Argentina
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Concatenate unique values which meet criteria

    Thank you all for your responses. It's interesting to see different approaches to the same problem. I will give them a look to ensure I get the concept.

+ 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. Count Unique Values that Meet a Criteria
    By DD1 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-09-2016, 11:23 PM
  2. Replies: 7
    Last Post: 11-08-2014, 04:05 PM
  3. Counting unique values that meet multiple criteria
    By msworkman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-08-2013, 11:15 PM
  4. [SOLVED] Counting Unique Values Which Meet Criteria
    By Sophie.Durrant in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-15-2013, 10:09 AM
  5. [SOLVED] Count Unique Values in Column A that meet criteria in Column B
    By ashakespeare in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-04-2012, 07:33 PM
  6. Replies: 25
    Last Post: 05-31-2012, 08:03 PM
  7. Replies: 5
    Last Post: 03-13-2012, 06:05 AM

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