Textjoin:使用唯一 ID,如何连接多个值? [英] Textjoin: Using a unique ID, how do I concat multiple values?

查看:20
本文介绍了Textjoin:使用唯一 ID,如何连接多个值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法使用它.基本上,我有以下一组数据:

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

在 TextJoin 公式列中,我希望它对相邻的 ID 进行查找,扫描收入代码列并连接与该唯一 ID 相关的收入代码,以,"分隔.

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 ','.

非常感谢

推荐答案

use:

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

根据版本不同,退出编辑模式时可能需要按 Ctrl-Shift-Enter 而不是 Enter.

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))

这篇关于Textjoin:使用唯一 ID,如何连接多个值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆