How To Use Excel's XLOOKUP Function [Guide 2024] (2024)

By Chris Newman•Updated: 09/04/19•8 min read

Excel » Excel Formulas

How To Use Excel's XLOOKUP Function [Guide 2024] (1)

On August 28th, 2019, Microsoft unveiled a new Excel function with the intent of making 3 beloved and rivaled functions obsolete. The targets were:

  • VLOOKUP
  • HLOOKUP
  • INDEX/MATCH

This new function called XLOOKUP can search both backward/forwards and vertically/horizontally, all with streamlined inputs. The understanding of this new function will truly be the next measuring stick (that VLOOKUP has served) to quickly assess employee Excel skills across the globe.

While the XLOOKUP won’t be mainstream for another year or so, it will be to your benefit to understand the capabilities of this function so you can start utilizing it once you have access to its capabilities.

Here’s a look at XLOOKUP in action!

How To Use Excel's XLOOKUP Function [Guide 2024] (2)

XLOOKUP Version Availability

You may be wondering if you have the ability to use XLOOKUP in your version of Excel. XLOOKUP has been released into the following versions of Excel:

  • Excel Online
  • Microsoft 365
  • Excel 2021 or later

If you are unsure of which version of Excel you are using, you can also determine if you have the XLOOKUP function available by trying to type the function’s name in the Formula Bar. If the XLOOKUP name appears in the tooltip, then you know you have access to it!

How To Use Excel's XLOOKUP Function [Guide 2024] (3)

How To Use XLOOKUP

From the screenshot example above, you should feel very comfortable with XLOOKUP’s inputs as they are very similar in format to VLOOKUP and HLOOKUP. You will still reference a lookup value, however, instead of specifying an entire data set range, you can simply specify the ID column and the return value column (similar to a SUMIF function). This new input format lends much more flexibility to the lookup function and note that you now only have 3 required inputs as the Match Mode input is now optional.

How To Use Excel's XLOOKUP Function [Guide 2024] (4)

1. Lookup_Value - This single-cell input is the value you are trying to look for using XLOOKUP

2. Lookup_Array - This range input provides an area for XLOOKUP to search for the Lookup_Value

3. Return_Array - This range input provides an area for XLOOKUP to return a value associated with the Lookup_Value

4. If_Not_Found (Optional) - You can use this input to control the return value if the lookup value cannot be found (which normally produces a #N/A error). If you want to output a text value if an error occurs, remember to place “ “ around your text.

5. Match_Mode (Optional) - With this optional input, there are four options you can choose from to determine how the XLOOKUP will search through the lookup array range you provide. Unlike VLOOKUP, XLOOKUP defaults to an exact match if you do not specify a value for this input (which is what most users use anyway).

  • [0] - Exact match (Default)
  • [-1] - Exact match or next smaller item (Vlookup’s approximate match)
  • [1] - Exact match or next larger item
  • [2] - Wildcard character match

6. Search_Mode (Optional) - If you need to search in a particular order, there are a variety of options to apply.

  • [1] - Search first-to-last (Default)
  • [-1] - Search last-to-first
  • [2] - Binary search (sort in ascending order)
  • [-2] - Binary search (sort in descending order)

Benefits: XLOOKUP vs. VLOOKUP

Exact Match Default

How many times have you had to fill out a VLOOKUP function and type either a FALSE or 0 into the last input to ensure you look up an exact match? This annoyance is now gone as XLOOKUP defaults to an exact match!

No Disruptions From Inserting Rows/Columns

Since XLOOKUP inherently uses a range to point to the area where the result resides rather than a static numerical reference, there is no risk of ruining your lookup formula when columns are inserted into the spreadsheet. I know everyone reading this has had this very situation happen to them at least once while using a VLOOKUP and it definitely is not fun discovering your formulas are either broken or returning the wrong data!

Search Backwards

One of the largest pitfalls to VLOOKUP was the ID column had to be the most left column in your data set. XLOOKUP can search both forwards and backwards, so you no longer need to worry about moving your ID column around your spreadsheet.

Horizontal & Vertical Lookups

XLOOKUP has the flexibility to perform both horizontal and vertical lookups, essentially warranting VLOOKUP and HLOOKUP to be no longer needed. To seasoned Excel users this might not be a big deal, but many users who first master VLOOKUP typically get confused when trying to understand how HLOOKUP works (even though conceptually it acts in a very similar way). XLOOKUP will be much more approachable for beginners since the lookup is performed based on the direction of the search range provided, not which function you are using.

Returns A Range Instead Of A Value

An extremely neat feature about XLOOKUP is it does not return value it returns the cell reference of what it looked up. This means you could theoretically sum a range between two XLOOKUPs.

Example: = SUM( XLOOKUP():XLOOKUP() )

It also means XLOOKUP can return multiple cells within a single lookup.

XLOOKUP Examples

XLOOKUP Replaces VLOOKUP

Let’s look at a basic use for a VLOOKUP function and see how it differs from the new XLOOKUP function. In the example dataset, we will use an employee name/city data table (Range H2:J10) to bring in the employee’s name to our sales commission table (Range B2:F10). We’ll look at using the VLOOKUP function first.

How To Use Excel's XLOOKUP Function [Guide 2024] (5)

Notice with the VLOOKUP there are four inputs needed, the whole data table needs to be referenced, and we have a static reference to the column we wish to search in/return from.

Now let’s look at the same example but utilizing the XLOOKUP function instead.

How To Use Excel's XLOOKUP Function [Guide 2024] (6)

With XLOOKUP, we only need to enter three inputs. Only the data we are utilizing needs to be referenced. There are no static inputs that would need to be changed if we were dragging this formula across multiple columns.

XLOOKUP Replaces HLOOKUP

HLOOKUP is used very prominently with data that utilizes dates. This is because spreadsheets with dates are typically displayed across the spreadsheet.

In the following example, the HLOOKUP function is used to pull the cost amount associated with the company’s first quarter. If the user decided to change “Q1” to “Q2”, the HLOOKUP would automatically pull in the second quarter without any need to adjust the formula.

How To Use Excel's XLOOKUP Function [Guide 2024] (7)

The below image shows how XLOOKUP can perform the very same lookup.

How To Use Excel's XLOOKUP Function [Guide 2024] (8)

XLOOKUP Replaces INDEX/MATCH

Example 1 - INDEX/MATCH

INDEX/MATCH formula has been long preferred for its ability to perform right-to-left lookups (which VLOOKUP is incapable of doing). The below image shows an example where the Employee IDs are stored at the end of the lookup table (Range H:J). The below example shows how an INDEX/MATCH formula can easily perform a lookup based on Employee ID no matter where that ID column is located on the spreadsheet.

How To Use Excel's XLOOKUP Function [Guide 2024] (9)

Since XLOOKUP isolates the “Lookup” column and the “Return” columns, there are no restrictions on where your ID column is located as well. Let’s take a look at how XLOOKUP can perform the exact same lookup as our previous INDEX/MATCH example but with a much more streamlined approach.

How To Use Excel's XLOOKUP Function [Guide 2024] (10)

Example 2 - INDEX/MATCH/MATCH

Replacing an INDEX/MATCH is nice, but what about the ultra-dynamic INDEX/MATCH/MATCH? This combination of functions allows you to dynamically look both horizontally and vertically at the same time.

Here is an example where a single Index/Match/Match can be used to pull in the Name and City column data into our table.

How To Use Excel's XLOOKUP Function [Guide 2024] (11)

So how can we replicate this capability with XLOOKUP? The short answer is you can’t…..with a single XLOOKUP. Let me introduce you to the Double XLOOKUP!

This method is a little tricky to grasp at first, but it all relies on XLOOKUP’s ability to return a Range not a Value as its answer. I wrote a more in-depth article on the mechanics of a Double XLOOKUP, but essentially we will be using a second XLOOKUP function to return the cell range reference that is used for the 3rd input in the first XLOOKUP function. Sounds fun, right?

Here’s how it would look in practice:

How To Use Excel's XLOOKUP Function [Guide 2024] (12)

I Hope This Helped!

Hopefully, I was able to explain how you can use the new XLOOKUP function to replace a bunch of the common lookup methods in Excel. If you have any questions or suggestions on how to improve this article, please let me know in the comments section below.

Format Excel Charts Like a Pro!!!

Learn my best Excel chart design hacks. These will turn your ugly charts into professionally crafted graphics, leaving your boss speechless!!!

Get These Hacks Now For Free!

How To Use Excel's XLOOKUP Function [Guide 2024] (13)

Keep Learning

Explore more →

How To Sum Dynamic Array Function Spill RangesDifferent Ways to Add Together Dynamic Array Formulas If you are trying to figure out how to apply the addition...
7 Ways To Generate Unique Values List In ExcelThere are many scenarios you may come across while working in Excel where you only desire unique values in a...
How To Use A Double XLOOKUP FormulaHave you heard of an XLOOKUP/XLOOKUP? No, I didn’t stutter in my writing….there is now such a thing as a...

How To Use Excel's XLOOKUP Function [Guide 2024] (17)

Chris Newman

Chris is a finance professional and Excel MVP recognized by Microsoft since 2016. With his expertise, he founded TheSpreadsheetGuru blog to help fellow Excel users, where he shares his vast creative solutions & expertise. In addition, he has developed over 7 widely-used Excel Add-ins that have been embraced by individuals and companies worldwide.

How To Use Excel's XLOOKUP Function [Guide 2024] (2024)

FAQs

How to use the xlookup function in Excel? ›

To do this, type =XLOOKUP( in the ribbon bar. The next step is to insert your lookup criteria. This is the data you're looking to search for. While XLOOKUP supports numbers and text strings, most users will want to specify a cell reference (such as A2).

How do you use Xlookup for multiple results? ›

If your lookup array contains multiple occurrences of the lookup value and you aim to return all matches, XLOOKUP cannot do that. In this case, you can use the FILTER function or the combination of INDEX, SMALL and ROW functions as demonstrated in this tutorial: How to Vlookup multiple matches in Excel.

What to do if XLOOKUP is not working in Excel? ›

Re: Xlookup - not found on the desktop version
  1. Check Formula Language: Ensure that you are using the correct formula language. ...
  2. Language Settings: Go to "Excel" > "Preferences." ...
  3. Test with New Workbook: Create a new, blank workbook and try using the XLOOKUP function. ...
  4. Repair Excel Installation:
Jan 29, 2024

How to use xlookup to find matching data? ›

How to use XLOOKUP – step by step instructions
  1. Write =XLOOKUP( in a cell.
  2. For the lookup_value, Type the name of the salesperson in double quotes (ex: “Jackie”)
  3. Tip: If you have the name of the person in a cell (like G4), you can point to the cell instead of typing the name.
Mar 13, 2024

How do I use Xlookup vs VLOOKUP? ›

XLOOKUP can perform searches from smallest to largest or from largest to smallest but VLOOKUP sort smallest to largest. VLOOKUP required you to input an entire data set, but XLOOKUP only requires you to reference the relevant columns or rows. This way it increases the calculation speed of the spreadsheet.

How to use Excel step by step? ›

Enter your data
  1. Click an empty cell. For example, cell A1 on a new sheet. Cells are referenced by their location in the row and column on the sheet, so cell A1 is in the first row of column A.
  2. Type text or a number in the cell.
  3. Press Enter or Tab to move to the next cell.

Can you use xlookup with two conditions? ›

You can use as many conditions as you need. Just make sure that all the lookup arrays are the same size. Dynamic arrays. You can use XLOOKUP with dynamic arrays, which means that you can spill the results to multiple cells without using old-fashioned Ctrl + Shift + Enter array formulas.

What are the drawbacks of Xlookup in Excel? ›

Some of the drawbacks of XLOOKUP are:
  • It is not compatible with older versions of Excel 2019 and lower.
  • It may not be as flexible as INDEX MATCH for some scenarios, such as returning values from non-contiguous columns.
  • It may not work well with large data sets or volatile formulas.
Jan 24, 2024

What to use instead of xlookup in Excel? ›

The return_array is the range that contains the value you would like to return, C5:C15.
  1. XLOOKUP in Excel.
  2. Use INDEX/MATCH in place of XLOOKUP in Google Sheets.
  3. Use VLOOKUP in place of XLOOKUP in Google Sheets.
  4. Use QUERY in place of XLOOKUP in Google Sheets.
  5. Use FILTER in place of XLOOKUP in Google Sheets.

Is Xlookup no longer available? ›

XLOOKUP was introduced after Excel 2019 was launched. All new functions come only in Office 365. Hence, you won't have XLOOKUP in Excel 2019. When new version of Excel is launched say Excel 2022, then all new functions rolled between Excel 2019 and launch of Excel 2022 will become part of Excel 2022.

How to use xlookup with example? ›

Examples. Example 1 uses XLOOKUP to look up a country name in a range, and then return its telephone country code. It includes the lookup_value (cell F2), lookup_array (range B2:B11), and return_array (range D2:D11) arguments. It doesn't include the match_mode argument, as XLOOKUP produces an exact match by default.

How to activate xlookup in Excel? ›

Select the cell where you want to place the XLookup Excel formula. 3. Type “=” into that cell and then type “XLookup.” Click on the “XLookup” option that comes up in the dropdown.

Does xlookup need an exact match? ›

XLOOKUP With Exact and Approximate Match

In XLOOKUP, the default is to return an exact match (if one is found) or an approximate match (if one cannot be found).

How to copy an xlookup formula down a column? ›

Click the cell with the formula to select it. Press Ctrl + C to copy the formula. Select a cell or a range of cells where you want to paste the formula (to select non-adjacent ranges, press and hold the Ctrl key). Press Ctrl + V to paste the formula.

How to perform VLOOKUP between two sheets? ›

How to do VLOOKUP in Excel with two spreadsheets
  1. Click cell E2 of Sheet 1.
  2. Enter =VLOOKUP(B2,Sheet2!$A$2:$C$10,3,FALSE) . Here's a breakdown of the modified table array: Sheet2!: This is the name of the spreadsheet that contains the given cell range. ...
  3. Press Enter or Return.
Nov 6, 2023

Top Articles
"Reskin" rebirth! The two-and-a-half-year-old boy had a large black mole on his head removed
3319 Pet Rescue
Srtc Tifton Ga
Faridpur Govt. Girls' High School, Faridpur Test Examination—2023; English : Paper II
Blanchard St Denis Funeral Home Obituaries
Western Union Mexico Rate
Mohawkind Docagent
Horned Stone Skull Cozy Grove
Ap Chem Unit 8 Progress Check Mcq
Guardians Of The Galaxy Vol 3 Full Movie 123Movies
Synq3 Reviews
Ivegore Machete Mutolation
Think Up Elar Level 5 Answer Key Pdf
How to find cash from balance sheet?
iOS 18 Hadir, Tapi Mana Fitur AI Apple?
25Cc To Tbsp
Praew Phat
1773X To
White Pages Corpus Christi
Forest Biome
Ac-15 Gungeon
Walgreens Bunce Rd
Jordan Poyer Wiki
Gina Wilson Angle Addition Postulate
BJ 이름 찾는다 꼭 도와줘라 | 짤방 | 일베저장소
Turbo Tenant Renter Login
2000 Ford F-150 for sale - Scottsdale, AZ - craigslist
Free T33N Leaks
Pokémon Unbound Starters
Perry Inhofe Mansion
Texas Baseball Officially Releases 2023 Schedule
W B Crumel Funeral Home Obituaries
Log in or sign up to view
Build-A-Team: Putting together the best Cathedral basketball team
Insideaveritt/Myportal
Oxford House Peoria Il
Bones And All Showtimes Near Johnstown Movieplex
Clima De 10 Días Para 60120
Wasmo Link Telegram
Mugshots Journal Star
Chathuram Movie Download
Weather In Allentown-Bethlehem-Easton Metropolitan Area 10 Days
10 Types of Funeral Services, Ceremonies, and Events » US Urns Online
Dying Light Mother's Day Roof
Minterns German Shepherds
Sapphire Pine Grove
Who uses the Fandom Wiki anymore?
Horseneck Beach State Reservation Water Temperature
French Linen krijtverf van Annie Sloan
St Als Elm Clinic
Maurices Thanks Crossword Clue
Famous Dave's BBQ Catering, BBQ Catering Packages, Handcrafted Catering, Famous Dave's | Famous Dave's BBQ Restaurant
Latest Posts
Article information

Author: Van Hayes

Last Updated:

Views: 6437

Rating: 4.6 / 5 (46 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Van Hayes

Birthday: 1994-06-07

Address: 2004 Kling Rapid, New Destiny, MT 64658-2367

Phone: +512425013758

Job: National Farming Director

Hobby: Reading, Polo, Genealogy, amateur radio, Scouting, Stand-up comedy, Cryptography

Introduction: My name is Van Hayes, I am a thankful, friendly, smiling, calm, powerful, fine, enthusiastic person who loves writing and wants to share my knowledge and understanding with you.