Okay, in order to get your concatenated list, we're going to introduce a UDF (user defined function) which requires VBA. That means your file type needs to be saved a xlsm instead of xlsx.
The following code goes into a module in the workbook. First open up the VBA editor (ALT F11) and "Insert> Module" Then copy and paste the code and close the vba editor.
For your purposes, the UDF will be of the form
=CAT(range, "delimiter")
where range is your expected range you want to concatenate and
delimiter is what you want to separate each entry with. " " would be a space, "," would be a comma, ", " would be a comma followed by a space (my personal favorite)
Next, we delete your table 2 and in H3 enter an arrayed formula
=IFERROR(INDEX($C$2:$E$2,SMALL(IF($C3:$E3="x",COLUMN($A$1:$C$1),10000000),COLUMN(A1))),"")
To make a formula arrayed, you need to enter it with CNTRL SHFT ENTER instead of a simple ENTER. If done properly, you'll see brackets {} appear around the formula.
You drag that formula across and down.
That should give you a consecutive list of the names in each race.
Then in G3 copied down
=CAT(H3:Z3, ", ")
You can reference Column G in your TEAM spreadsheet to get the roster for each race. See attachment.
Questions?
Bookmarks