Textjoin: Using a unique ID, how do I concat multiple values?

三世轮回 提交于 2020-08-19 10:59:06

问题


I'm having trouble getting this to work. Basically, I have the following set of data:

In the TextJoin Formula column, I want it to do a look up against the adjacent ID, scan the income code column and concat the income codes pertaining to that unique ID, separated by a ','.

Many thanks


回答1:


use:

=TEXTJOIN(",",TRUE,IF($A$2:$A$6=$A2,$B$2:$B$6,""))

Depending on one's version this may require Ctrl-Shift-Enter instead of Enter when exiting edit mode.


If one has the Dynamic Array Formula FILTER:

=TEXTJOIN(",",,FILTER(B:B,A:A=A2))


来源:https://stackoverflow.com/questions/60286878/textjoin-using-a-unique-id-how-do-i-concat-multiple-values

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