在sheet1的c1写公式:
=index(sheet2!b:b,match(max(if((sheet2!a$2:a$100=a1)*(sheet2!c$2:c$100=b1),sheet2!d$2:d$100)),if((sheet2!a$2:a$100=a1)*(sheet2!c$2:c$100=b1),sheet2!d$2:d$100),)+1)
这是数组公式,按ctrl+shift+enter三键结束
下拉填充
sheet1表C1输入公式:
=INDEX(Sheet2!B:B,RIGHT(MAX((Sheet2!A$2:A$100=A1)*(Sheet2!C$2:C$100=B1)*Sheet2!D$2:D$100*1000+ROW($2:$100)),3))
公式以CTRL+SHIFT+ENTER三键结束。
将公式向下复制。
还是用用高级筛选比较简单