CONCATENATE rows with character for range in Excel

这一生的挚爱 提交于 2021-02-17 05:41:04

问题


I have a pretty long list of numbers that I would like to concatenate for a regex like this:

2323
2352
3432
…

2323|2352|3432

Now, I can obviously use the CONCATENATE function, but it would still require me to enter each row individually like this:

=CONCATENATE(A1, "|", A2, …)

Is there any way to apply a range together with the splitting character?


回答1:


Typically this is a job for TEXTJOIN, available in Excel 2019 and O365.

=TEXTJOIN("|",,A1:A3)


来源:https://stackoverflow.com/questions/63050210/concatenate-rows-with-character-for-range-in-excel

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