0% found this document useful (0 votes)
23 views7 pages

How To Use Excel XLOOKUP Effectively 1727695273

Excel

Uploaded by

Ramya Kiran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views7 pages

How To Use Excel XLOOKUP Effectively 1727695273

Excel

Uploaded by

Ramya Kiran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Master How

to Use Excel
XLOOKUP
Concepts simplified - Part 3

Download the PDF for more details!


If VLOOKUP and HLOOKUP
ever confused you, it’s time
to learn XLOOKUP...

...a more flexible, faster, and


smarter lookup function.

Esther Chinenye Anagu


XLOOKUP

What is XLOOKUP?

XLOOKUP lets you search for a value in a range and return a


corresponding result, but with way more flexibility than VLOOKUP
or HLOOKUP.

Why is XLOOKUP better?

You don’t have to worry about data being vertical (like


VLOOKUP) or horizontal (like HLOOKUP).
You can search in any direction—left, right, top, or bottom.
It gives exact matches by default (no need for the
‘exact/approximate match’ confusion).
It even returns results when values aren't found!

Basic Structure

=XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found],


V
[match_mode], [search_mode])

Esther Chinenye Anagu


XLOOKUP FORMULA SYNTAX
In its simplest form, the XLOOKUP function says:

=XLOOKUP(What you want to look up, where you want to look for it, where
you want to pull the value from, [what to return if not found], [how to
match the lookup value], [which direction to search]).

Here’s a breakdown:

lookup_value: The value you're trying to find.


lookup_array: The range where you're searching for the lookup value.
return_array: The range from which the result will be pulled
(corresponding to your lookup value).
[if_not_found] (optional): What to return if the value isn't found.
[match_mode] (optional): Whether you want an exact match (default)
or approximate match.
[search_mode] (optional): The direction of search, like searching from
top to bottom or bottom to top.

Example

Let’s say you have a list of employees with their Employee ID,
department, and annual salary, and you want to find the department
and salary for a specific employee based on their Employee ID.
V
XLOOKUP searches the Employee ID column and retrieves both the
department and annual salary from the corresponding row.

Esther Chinenye Anagu


Explanation

Lookup Value: The value we want to search for is the Employee ID


"E007," located in cell A2.
Lookup Array: The array we are searching within is the Employee ID
column from the employee table, which spans from A5 to A16.
Return Array: We want to retrieve both the Department and the Annual
Salary. The Department is located in the range C5, and the Annual
Salary is in D5. Unlike VLOOKUP, XLOOKUP can return an array with
multiple items, so a single formula can return both employee name and
department from cells C5:D16.

Esther Chinenye Anagu


Potential Errors and Solutions
#N/A Error

Cause: This error occurs when the lookup value (e.g., "E007") is
not found in the lookup array (A5).
Resolution: Ensure that the value you're searching for exists in
the lookup array. You can also use the optional if_not_found
argument in XLOOKUP to specify a custom message or value to
return if the lookup fails, like this:
=XLOOKUP(A2, A5:A16, C5:D16, "Not Found")

#REF! Error

Cause: This error can happen if the reference used in the


formula is invalid, such as if rows or columns have been deleted.
Resolution: Check to ensure that all referenced ranges (A5, C5)
are still valid and exist in the worksheet.

#SPILL! Error

Cause: This error occurs when XLOOKUP tries to return multiple


results, but there isn't enough space in the adjacent cells to
display them.
Resolution: Make sure there is enough space for the returned
results. Clear any cells that may be obstructing the return range.

Esther Chinenye Anagu


That is basically it.

Repost this if you found it useful.

Want to get more tips?

I empower data enthusiasts with


valuable resources on LinkedIn. Follow
me and ring the bell to stay updated.

Esther Chinenye Anagu

You might also like