where item (B5:B15) and price (D5:D15) are named ranges. The same formula without named ranges is: XLOOKUP’s arguments are configured as follows:
The lookup_value comes from cell F5 The lookup_array is the named range item (B5:B15) The return_array is the named range price (D5:D15) The not_found argument is provided as “no match” The match_mode is set to 0 (exact match) The search_mode is set to -1 (last to first)
At each row, XLOOKUP looks for the item name in column F in B5:B15, starting at the bottom. When an exact match is found, the corresponding price in column D is returned. If no match is found, XLOOKUP will return #N/A. Note: this example depends on data being sorted by date in ascending order. If data is unsorted, see this example.
Dave Bruns
Hi - I’m Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.