What is the difference between LOOKUP, VLOOKUP, and XLOOKUP?
What these three functions have in common is that they are all designed to search for values and references. Simply put, XLOOKUP() is an improvement of VLOOKUP(), which in turn is an improvement of LOOKUP(). In this post, I will break down the functions to clarify what differentiates them and when they can be used. To keep it simple, I have chosen to show the functions mostly in their default behavior. The functions will therefore be presented in their purest form, with one or two exceptions.
For those who want to use the same simple dataset, the file is also included with the functions already filled in. However, it is encouraged to test with other datasets as well, preferably larger ones. Although the arguments of these functions are not very difficult to understand, some practice may still be required. The simplicity of primarily LOOKUP() and VLOOKUP() is also what can make working with these functions challenging, which will be examined more closely.
Overview of the functions
LOOKUP() – performs an approximate match in a single row or column and returns the corresponding value from another row/column range.
VLOOKUP() – is a function used to look up data in a vertically organized table. It can be used for approximate, exact, or partial matches. The lookup values must appear in the first column of the table.
XLOOKUP() – is a flexible replacement for LOOKUP(), VLOOKUP(), HLOOKUP(), and the combination of INDEX() / MATCH(). XLOOKUP() can be used for approximate, exact, and partial matches in vertical or horizontal ranges.
How to use LOOKUP
LOOKUP() is used to search in a single row or column and find a value from the same position in another row or column. LOOKUP() has useful default behaviors when solving certain problems. For example, LOOKUP() can be used to retrieve an approximately matched value instead of a position, or to find the last value in a row or column.
Example 1
In the example below, you can see how to search using an employee’s name to find out which course they are attending.
















