问题
Im having difficulty with the following, maybe you can help.
I need a formula to lookup the following details. I need it to do the following:
- Search Column 2 for "A"
- Filter the available rows by the criteria of column 3 having a value of "B1"
- Filter the available rows by the most recent date from column A
- Return the value from column D
DATE A A1 VALUE 1 DATE C D1 VALUE 1 DATE B F1 VALUE 1 DATE A A1 VALUE 1 DATE C P1 VALUE 1

Thanks, Phil
回答1:
You can try this formula:
=INDEX(D1:D6,MATCH(9^99,IF(IF((B1:B6="A")*(C1:C6="B1"),A1:A6)=MAX(IF((B1:B6="A")*(C1:C6="B1"),A1:A6)),ROW(D1:D6))))
This is an array formula however, so you'll have to use Ctrl+Shift+Enter to make it work as intended.
来源:https://stackoverflow.com/questions/18942687/lookup-database-multiple-criteria