F2- =TEXTJOIN(",",1,IF(MMULT(N(TRIM(MID(SUBSTITUTE(A2,",",REPT(" ",LEN(A2))),LEN(A2)*ROW(INDIRECT("1:"&LEN(A2)-LEN(SUBSTITUTE(A2,",",))+1))-LEN(A2)+1,LEN(A2)))=TRANSPOSE(TRIM(MID(SUBSTITUTE(A3,",",REPT(" ",LEN(A3))),LEN(A3)*ROW(INDIRECT("1:"&LEN(A3)-LEN(SUBSTITUTE(A3,",",))+1))-LEN(A3)+1,LEN(A3))))),ROW(INDIRECT("1:"&LEN(A3)-LEN(SUBSTITUTE(A3,",",))+1))^0),"",TRIM(MID(SUBSTITUTE(A2,",",REPT(" ",LEN(A2))),LEN(A2)*ROW(INDIRECT("1:"&LEN(A2)-LEN(SUBSTITUTE(A2,",",))+1))-LEN(A2)+1,LEN(A2)))))
复制代码
G2- =TEXTJOIN(",",1,IF(MMULT(N(TRIM(MID(SUBSTITUTE(A3,",",REPT(" ",LEN(A3))),LEN(A3)*ROW(INDIRECT("1:"&LEN(A3)-LEN(SUBSTITUTE(A3,",",))+1))-LEN(A3)+1,LEN(A3)))=TRANSPOSE(TRIM(MID(SUBSTITUTE(A2,",",REPT(" ",LEN(A2))),LEN(A2)*ROW(INDIRECT("1:"&LEN(A2)-LEN(SUBSTITUTE(A2,",",))+1))-LEN(A2)+1,LEN(A2))))),ROW(INDIRECT("1:"&LEN(A2)-LEN(SUBSTITUTE(A2,",",))+1))^0),"",TRIM(MID(SUBSTITUTE(A3,",",REPT(" ",LEN(A3))),LEN(A3)*ROW(INDIRECT("1:"&LEN(A3)-LEN(SUBSTITUTE(A3,",",))+1))-LEN(A3)+1,LEN(A3)))))
复制代码
数组三键,下拉。
|