Lookup Database (Multiple criteria)

假如想象 提交于 2019-12-12 02:52:54

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!