如何用公式把符号隔开的合同号分开?
感觉PQ的拆分到行是最省心的
=TRIM(MID(SUBSTITUTE(TEXTJOIN(",",1,$B$2:$B$20),",",REPT(" ",499)),ROW(A1)*499-498,499)) =TRIM(MID(SUBSTITUTE(TEXTJOIN(",",1,$B$2:$B$20),",",REPT(" ",800)),(ROW()-1)*800+1,800))
三键结束,下拉 =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代表什么? 仅限OFFICE365,仅限OFFICE365,仅限OFFICE365,有长度限制,无法取20000行,仅限参考
一个单元格取所有,不用下拉右拉
=FILTERXML("<q><w>"&SUBSTITUTE(TEXTJOIN(",",,B2:B20),",","</w><w>")&"</w></q>","//w")
用PQ拆分列
=INDEX(EVALUATE("{"""&SUBSTITUTE(CONCAT($B$2:$B$20&","),",",""";""")&"""}"),ROW(A1))
WPS可以直接这样,,EXCEL将EVALUATE的部分定义名称
页:
[1]