beginner 3 min read

XLOOKUP vs VLOOKUP in Google Sheets: Which to Use

XLOOKUP vs VLOOKUP in Google Sheets, compared feature by feature. See what XLOOKUP fixes, how to convert old formulas, and when VLOOKUP is still fine.

SB

Sheets Bootcamp

July 28, 2026

Quick Answer

XLOOKUP does everything VLOOKUP does with fewer failure modes: =XLOOKUP(A2, D2:D50, F2:F50) replaces =VLOOKUP(A2, D2:F50, 3, FALSE). It defaults to exact match, can return columns to the left, and handles missing values without IFERROR. Use XLOOKUP for new formulas; leave working VLOOKUPs alone.

XLOOKUP and VLOOKUP solve the same problem: find a value in one column, return the matching value from another. The difference is how much can go wrong along the way. VLOOKUP carries three famous traps, and XLOOKUP was designed specifically to remove them.

In This Guide

The Same Lookup, Both Ways

Here is a product table, with IDs in column A and prices in column D:

Product IDProduct NameCategoryPrice
SKU-101Magnifying GlassOptics$24.99
SKU-102Forensic Chemistry SetLab$45.00
SKU-103Pocket WatchAccessories$35.00
SKU-104Field BinocularsOptics$65.00
SKU-105Cipher DecoderAccessories$28.50

Looking up the price of SKU-103 with VLOOKUP:

Formula
=VLOOKUP("SKU-103", A2:D6, 4, FALSE)

And with XLOOKUP:

Formula
=XLOOKUP("SKU-103", A2:A6, D2:D6)

Both return $35.00. But notice what the XLOOKUP version does not need: no column counting to arrive at 4, and no FALSE at the end. The two ranges say exactly what they mean: search the IDs, return the prices.

What XLOOKUP Fixes

1. Exact match is the default

VLOOKUP’s fourth argument defaults to TRUE, approximate match. Forget the FALSE and a missing value silently returns the wrong row instead of an error. This is the single most common VLOOKUP bug, and XLOOKUP removes it by defaulting to exact match. You add a match mode only when you want approximate behavior on purpose.

2. It can look left

VLOOKUP only returns columns to the right of the search column. Searching column B to return column A requires an INDEX MATCH workaround. XLOOKUP’s lookup and result ranges are independent, so a left lookup is just:

Formula
=XLOOKUP("Pocket Watch", B2:B6, A2:A6)

3. No fragile column index

VLOOKUP’s 4 means “the fourth column of the range I gave you.” Insert a column inside that range and every VLOOKUP pointing into it now returns the wrong field, with no error. XLOOKUP points at the result column directly, so inserting columns cannot silently redirect it.

4. Built-in error handling

A VLOOKUP that finds nothing returns #N/A, and cleaning that up means wrapping the whole formula in IFERROR. XLOOKUP has a dedicated fourth argument for it:

Formula
=XLOOKUP(H1, A2:A6, D2:D6, "Not found")

See XLOOKUP if not found for why this beats IFERROR.

5. One formula can return several columns

Point the result range at multiple columns and XLOOKUP spills all of them from a single formula. VLOOKUP returns one column per formula, full stop.

Feature Comparison

XLOOKUP vs VLOOKUP

FeatureVLOOKUPXLOOKUP
Search directionRight onlyAny direction
Default matchApproximate (needs FALSE)Exact
Error handlingWrap in IFERRORBuilt-in missing_value
Column referenceIndex number, breaks if columns moveDirect range, stable
Multiple column returnOne at a timeSpills several at once
Search orderTop to bottom onlyTop-to-bottom or bottom-to-top
Binary searchNot supportedsearch_mode 2 and -2
AvailabilityEvery versionGoogle Sheets since August 2022

Converting VLOOKUP to XLOOKUP

The conversion is mechanical. Take the VLOOKUP’s table range, split it into the column you search and the column you return:

VLOOKUPXLOOKUP equivalent
=VLOOKUP(A2, D2:F50, 3, FALSE)=XLOOKUP(A2, D2:D50, F2:F50)
=VLOOKUP(“Widget”, Products!A:C, 2, FALSE)=XLOOKUP(“Widget”, Products!A:A, Products!B:B)
=IFERROR(VLOOKUP(A2, D:F, 3, FALSE), “None”)=XLOOKUP(A2, D:D, F:F, “None”)
=VLOOKUP(A2, D2:F50, 3, TRUE)=XLOOKUP(A2, D2:D50, F2:F50, , -1)

The last row deserves a note: VLOOKUP’s TRUE finds the closest value at or below the search key, which is XLOOKUP’s match_mode -1. One real difference: VLOOKUP’s TRUE requires sorted data, while XLOOKUP’s -1 scans the whole range and works unsorted. Details in match modes.

Tip

When converting a formula you plan to drag down, lock the ranges: =XLOOKUP(A2, $D$2:$D$50, $F$2:$F$50). The search key stays relative, the table stays pinned.

When VLOOKUP Is Still Fine

There are exactly two good reasons to keep writing VLOOKUP:

Compatibility. If your sheet gets exported to Excel and opened in Excel 2019 or earlier, XLOOKUP formulas will not work there. Teams stuck on old Excel are the one audience where VLOOKUP remains the safe choice.

Working formulas. A VLOOKUP that already does its job costs nothing to keep. Rewriting working formulas adds risk without adding value. The rule is simple: new formulas get XLOOKUP, old formulas get left alone.

If you are choosing between XLOOKUP and the classic workaround pattern instead, see XLOOKUP vs INDEX MATCH.

Frequently Asked Questions

Is XLOOKUP better than VLOOKUP in Google Sheets?
For new formulas, yes. XLOOKUP defaults to exact match, searches in any direction, handles missing values without IFERROR, and does not break when columns move. VLOOKUP only wins on compatibility with very old spreadsheets and with Excel 2019 or earlier.
Should I rewrite my VLOOKUP formulas as XLOOKUP?
No. A working VLOOKUP keeps working, and Google is not removing it. Use XLOOKUP for new formulas and leave existing ones alone unless you are already editing that sheet.
How do I convert a VLOOKUP formula to XLOOKUP?
Replace the table range and column index with two separate ranges. =VLOOKUP(A2, D2:F50, 3, FALSE) becomes =XLOOKUP(A2, D2:D50, F2:F50). The lookup range is the old first column, and the result range is the column the index number pointed to.
Does XLOOKUP work in all versions of Google Sheets?
XLOOKUP was added to Google Sheets in August 2022 and is available to every account today. The caveat is exporting: Excel 2019 and earlier do not support XLOOKUP, so exported files opened there will show errors.
Is XLOOKUP faster than VLOOKUP in Google Sheets?
For normal sheet sizes the difference is not noticeable. On very large sorted datasets XLOOKUP can be made faster than VLOOKUP by enabling binary search with search_mode 2, which VLOOKUP has no equivalent for.

You've googled this formula before. Probably more than once.

Basic Training is a free course inside a real Google Sheet that grades every formula the moment you press Enter. 7 lessons, about 40 minutes, and this loop ends.

Try the Sheet That Grades You

Free. No spam, ever.

Get Free Basic Training