Home > Software engineering >  Concatinate all matching names dynamically | Google sheets
Concatinate all matching names dynamically | Google sheets

Time:09-07

I want to get the concatenation of the input names according to value like this Name1, Name2,...

I tryed this formula but i need to be dynamic with Arrayformula.
enter image description here

CodePudding user response:

all you need is:

=ARRAYFORMULA(REGEXREPLACE(TRIM(SPLIT(FLATTEN(QUERY(QUERY(
 FILTER({A3:A&",", B3:B&"×"}, B3:B<>""), 
 "select max(Col1) group by Col1 pivot Col2"),,9^9)), "×")), ",$", ))

enter image description here

  • Related