简体   繁体   English

索引匹配查找-LAST值

[英]Index Match Lookup - LAST value

Trying to find the LAST value returned from an IndexMatch search, currently it's showing the FIRST. 试图查找从IndexMatch搜索返回的LAST值,当前显示为FIRST。

Tried every variable and configuration of MAX I could think of and multiple Google searches. 尝试了我能想到的MAX的每个变量和配置,以及多个Google搜索。

=INDEX([DG.xlsx]rawdata!$D$3:$D$30000,MATCH(A4,[DG.xlsx]rawdata!$B$3:$B$30000,0))

Any advice? 有什么建议吗?

Do not use MATCH as it will only return the first match. 不要使用MATCH,因为它只会返回第一个匹配项。

Use AGGREGATE: 使用AGGREGATE:

=INDEX([DG.xlsx]rawdata!$D:$D,AGGREGATE(14,6,ROW([DG.xlsx]rawdata!$B$3:$B$30000)/(A4=[DG.xlsx]rawdata!$B$3:$B$30000),1))

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM