日夕 发表于 2021-11-1 14:28:00

如何用公式把符号隔开的合同号分开?



丨丶一切随缘 发表于 2021-11-6 20:05:23

感觉PQ的拆分到行是最省心的

我是小小麦 发表于 2021-11-21 19:11:40


=TRIM(MID(SUBSTITUTE(TEXTJOIN(",",1,$B$2:$B$20),",",REPT(" ",499)),ROW(A1)*499-498,499))

严谨警惕 发表于 2021-11-26 06:15:26

=TRIM(MID(SUBSTITUTE(TEXTJOIN(",",1,$B$2:$B$20),",",REPT(" ",800)),(ROW()-1)*800+1,800))
三键结束,下拉

本座心灵 发表于 2021-11-30 00:29:48

=TRIM(MID(SUBSTITUTE(TEXTJOIN(",",1,$B$2:$B$20),",",REPT(" ",499)),ROW(A1)*499-498,499))
=TRIM(MID(SUBSTITUTE(TEXTJOIN(",",1,$B$2:$B$20000),",",REPT(" ",499)),ROW(A1)*499-498,499))
你好,我这里有一万多条数据,我把$B$20改成了$B$20000,其他的数据没改,这个公式只到67行就不取数了,是哪里还需要调整吗?还有这个499代表什么?

看球 发表于 2021-12-3 05:21:52

仅限OFFICE365,仅限OFFICE365,仅限OFFICE365,有长度限制,无法取20000行,仅限参考
一个单元格取所有,不用下拉右拉
=FILTERXML("<q><w>"&SUBSTITUTE(TEXTJOIN(",",,B2:B20),",","</w><w>")&"</w></q>","//w")

情由可缘 发表于 2022-1-7 13:09:48

用PQ拆分列

琼開心 发表于 2022-1-10 08:35:15

=INDEX(EVALUATE("{"""&SUBSTITUTE(CONCAT($B$2:$B$20&","),",",""";""")&"""}"),ROW(A1))
WPS可以直接这样,,EXCEL将EVALUATE的部分定义名称
页: [1]
查看完整版本: 如何用公式把符号隔开的合同号分开?