本帖最后由 hcm19522 于 2023-3-9 09:44 编辑
G2{=LOOKUP(1,0/MMULT(N(LEFT(C$2:C$7,RIGHT(SMALL(IF(MID(C$2:C$7&IF(ISERR(FIND("-",C$2:C$7)),"-",""),COLUMN(A:Z),1)="-",COLUMN(A:Z))+ROW(2:7)/1%,ROW($1:$6)*26),2))&TRIM(MID(SUBSTITUTE(TRIM(RIGHT(SUBSTITUTE(C$2:C$7&IF(ISERR(FIND("-",C$2:C$7)),"-",""),"-",REPT(" ",99)),99)),",",REPT(" ",99)),{1,2,3,4}*99-98,99))=F2),{1;1;1;1}),D$2:D$7)
{=IFERROR(LOOKUP(1,0/(F2=C$2:C$7),D$2:D$7),LOOKUP(1,0/FIND(LEFT(F2,MAX((MID(F2,ROW($1:$19),1)="-")*ROW($1:$19))),C$2:C$7)/FIND(","&MID(F2,MAX((MID(F2,ROW($1:$19),1)="-")*ROW($1:$19))+1,9)&",",SUBSTITUTE(C$2:C$7,"-",",")&","),D$2:D$7))
|