Google Sheets Text Join to join character from columns into row

别等时光非礼了梦想. 提交于 2021-01-29 06:22:55

问题


have data like this

table worksheet

and want result like this

enter image description here

using this formula:

=ARRAYFORMULA(REGEXREPLACE(TRIM(SPLIT(TRANSPOSE(QUERY(QUERY(
 IF(D2:D<>"", {C2:C&"♠", D2:D&","}, ),
 "select max(Col2) where Col1 is not null group by Col2 pivot Col1")
 ,,999^99)), "♠")), ",$", ))

make the result like this

enter image description here

Can someone figure it out, How to fix this formula? Thanks

来源:https://stackoverflow.com/questions/62670569/google-sheets-text-join-to-join-character-from-columns-into-row

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!