+ Reply to Thread
Results 1 to 2 of 2

Conditional String Concatenation

  1. #1
    Registered User
    Join Date
    07-19-2019
    Location
    Minnesota
    MS-Off Ver
    2016
    Posts
    1

    Conditional String Concatenation

    Hello,

    I'm trying to concatenate a column of strings based on whether or not the players were active for each game. I attached the file below. You can ignore what is in H2 already.

    In essence, in H2 (corresponding to the active players for game 1), the string would be "LeBron JamesJeff GreenTristan Thompson...Rodney HoodCedi Osman". And it would exclude Clarkson, Calderon, etc. And then the same thing for games 2-4.

    I figure the solution may contain a mix of vlookup(), concat(), and/or if() functions, but I'm not exactly sure how to set this up. Any ideas on how to do this?
    Attached Files Attached Files
    Last edited by Solentos; 07-19-2019 at 08:45 PM.

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Conditional String Concatenation

    If you have Excel 365 you can use
    =TEXTJOIN(,,INDEX(REPT($B$2:$B$53,($A$2:$A$53=$G2)*($C$2:$C$53="A")*($D$2:$D$53="A")),))

    to Concatene all text that matches criteria but
    Excel 2016 don't have this function.
    You have to display 1 cell for 1 Name and concatenate them

    H2
    =I2&J2&K2&L2&M2&N2&O2&P2&Q2

    I2:Q5
    =IFERROR(INDEX($B:$B,AGGREGATE(15,6,ROW($A$2:$A$53)/($A$2:$A$53=$G2)/($C$2:$C$53="A")/($D$2:$D$53="A"),COLUMNS($I2:I2))),"")
    Attached Files Attached Files

+ 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] Conditional String Concatenation based on different cell being empty or not
    By MrGadget6977 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-16-2013, 01:14 PM
  2. Help with string concatenation logic
    By Nahkranoth in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-16-2013, 06:49 AM
  3. String concatenation of values
    By Chuvawow.com in forum Excel General
    Replies: 9
    Last Post: 03-08-2010, 07:29 AM
  4. string concatenation
    By jaredhawco in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-02-2008, 05:02 PM
  5. string concatenation
    By deepak.kec in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-21-2008, 04:34 AM
  6. string concatenation
    By fanfan in forum Excel General
    Replies: 2
    Last Post: 09-14-2007, 03:09 PM
  7. [SOLVED] How do I put each member of string concatenation in its own line?
    By in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 07:05 AM
  8. String concatenation
    By shishi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-08-2005, 10:05 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