用ArrayFormula水平将多列水平加入一列
表:
A | B | C | D | E |
---|---|---|---|---|
A | B | C | D | E |
F | G | H | I | J |
K | L | M | N | O |
目前要水平加入列的值,我确实喜欢:
=ARRAYFORMULA(IF(A1:A="","",A1:A&B1:B&C1:C&D1:D&E1:E))
输出:
F |
---|
abcde |
fghij |
klmno, |
但现在我遇到了需求要加入100列的值,手动是一个巨大的公式,因此我正在寻找一种将范围设置为a1:cv
的方法,但是join
和Condenate
不支持这种类型的多列范围。
Sheet:
A | B | C | D | E |
---|---|---|---|---|
a | b | c | d | e |
f | g | h | i | j |
k | l | m | n | o |
Currently to join the values horizontally of the columns, I do like this:
=ARRAYFORMULA(IF(A1:A="","",A1:A&B1:B&C1:C&D1:D&E1:E))
Output:
F |
---|
abcde |
fghij |
klmno |
But now I came across the need to join the values of 100 columns, manually it's a huge formula, so I'm looking for a way to set the range to A1:CV
, but JOIN
and CONCATENATE
don't support this type of multicolumn range.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试:
如果您不需要额外的空格将它们删除,则如下:
如果列包含带有空格的单词,并且您只想保留这些用途:
try:
if you dont need extra spaces remove them like:
if columns contain words with spaces and you want to keep only those use: