查找数据库(多个条件) [英] Lookup Database (Multiple criteria)

查看:126
本文介绍了查找数据库(多个条件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下困难,也许你可以帮助。

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:


  • 搜索第2列A

  • 过滤根据第3列的值为B1的条件可用的行。

  • 根据列A的最近日期过滤可用行

  • 返回列D中的值

  • 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

谢谢,
Phil

Thanks, Phil

推荐答案

你可以尝试这个公式:

=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))))

这是一个数组公式,所以你必须使用 Ctrl + < kbd> Shift + 输入它按照预期工作。

This is an array formula however, so you'll have to use Ctrl+Shift+Enter to make it work as intended.

这篇关于查找数据库(多个条件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆