简体   繁体   中英

Index Match Lookup - LAST value

Trying to find the LAST value returned from an IndexMatch search, currently it's showing the FIRST.

Tried every variable and configuration of MAX I could think of and multiple Google searches.

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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