单元格的值转成数组
把单元格A1="220、316、318、320、406、408、402"的值变成数组{220,316,318,320,406,408,402} 好办法不会,凑个热闹:都是3位
=--TRANSPOSE(MID(A1,ROW(INDIRECT("1:"&(LEN(A1)+1)/4))*4-3,3))
位数不确定
=--TRANSPOSE(MID(SUBSTITUTE(A1,"、",REPT(" ",99)),ROW(INDIRECT("1:"&LEN(A1)-LEN(SUBSTITUTE(A1,"、",""))+1))*99-98,99)) 大概这样子=transpose(trim(mid(substitute(a1,"、",rept(" ",99)),row(indirect("1:"&count(0/(mid(a1,row(1:99),1)="、")))*99-98,99)) =--MID(A1,COLUMN(INDIRECT("C1:C"&(LEN(A1)+1)/4,))*4-3,3) =TRANSPOSE(FILTERXML("<a><b>"&SUBSTITUTE(A1,"、","</b><b>")&"</b></a>","//b")) =EVALUATE("{"&SUBSTITUTE($A$1,"、",";")&"}")
WPS偷个鸡。 C2=TRIM(MID(SUBSTITUTE(B2,"、",REPT(" ",99)),COLUMN(INDIRECT("C1:C"&LEN(B2)-LEN(SUBSTITUTE(B2,"、",))+1,))*99-98,99))*1 让微软搞个split函数吧
页:
[1]