根据条件组合值,使用 Arrayformula | Google 张

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

使用数组函数将选定值组合成一个的函数应该是什么样的? 如果 Iddata 相同,我希望函数合并 Unique Nr

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

尝试:

=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)); "♦")); ",$"; ))