How to Use XLOOKUP in Excel and Why It Replaces VLOOKUP

VLOOKUP의 왼쪽 열 검색 불가와 수식 깨짐 문제를 해결한 엑셀 XLOOKUP 함수의 기본 사용법과 주요 인수 설정을 알기 쉽게 정리했습니다.

작성자

카테고리:

Ever had to cut and paste columns because the value you needed was to the left of your lookup column? Or typed 0 or FALSE at the end of every formula, only to have the whole sheet break when someone inserted a column? You no longer need nested formulas just to pull data cleanly.

Quick Overview

  • Basic formula: Enter just 3 required arguments as =XLOOKUP(lookup_value, lookup_array, return_array) to search immediately
  • No direction limits: Look up data to the left of your lookup column without moving columns
  • Built-in error handling: Add fallback text in the 4th argument to prevent #N/A errors without using IFERROR
  • Supported versions: Available in Microsoft 365 and Excel 2021 or later (older versions return #NAME?)

What Makes the Classic VLOOKUP So Frustrating?

What Makes the Classic VLOOKUP So Frustrating?

For years, VLOOKUP has been the go-to lookup function in Excel. But its structural limitations often caused unnecessary delays.

The biggest issue is one-way searching. VLOOKUP requires the lookup value to be in the first (leftmost) column of the table range. It cannot retrieve data to the left of that column. It is like a bookshelf where you can only read the leftmost label and pull books from the shelves to the right.

It also requires hardcoded column index numbers like ‘3.’ If someone inserts or deletes a column in your table, the formula returns the wrong data. On top of that, its default match type is approximate match, meaning that forgetting to add 0 or FALSE at the end frequently produces incorrect results.

The Basic XLOOKUP Syntax: Just 3 Arguments

The Basic XLOOKUP Syntax: Just 3 Arguments

XLOOKUP drastically simplifies data lookups. Out of six total arguments, you only need the first three to get started.

The basic syntax is =XLOOKUP(lookup_value, lookup_array, return_array). Because you select the lookup range and the return range separately, it can pull values whether they sit to the left or right of your lookup column.

OrderArgument NameRequiredDescription
1lookup_valueRequiredThe value you want to look up
2lookup_arrayRequiredThe range or array to search
3return_arrayRequiredThe range or array to return values from
4[if_not_found]OptionalText to display if no match is found
5[match_mode]OptionalMatch type (0: Exact match by default)
6[search_mode]OptionalSearch direction (1: First-to-last, -1: Last-to-first)

If you specify multiple columns in return_array (e.g., B2:D9), XLOOKUP supports dynamic arrays—spilling the results across neighboring cells automatically from a single formula.

Related Guides
How to Remove Duplicates in Excel Without Losing Data
How to Mask Data in Excel in 1 Second Without Complex Formulas

Advanced Features: Built-In Error Handling and Reverse Search

Advanced Features: Built-In Error Handling and Reverse Search

XLOOKUP handles errors and changes search direction natively without nesting extra functions.

Previously, you had to wrap formulas in IFERROR or IFNA to suppress #N/A errors when a value was missing. With XLOOKUP, simply provide a custom message like "Not Found" in the 4th argument, [if_not_found].

Because match_mode defaults to 0 (exact match), you can skip extra configuration in most cases. Additionally, entering -1 for the 6th argument, [search_mode], searches from bottom to top (last to first), making it easy to find the most recently added entry.

Supported Excel Versions and Common Error Codes

Supported Excel Versions and Common Error Codes

Because XLOOKUP is a newer function, check your Excel version before using it.

XLOOKUP is currently supported in Microsoft 365 subscriptions and standalone Excel 2021 or later. Opening a workbook containing XLOOKUP in older versions like Excel 2016 or Excel 2019 will return a #NAME? error because the function is not recognized.

Error CodeCommon CauseSolution
#NAME?Opening the file in older versions like Excel 2016 or 2019Use a supported version (Microsoft 365, Excel 2021+)
#VALUE!Lookup range and return range have different row or column countsMatch the dimensions (number of rows) of both ranges
#N/ANo match found and the 4th argument is omittedAdd fallback text to the 4th argument

Check your current Excel version and replace cumbersome VLOOKUP formulas with the simple 3-argument XLOOKUP.

Related Articles

References

1-Minute Video Summary

코멘트

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다