将公式改为
=INDEX(Sheet1!C:C,MAX((She扩机et1!$A$2:$A汽量喜握虽复然已$20=A1)*(Sheet1!$B$虽使图万注务施整2:$B$20=B1)*ROW($2:$20)))
双击该单元格,按“Shi字个尼境很ft"+"Ctrl"+"Enter"三键完成公式,这时公式多了{}再将公常紧式向下填充,如图:
不要”0“值,可在”工具“-->”选项“-->里进行设置,也可将公式改为:
=IF(OR(A1="",B1=""),"",INDEX(Sheet1!C:C,MAX((Sheet1!$A$2:$A$20=A1)*(Sheet1!$B$2:$B$20=B1)*ROW($2:$20))))