XLOOKUP Function
Find a value in a row or column and return the matching item of another row or column. lookup_value is the value to find, lookup_array the row or column to search and return_array the values to return; a return_array with several columns returns the whole row. if_not_found is returned when there is no match (#N/A otherwise). match_mode is 0 for an exact match (the default), -1 for the next smaller item, 1 for the next larger item or 2 for a wildcard match. search_mode is 1 to search from the first item (the default), -1 from the last, and 2 or -2 for a binary search of sorted data.
Syntax
XLOOKUP(lookup_value, lookup_array, return_array, if_not_found, match_mode, search_mode)
Category: Lookup. Minimum arguments: 3. Maximum arguments: 6.
Available for supported offline calculation.
Examples
=XLOOKUP("Product sales",A4:A6,B4:B6,"Not found")
Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.