Returns the values in the result range based on the position where a match was found in the lookup range. If no match is found, it returns the closest match. Learn more
XLOOKUP is a function in Google Sheets that searches for a value in a specified range and returns a corresponding value in another specified range. The function takes several arguments:
searchkey: This is the value that you want to search for in the lookuprange.
lookuprange: This is the range of cells that contains the values that you want to search through for the searchkey.
resultrange: This is the range of cells that contains the values that you want to return if the corresponding value in the lookuprange matches the search_key.
missingvalue: This is the value that XLOOKUP will return if it can't find a match for the searchkey.
matchmode: This is an optional argument that specifies how XLOOKUP should match the searchkey with the values in the lookup_range. There are four match modes: exact (default), next larger, next smaller, and wildcard.
searchmode: This is an optional argument that specifies whether XLOOKUP should perform a linear search (default) or a binary search on the lookuprange.
XLOOKUP is a versatile function that can be used in many different scenarios, such as looking up values in a table, matching data across multiple worksheets or workbooks, and searching through large data sets.