=TEXTJOIN(",",,IFERROR(IF((COLUMN($A1:$CU1)-LOOKUP(COLUMN(A$1:CU$1),--TRIM(LEFT(SUBSTITUTE(TRIM(MID(SUBSTITUTE(A2,",",REPT(" ",99)),ROW($1:$20)*99-98,99)),"-",REPT(" ",15)),10)),--TRIM(LEFT(SUBSTITUTE(TRIM(MID(SUBSTITUTE(A2,",",REPT(" ",99)),ROW($1:$20)*99-98,99)),"-",REPT(" ",15)),10)))+0.1)*(COLUMN(A$1:CU$1)-LOOKUP(COLUMN(A$1:CU$1),--TRIM(LEFT(SUBSTITUTE(TRIM(MID(SUBSTITUTE(A2,",",REPT(" ",99)),ROW($1:$20)*99-98,99)),"-",REPT(" ",15)),10)),--TRIM(RIGHT(SUBSTITUTE(TRIM(MID(SUBSTITUTE(A2,",",REPT(" ",99)),ROW($1:$20)*99-98,99)),"-",REPT(" ",15)),10)))-0.1)<0,COLUMN(A$1:CU$1),""),""))
数组三键。公式一个个套,火车有点长。
应该还能简化,不想再搞了。
|