【问题标题】:EXCEL TABLE: Find Value based on Latest Date in Column from Multiple CriteriaEXCEL TABLE:根据多个条件的列中的最新日期查找值
【发布时间】:2019-10-04 07:57:24
【问题描述】:

我正在尝试研究如何根据基于多个条件选择的另一列的最新日期从 Excel (Office 365) 表中的列中获取值。我已经编写了获取最新日期的公式,现在我需要从另一列中获取相应的值。我希望始终在 F 列中获得每位客户的最后评论,因此对于 CAMCO,它将是 Last Note。

以下示例:

我在 E 列中的公式是 ={MAX(IF([Customer]=B2,[Date]))}

【问题讨论】:

  • 哪个版本的 Excel?答案会因版本而异
  • 抱歉应该提到版本,我用的是office 365

标签: excel excel-formula excel-tables


【解决方案1】:

要查找最新的笔记,请使用

=INDEX([Note], MATCH([@Customer] & "_" & MAXIFS([Date], [Customer], [@Customer]), [Customer] & "_" & MAXIFS([Date], [Customer], [@Customer]), 0))

或者,如果列 Latest Date per Customer 是永久添加

=INDEX([Note], MATCH([@Customer] & "_" & @[Latest Date per Customer], [Customer] & "_" & [Latest Date per Customer], 0))

仅供参考,您的最新日期查找更好

=MAXIFS([Date], [Customer], [@Customer])

都是标准(非数组)公式

【讨论】:

    猜你喜欢
    • 2018-05-30
    • 1970-01-01
    • 2020-02-13
    • 1970-01-01
    • 1970-01-01
    • 2020-08-29
    • 1970-01-01
    • 2019-05-17
    • 1970-01-01
    相关资源
    最近更新 更多