=IF(COLUMN(A1)=3,IFERROR(INDEX($E$1:$E$6,MOD(ROW(A1),6)),$E$6),IF(MOD(ROW(),6)=4,INDEX(SUBSTITUTE(TRIM(MID(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(INDEX(TRIM(MID(SUBSTITUTE(SUBSTITUTE(INDEX($A$7:$A$12,ROUNDUP(ROW(A1)/6,0))," "," ")," ",REPT(" ",99)),ROW($1:$10)*99-98,99)),TRIM(MID(SUBSTITUTE(REPT(IF(LEN(INDEX($A$7:$A$12,ROUNDUP(ROW(A1)/6,0)))-LEN(SUBSTITUTE(INDEX($A$7:$A$12,ROUNDUP(ROW(A1)/6,0)),"*",""))>4," 1 10 3 7 6 6"," 1 9 3 7 6 6"),COUNTA($A$7:$A$12))," ",REPT(" ",99)),ROW(A1)*99,99))*1),"H=",""),"MM",""),"*",REPT(" ",99),1),ROW($1:$4)*99-98,99)),"PCS",""),TRIM(MID(SUBSTITUTE(REPT(" 1 1 1 1 1 3",COUNTA($A$7:$A$12))," ",REPT(" ",99)),ROW(A1)*99,99))*1+COLUMN(A1)-1),INDEX(SUBSTITUTE(TRIM(MID(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(INDEX(TRIM(MID(SUBSTITUTE(SUBSTITUTE(INDEX($A$7:$A$12,ROUNDUP(ROW(A1)/6,0))," "," ")," ",REPT(" ",99)),ROW($1:$10)*99-98,99)),TRIM(MID(SUBSTITUTE(REPT(IF(LEN(INDEX($A$7:$A$12,ROUNDUP(ROW(A1)/6,0)))-LEN(SUBSTITUTE(INDEX($A$7:$A$12,ROUNDUP(ROW(A1)/6,0)),"*",""))>4," 1 10 3 7 6 6"," 1 9 3 7 6 6"),COUNTA($A$7:$A$12))," ",REPT(" ",99)),ROW(A1)*99,99))*1),"H=",""),"MM",""),"*",REPT(" ",99)),ROW($1:$4)*99-98,99)),"PCS",""),TRIM(MID(SUBSTITUTE(REPT(" 1 1 1 1 1 3",COUNTA($A$7:$A$12))," ",REPT(" ",99)),ROW(A1)*99,99))*1+COLUMN(A1)-1))) 下拉 右拉 不改了 在原公式加加减减 越来越长 等有时间 在看看其他方法 |