how to create xlookup in excel

Master Excel: Step-by-Step Guide on Creating XLOOKUP

By Richard Wilson
AD

Are you tired of complex VLOOKUP and INDEX MATCH functions in Excel? Introducing XLOOKUP, a powerhouse function that simplifies horizontal and vertical lookups. It's designed to replace these older functions and much more. Today, we'll guide you through creating an XLOOKUP in Excel, step by step.

Before diving in, ensure you're using Excel for Microsoft 365 (the new version has the XLOOKUP function). If you're using an older version, we'll show you a workaround using dynamic arrays and spill range features.

Understanding XLOOKUP Syntax

The basic syntax of the XLOOKUP function is as follows:

AD
30+ Excel Copy & Paste Tricks You Must Know - Mouse Keyboard Autofill Paste Special and More! - PakAccountants.com
30+ Excel Copy & Paste Tricks You Must Know - Mouse Keyboard Autofill Paste Special and More! - PakAccountants.com
XLOOKUP function in #excel better than VLOOKUP
XLOOKUP function in #excel better than VLOOKUP
How to use the XLOOKUP function in Excel with 7 Examples! | MyExcelOnline
How to use the XLOOKUP function in Excel with 7 Examples! | MyExcelOnline

XLOOKUP(lookup_Lookup_Array, lookup_vector, returnarray)

We'll break down each component:

Advanced XLOOKUP in Excel | Powerful Formula Tricks You Must Know | Excel Tips
Advanced XLOOKUP in Excel | Powerful Formula Tricks You Must Know | Excel Tips
Lookup function in excel easy #excel #lookup #vlookup #xlookup #exceltraining #exceltips #exceltrick
Lookup function in excel easy #excel #lookup #vlookup #xlookup #exceltraining #exceltips #exceltrick
How to use Excel VLOOKUP 2019
How to use Excel VLOOKUP 2019

lookup_Lookup_Array

The cell or range you're looking up in.

lookup_vector

The range where the lookup value is found.

AD

returnarray

The cell or range that XLOOKUP returns a value from, based on the match.

Learn Excel VLOOKUP - Comprehensive Guide
Learn Excel VLOOKUP - Comprehensive Guide
How to vlookup excel (Step by step) - How To Do Topics
How to vlookup excel (Step by step) - How To Do Topics
How to Use the NEW & IMPROVED Excel XLOOKUP (with 5 Examples)
How to Use the NEW & IMPROVED Excel XLOOKUP (with 5 Examples)
Learn XLOOKUP
Learn XLOOKUP
How to use XLOOKUP with Multiple Criteria
How to use XLOOKUP with Multiple Criteria
Mastering Excel Lookup Functions: A Quick Guide
Mastering Excel Lookup Functions: A Quick Guide

Creating an XLOOKUP Function

Let's say you have a list of fruits with their respective prices. You want to lookup the price of a specific fruit using XLOOKUP.

Assume your data looks like this:

AD
FruitPrice
Apple0.5
Banana0.3
Orange0.7

To lookup the price of 'Apple', use:

How to VLOOKUP in 30 seconds
How to VLOOKUP in 30 seconds
How to use the HLOOKUP Function in Excel - Tutorial
How to use the HLOOKUP Function in Excel - Tutorial
How to Use XLOOKUP in Excel: Step-By-Step + Examples
How to Use XLOOKUP in Excel: Step-By-Step + Examples

=XLOOKUP(B4,'Fruit', 'Price')

Wildcard and Exact Match Options

By default, XLOOKUP uses approximate matching. To make it an exact match, use match_mode:

AD

XLOOKUP(lookup_Lookup_Array, lookup_vector, returnarray, [match_mode])

Returning Multiple Values

You can return multiple values using if_empty:

XLOOKUP(lookup_Lookup_Array, lookup_vector, returnarray, [match_mode], [search_mode], [if_empty])

Workaround for Older Excel Versions

If you're using an older version that doesn't have XLOOKUP, use dynamic arrays and spill range features for a similar effect:

=FILTER(Price, Fruit=B4)

Now you're equipped to create powerful XLOOKUPs in Excel! Happy calculating, and until next time, keep exploring Excel's vast potential.

AD