XLOOKUP is a powerful function that allows Microsoft 365 subscribers to look up
values in Excel. In this post, we'll walk you through the basics of using XLOOKUP and
provide examples of more advanced capabilities.
Simple Example
Let's start with a simple example to understand the fundamentals of how XLOOKUP
works. We'll look up the price of a chocolate chip cookie using the first three required
functions. We'll also demonstrate how you can use VLOOKUP and HLOOKUP.
Required Functions
lookup_value
lookup_array
return_array
The ones in bold are required, while the others are optional. Note that there are more
advanced capabilities of the XLOOKUP function that we'll cover later.
XLOOKUP with Vertical Lists
XLOOKUP works great when you have a vertical list of data. If a cookie type doesn't
exist, you can provide a friendlier message back to the user. Here's the formula for
XLOOKUP:
=XLOOKUP(lookup_value,lookup_array,return_array,
[if_not_found],[match_mode],[search_mode])
You could type it in directly or use the function helper.
XLOOKUP with Horizontal Lists
XLOOKUP works just as well with horizontal lists of data. You can also use
XLOOKUP across multiple worksheets. It can even return multiple values, which you
can nest within another function.
Conclusion
XLOOKUP is a powerful function that can save you time when working with large data
sets. We hope this post has been informative and helpful. If you have any comments or
feedback, please let us know!
Combined Functions