Loading…
Loading…
XLOOKUP has more tricks: the 5th argument match_mode finds the next larger (1) or next smaller (-1) item, and the 6th search_mode can search from the last match backwards (-1). Lookup and return ranges must be the same size.
Syntax
XLOOKUP(value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode])
Example: =XLOOKUP("Ana",A2:A7,B2:B7,"none",0,-1) returns the latest order for Ana.
Common mistakes
Read the lesson, then try it yourself in a live spreadsheet.