Combining values ​based on conditions, using an Arrayformula | Google Sheets

52 Views Asked by At

What should a function that combines selected values ​​into one using an array function look like? I would like the function to combine Unique Nr if Id and data are the same.

https://docs.google.com/spreadsheets/d/1x1yR2oc2VxUFuijEq-bhLKGgHscnIzDVS0cguIslajk/edit?usp=sharing

enter image description here

1

There are 1 best solutions below

3
On BEST ANSWER

try:

=ARRAYFORMULA(REGEXREPLACE(TRIM(SPLIT(FLATTEN(
 QUERY(QUERY({A2:A&","\ B2:B&" "&C2:C&"♦"}; 
 "select max(Col1) 
  where Col1 <> ',' 
  group by Col1 
  pivot Col2");; 9^9)); "♦")); ",$"; ))

enter image description here