How to Use XLOOKUP in Excel (Step-by-Step Guide)

Author picture

Written By Prokhor Sikder

Last Updated on April 16, 2026
3D isometric illustration of Excel XLOOKUP showing a search value connected through spreadsheet cells to a result, with a central green Excel logo on a clean grey background
ON THIS PAGE

How to use XLOOKUP in Excel is one of the first things you should learn if you’re tired of scrolling through rows and matching data manually.

“Why do I have to scroll and match things manually every time?”

Yeah, that gets old fast.

If you’ve ever tried to match names, IDs, or prices across columns, you know how messy it can get.

Here’s the good news:

XLOOKUP lets you find and return data instantly with one formula.

Let’s break it down step by step.

XLOOKUP Formula in Excel

The basic XLOOKUP formula is:

=XLOOKUP(lookup_value, lookup_array, return_array)

Here’s what each part means:

  • lookup_value = the value you want to find
  • lookup_array = the range where Excel looks for that value
  • return_array = the range Excel pulls the result from

The commas are important because they separate each part of the formula. In other words, each comma tells Excel where one argument ends and the next one begins.

Key Takeaways

  • XLOOKUP replaces manual matching by letting you find and return data instantly with a single formula
  • The formula works using three main parts: lookup value, lookup array, and return array
  • You don’t need complicated formulas anymore. XLOOKUP is simpler and more flexible than older functions like VLOOKUP
  • Always lock your ranges using F4 before dragging the formula, or your results will break
  • XLOOKUP can pull data from another sheet without any extra setup, which makes it useful for real-world messy data
  • You can handle missing values easily by adding a fallback like “Not Found” instead of errors
  • It works both vertically and horizontally, so you’re not limited to one data layout
  • Once set up, the formula updates automatically when your data changes, saving time on repeated work 

How to build & use an XLOOKUP formula in Excel

Steps:

  1. Select the cell where you want the result
  2. Start the XLOOKUP formula
  3. Select the lookup value
  4. Select the lookup array
  5. Select the return array
  6. Set optional parameters (if needed)
  7. Press Enter and apply the formula

Step 1: Select the cell where you want the result

Click on the cell where you want Excel to return the matched value. This is where your result will appear after the formula runs.

Excel sheet showing XLOOKUP result column with Order Amount cell selected next to Client Name list

Step 2: Start the XLOOKUP formula

Type = and then type XLOOKUP(

Excel will show a small helper box with all the arguments you need to fill. Don’t worry about memorizing them yet. You’ll get used to it after a few uses.

excel showing user typing =XLOOKUP formula in Order Amount column with function suggestion dropdown visible

Step 3: Select the lookup value

Now click the cell that contains the value you want to search for. For example, if you’re trying to find a client’s order amount, click the cell with the client name, such as E2.

This is what Excel will try to match.

After selecting that cell, type a comma (,) to move to the next part of the XLOOKUP formula. Your formula should now look like this:

 Excel showing XLOOKUP formula with lookup value selected from Client Name column (E2 cell)

Step 4: Select the lookup array

Next, select the column or range where Excel should look for that value.

This is your “search area”.

If your client names are in column A, select that entire column or range. Then type a comma (,) to move to the next part.

Excel showing XLOOKUP formula with lookup array selected from Client Name column (A2:A21 range)

Step 5: Select the return array

Now select the column that contains the result you want. If you want order amounts, select the column where those amounts exist.

So basically:

  • Lookup array = where to search
  • Return array = what to bring back
Excel showing XLOOKUP formula with return array selected from Order Amount column (B2:B21 range)

Step 6: Press Enter and apply the formula

Close the bracket ) and press Enter.

red arrow pointing to the closing bracket

You’ll get your result instantly.

red arrow showing XLOOKUP result returning order amount (910.85) for selected client name

To apply it to other rows:

  • Double-click the small square at the bottom-right of the cell
  • Or drag it down

One important thing here…

Before dragging, lock your ranges using F4.

Otherwise, Excel will shift your ranges and break your formula.

Excel showing XLOOKUP formula results filled down in Order Amount column using drag handle

How to use XLOOKUP in Excel with two sheets

You’re not always working in one sheet. Real data is messy.

Sometimes your lookup data is in another sheet. XLOOKUP handles that easily.

Steps:

  1. Start the XLOOKUP formula in your current sheet
  2. Select the lookup value
  3. Switch to the second sheet
  4. Select the lookup array
  5. Select the return array
  6. Lock the ranges and press Enter

Step 1: Start the formula

Go to your working sheet and type:

=XLOOKUP(

Step 2: Select the lookup value

Click the value you want to search for (like a product name or client name).

Step 3: Switch to the second sheet

Now, click the sheet tab where your data exists.

red arrow pointing to the existing tab

Your formula bar will still stay active.

Excel sheet with an XLOOKUP formula being typed in the formula bar

Step 4: Select the lookup array

Select the column that contains the matching values.

For example, all client names.

Step 5: Select the return array

Now select the column that contains the result you want.

For example, prices or order values.

Step 6: Lock the ranges and press Enter

Press F4 on both arrays to lock them.

Close the bracket and press Enter.

Now drag the formula across or down as needed.

Excel screenshot with XLOOKUP formula showing selected lookup and return ranges highlighted with red arrows

What does XLOOKUP do in Excel?

XLOOKUP searches for a value in one place and returns a related value from another place.

Simple example:

  • Find a name
  • Return the salary

Instead of manually scanning rows, Excel does it instantly.

It works both vertically and horizontally, which older functions struggled with.

How does XLOOKUP work in Excel?

Think of XLOOKUP like this:

You give Excel 3 main things:

  1. What to search
  2. Where to search
  3. What to return

Excel goes through the lookup array, finds a match, and pulls the value from the return array.

If it doesn’t find anything, it can return a custom value like “Not Found”.

It’s dynamic too. If your data changes, results update automatically.

Where is the XLOOKUP function in Excel?

You won’t find XLOOKUP as a button.

It’s a formula.

Just type =XLOOKUP( in any cell, and Excel will show you the function helper.

If you want help while building it:

  • Click the fx icon next to the formula bar
  • It opens a guide with all arguments explained

FAQs

When was XLOOKUP added to Excel?

XLOOKUP was introduced with Microsoft 365 and later added to Excel 2021. It’s part of the newer generation of Excel functions.

What version of Excel has XLOOKUP?

XLOOKUP works in:

  • Excel for Microsoft 365
  • Excel 2021 and newer

Older versions like Excel 2016 or 2019 don’t support it.

Why does my Excel not have XLOOKUP?

Most likely, you’re using an older version of Excel.

If XLOOKUP doesn’t show up:

  • Check your Excel version
  • Update to Microsoft 365 or Excel 2021

Without that, the function simply won’t be available.

Share