Excel XLOOKUP Explained: What It Is and How to Use It

XLOOKUP is a powerful Excel function that allows you to retrieve data from different tables, worksheets, or even separate workbooks. It’s ideal for situations where you have data spread across multiple locations, making it a versatile and dynamic solution compared to traditional functions like VLOOKUP.

YouTube video

Example Scenario: Linking Employee Projects

Imagine you’re working with an employee table that includes details like employee IDs, names, departments, and emails. You want to match these employees with their respective projects, which are stored in a separate table containing project IDs and employee IDs.

The Problem with VLOOKUP

When using VLOOKUP, you’ll face limitations if the key column (e.g., employee ID) is not to the left of the data you want to retrieve (e.g., project ID). VLOOKUP can only search to the right, which makes it problematic in certain scenarios.

Why XLOOKUP is Better

Unlike VLOOKUP, XLOOKUP allows you to:

  • Search in any direction: left, right, up, or down.
  • Work with non-adjacent columns.
  • Retrieve data from tables, ranges, or even across different worksheets and workbooks.

How to Use XLOOKUP

  1. Lookup Value: Identify the value you want to find (e.g., employee ID).
  2. Lookup Array: Specify the column where this value is located.
  3. Return Array: Indicate the column that contains the data you want to retrieve (e.g., project ID).

By following these steps, XLOOKUP seamlessly retrieves the matching data.

Key Features of XLOOKUP

  • Works Across Multiple Data Sets: You can reference tables, worksheets, or even workbooks.
  • Handles Disorganized Data: Columns don’t need to be next to each other.
  • User-Friendly Syntax: With fewer parameters to manage, it’s simpler than VLOOKUP.

Real-Life Example: Matching Data in Non-Adjacent Columns

Let’s say your project table has project IDs in the leftmost column and employee IDs in the rightmost column. XLOOKUP can still match the employee IDs and return the corresponding project IDs. It’s as simple as specifying the lookup value, lookup array, and return array.

Important Tips for Using XLOOKUP

  1. Lock Ranges: When referencing ranges outside of a table, use absolute references to ensure the formula works when dragged.
  2. Ensure Compatibility: XLOOKUP is available only in Excel 2021 and newer versions. If you’re using an older version, you may need to rely on INDEX-MATCH.

Conclusion

XLOOKUP is a powerful, flexible, and user-friendly function that addresses the limitations of VLOOKUP. If you’re using Excel 2021 or newer, it’s a must-have tool for streamlining your workflows. Whether you’re linking data from multiple tables or managing complex workbooks, XLOOKUP will save you time and effort.

This is Franco with Wisdify. I hope this guide helped you understand the basics of XLOOKUP and its practical applications. Have a great day!

Picture of Franco Caoili, CPA, CMA

Franco Caoili, CPA, CMA

More to explore

Corey

Corey is the owner of Wisdify.  He is passionate about learning and development, he loves helping people achieve their professional and personal goals. Corey is a big believer in the power of online learning and community with 15 years of finance and accounting experience.

Kelsey Murphy

Kelsey is Wisdify’s expert content developer. Taking feedback from our students, Kelsey creates extremely relevant blog posts and leads the development of Wisdify’s other free resources.

Prior to Wisdify, Kelsey worked as a business technology strategy consultant for Forrester, a global research and advisory firm. While there, she acted as project manager for numerous research-based consulting projects.

Kelsey earned a BA in Economics and Mathematics from Wellesley College.

Madison Bess

Madison oversees the social media strategy at Wisdify and makes sure we stay closely connected with our students, receive their feedback, and provide our students with valuable information.

Prior to Wisdify, Madison successfully ran the social media accounts for multiple companies. She also found time to start her own personal training company (which she still runs).

Madison earned a BA in English from Brigham Young University.

Maryn Coughran

Maryn is a co-founder and leads the marketing and outreach efforts at Wisdify. She ensures we are connecting with our customers, hearing their feedback, and then implementing their suggestions.

Prior to Wisdify, Maryn co-founded (along with Nate) BostonExcel, a Microsoft Excel training company that worked with dozens of companies in virtually every industry. Maryn’s clients included numerous Fortune 1000 companies, prestigious universities, startups and everything in between. She also happened to write and illustrate a children’s book. Let’s just say she’s a woman of many talents.

Maryn earned a BA in Economics from Wellesley College.

Joe

Joe is the owner of Wisdify.  He is passionate about learning and development, he loves helping people achieve their professional and personal goals. Joe is a big believer in the power of online learning and community with 20 years of finance and accounting experience.

 

The Buckaroos

Gwyn, Jack, and Kate are the adorable tow-heads that lead up Wisdify’s campaigns on cuteness, energy, and sleep-deprivation.