=IF(C4="中级教师",LOOKUP(OFFSET(C4,,MATCH($P$2,$D$3:$O$3)-2),OFFSET(INDIRECT("R"&MATCH($P$2,$R:$R)),,5,,4),$W$3:$Z$3),LOOKUP(OFFSET(C4,,MATCH($P$2,$D$3:$O$3)-2),OFFSET(INDIRECT("R"&MATCH($P$2,$R:$R)),,1,,4),$S$3:$V$3))&"-"&IF(C4="中级教师",LOOKUP(OFFSET(C4,,MATCH($P$2,$D$3:$O$3)-1),OFFSET(INDIRECT("R"&MATCH($P$2,$R:$R)),,5,,4),$W$3:$Z$3),LOOKUP(OFFSET(C4,,MATCH($P$2,$D$3:$O$3)-1),OFFSET(INDIRECT("R"&MATCH($P$2,$R:$R)),,1,,4),$S$3:$V$3))&"-"&IF(C4="中级教师",LOOKUP(OFFSET(C4,,MATCH($P$2,$D$3:$O$3)-0),OFFSET(INDIRECT("R"&MATCH($P$2,$R:$R)),,5,,4),$W$3:$Z$3),LOOKUP(OFFSET(C4,,MATCH($P$2,$D$3:$O$3)-0),OFFSET(INDIRECT("R"&MATCH($P$2,$R:$R)),,1,,4),$S$3:$V$3)) |