When it comes to looking up data in Excel, VLOOKUP has been the default answer since the 1980s, with INDEX and MATCH as the power user's alternative. XLOOKUP reached most Microsoft 365 subscribers in 2020 and fixed most of what made VLOOKUP fragile. Microsoft now says so on its own VLOOKUP page, calling XLOOKUP "an improved version of VLOOKUP that works in any direction and returns exact matches by default."
However, VLOOKUP isn't obsolete. It is still in thousands of firm templates, and XLOOKUP will not run at all in Excel 2016 or Excel 2019. Knowing both, and knowing which one a given workbook can handle is an important skill to have, and we're walking you through what you need to know.
Quick Answer: VLOOKUP vs XLOOKUP
XLOOKUP is the better choice for new work. It looks in any direction, returns an exact match by default, survives column insertions, and handles missing values without a wrapper function. Use VLOOKUP when the workbook has to open in Excel 2016 or 2019, or when you are maintaining a template that already uses it.
| VLOOKUP | XLOOKUP | |
| Match type by default | Approximate | Exact |
| Can return a column to the left | No | Yes |
| Breaks when a column is inserted | Yes | No |
| Built-in handling for no match | No | Yes |
| Works in Excel 2016 and 2019 | Yes | No |
What Is VLOOKUP?
VLOOKUP searches for the first column of a range for a value and returns something from the same row, counting columns to the right. The V stands for vertical, because it reads down a column.
VLOOKUP Syntax
=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
- lookup_value: What you are searching for. It has to sit in the first column of your table_array.
- table_array: The range to search. Its first column must contain the lookup value.
- col_index_num: Which column of that range holds the answer, counting the first column as 1.
- range_lookup: TRUE or 1 for an approximate match, FALSE or 0 for an exact match. This one is optional, which causes most of the trouble below.
How to Use VLOOKUP
Say you have a chart of accounts in columns A through D: account name, account number, department, and FY2026 balance. You want the balance for Equipment.
- Step 1. Click the cell where you want the result.
- Step 2. Type the formula, pointing at the account name first: =VLOOKUP("Equipment",A3:D12,4,FALSE)
- Step 3. Count your columns carefully. Account Name is 1, Account No. is 2, Department is 3, and FY2026 Balance is 4.
- Step 4. Type FALSE as the fourth argument.
- Step 5. Press Enter. The formula returns 912,480.75.
To pull the department instead, change the column number to 3:
=VLOOKUP("Deferred Revenue",A3:D12,3,FALSE)
That returns Revenue. If you are copying the formula down a column, lock the table range with dollar signs so it does not drift:
=VLOOKUP(B2,$A$3:$D$12,4,FALSE)
Limitations of VLOOKUP
The Default Is the Approximate Match
Microsoft states it plainly: "If you don't specify anything, the default value will always be TRUE or approximate match." On a sorted table that is intentional and useful. On an unsorted table it returns whatever it stopped on, with no error and no warning. In the chart of accounts above, =VLOOKUP("Equipment",A3:D12,4) returns -84,500.00, which is the Allowance for Doubtful Accounts balance. Not a #N/A. Not a #VALUE!. A negative number sitting where a fixed asset balance should be, in a workbook somebody is about to sign off on. One omitted argument is all it takes.
It Only Looks Right
The return column has to be to the right of the lookup column. When an ERP export puts the vendor ID in the last column, VLOOKUP cannot help you without rearranging the data first.
Column Numbers Are Hardcoded
Insert a column into the middle of your table_array and every formula pointing past it now returns the wrong field. The formula still calculates. It just answers a different question than it did yesterday.
No Built-In Handling for Misses
An unmatched value returns #N/A, which you then wrap in IFERROR or IFNA. That works, but wrapping it also hides genuine mapping gaps if you are not careful about what you display.
Hard Limits Worth Knowing
The lookup value cannot exceed 255 characters. A col_index_num higher than the number of columns in your range returns #REF!, and the minimum value is 1.
What Is XLOOKUP?
XLOOKUP takes a lookup array and a return array as two separate arguments instead of one table and a column count. That one change fixes the direction problem and the column-insertion problem at the same time.
XLOOKUP Syntax
=XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode])
- lookup_value: What you are searching for.
- lookup_array: The single column or row to search in.
- return_array: The column, row, or block of columns to return from.
- if_not_found: What to show when nothing matches. Without it you get #N/A.
- match_mode: 0 for exact, which is the default. Use -1 for the next smaller item, 1 for the next larger, and 2 for wildcards.
- search_mode: 1 searches first to last and is the default. Use -1 to search from the bottom up.
How to Use XLOOKUP
This is the same chart of accounts, same question, and three arguments instead of four:
=XLOOKUP("Equipment",A3:A12,D3:D12)
You point at the account name column, then the balance column. No counting, and no fourth argument to remember, because exact match is already the default.
Return a Value from the Left
Swap the arrays and it works in the other direction, which VLOOKUP cannot do at all:
=XLOOKUP("2100",B3:B12,A3:A12)
Flag Missing Accounts Instead of Showing N/A
The fourth argument is a plain-English answer for unmatched values, which is far more useful on a trial balance than an error:
=XLOOKUP(B2,Map[Account],Map[FS_Line],"UNMAPPED")
Filter for UNMAPPED and you have your exception list for the month. Pair it with conditional formatting and the unmapped rows flag themselves.
Return Several Fields at Once
Point the return array at multiple columns and one formula fills them all:
=XLOOKUP("1500",B3:B12,C3:D12)
Match a Tax Bracket or an Aging Band
Set match_mode to -1 to get the next smaller item, which is how bracket tables work:
=XLOOKUP(E2,$A$2:$A$7,$B$2:$B$7,0,-1)
Find the Most Recent Entry
Set search_mode to -1 and XLOOKUP reads from the bottom, returning the last match rather than the first. Useful for the latest FX rate or the most recent payment to a vendor:
=XLOOKUP("ACME-001",A2:A500,D2:D500,"No payments",0,-1)
Limitations of XLOOKUP
Limited Availability
XLookup does not exist in Excel 2016 or Excel 2019, so if you send an XLOOKUP workbook to someone on those versions and they will see _xlfn.XLOOKUP in the formula bar and a #NAME? error once the sheet recalculates. There is no patch and no workaround short of rewriting the formula.
Fortunately, this matters less every year. Microsoft ended support for Office 2016 and Office 2019 on October 14, 2025, but it is still a factor because clients and smaller firms upgrade on their own schedule, and PBC templates travel.
Multi-Column Results Will Not Spill Inside an Excel Table
Microsoft is explicit that spilled array formulas are not supported in Tables. A single-value XLOOKUP in a Table column is fine. The moment you ask one formula to return two columns inside a Table, you get #SPILL!. Keep your source data in a Table and put the spilling formulas in the grid beside it.
Search Modes Need Sorted Data
Binary search modes need sorted data. Search modes 2 and -2 are fast, but Microsoft warns that if the array is not sorted, "invalid results will be returned." This returns the same silent wrong-answer risk as VLOOKUP's approximate default, just behind a less obvious argument.
It May Not Be Faster
When comparing XLOOKUP vs VLOOKUP, XLOOKUP may not be faster. Microsoft publishes no benchmark comparing the two functions, and the independent tests floating around contradict each other. Choose XLOOKUP for clarity and resilience, not for speed.
VLOOKUP vs XLOOKUP: A Side-by-Side Comparison
Feature | VLOOKUP | XLOOKUP |
| Arguments | 4 | 6, three of them optional |
| Default match type | Approximate | Exact |
| Lookup column position | Must be the first column of the range | Anywhere |
| Return direction | Right of the lookup column only | Either direction |
| How the return field is identified | A column number you count | A range you select |
| Survives an inserted column | No | Yes |
| Handling for no match | Wrap in IFERROR or IFNA | Built into the formula |
| Return multiple columns | One formula per column | One formula, if it spills outside a Table |
| Search from the bottom up | No | Yes, search_mode-1 |
| Replaces HLOOKUP | No | Yes |
| Excel 2016 and 2019 | Works | Does no exist |
| Excel 2021, 2024, and Microsoft 365 | Works | Works |
Accounting Examples: VLOOKUP vs XLOOKUP
Task | Better choice | Why |
| Mapping a trial balance to financial statement lines | XLOOKUP | if_not_found turns unmapped accounts into a visible exception list instead of #N/A |
| Pulling a vendor name, terms, and 1099 flag from a master file | XLOOKUP | One formula returns all three columns, placed outside the Table |
| Looking up a tax rate or depreciation convention by bracket | Either | XLOOKUP match_mode-1 or VLOOKUP with TRUE on a table sorted ascending |
| Assigning AP or AR aging buckets | Either | Same approximate-match logic on a sorted threshold table |
| Finding the latest FX rate or most recent payment | XLOOKUP | search_mode-1 returns the last match, which VLOOKUP cannot do |
| An ERP export with the key in the last column | XLOOKUP | In practice, VLOOKUP cannot look left without rearranging the data |
| Budget versus actual by account and period | XLOOKUP nested, or INDEX and MATCH | Two-way lookup across rows and columns |
| A PBC template going to a client on an older Excel | VLOOKUP or INDEX and MATCH | XLOOKUP returns #NAME on older versions |
| A firm template that already works and has been reviewed | VLOOKUP | Rewriting reviewed formulas introduces risk with no benefit |
Common Lookup Errors and How to Fix Them
| What you see | Usual cause | Fix |
| #N/A | The value genuinely is not there, or there are trailing spaces and stray characters | Wrap the range in TRIM, or use CLEAN and other Excel text functions for nonprinting characters. Then decide whether to show the miss or label it. |
| #N/A on numbers that look identical | One side is a real number, the other is text, which is common after importing a PDF | Use the error-checking indicator to convert, or coerce one side with VALUE or TEXT so both match |
| #REF! | col_index_num is higher than the number of columns in your range | Recount the columns, or move to XLOOKUP so there is nothing to count |
| #VALUE! | A lookup value over 255 characters, or a col_index_num below 1 | Shorten the lookup value, or use INDEX and MATCH |
| #NAME? | A missing quotation mark or XLOOKUP opened Excel 2016 or 2019 | Check the quotes first. If you see _xlfn. in the formula, the version is the problem |
| #SPILL! | A multi-column XLOOKUP inside an Excel Table, or something blocking the spill range | Move the formula outside the table or clear the obstructing cells |
| A wrong value with no error at all | range_lookup omitted on unsorted data | Add FALSE to every VLOOKUP, and search your workbooks for ones missing it |
| Results shift when you copy the formula down | The table range is relative | Lock it with dollar signs, or reference a table by name |
The row worth rereading is the one with no error. Every other line in that table announces itself. An approximate-match VLOOKUP on unsorted data just quietly returns the wrong number, and it will keep returning it through every review until someone traces the balance back to source.
Should Accountants Switch from VLOOKUP to XLOOKUP?
For anything you build from scratch in Excel 2021 or Microsoft 365, yes. The exact-match default alone removes a whole category of error, and if_not_found gives you an exception list for free.
For workbooks that already exist, the answer is more measured. A reviewed, working VLOOKUP is not a defect, and there is no safe find-and-replace path between the two functions. The arguments are structured differently, and a careless conversion flips an approximate match to an exact one and changes your numbers. A reasonable policy looks like this:
- Build new work in XLOOKUP wherever the Excel version allows it.
- Leave working VLOOKUPs alone until the template is being rebuilt anyway.
- Convert during restructuring, when you are already inserting or moving columns and the hardcoded column numbers are about to break.
- Fix approximate-match VLOOKUPs on unsorted data immediately. That is a bug, not a style preference.
- Keep VLOOKUP or INDEX and MATCH in anything you send outside the firm, unless you know what version the recipient is running.
One more reason to understand both: Copilot tends to reach for XLOOKUP when you ask it for a lookup. Reviewing a formula you did not write still requires knowing what match_mode 0 means and whether the recipient's Excel can run it.
Build Your Excel Skills for Accounting Work
Becker offers a wide variety of CPE courses focused on beginner, intermediate, and advanced Excel topics. With a Prime CPE membership, you can access these plus our entire CPE course library with over 700 on-demand courses, 1,000 annual webcasts, plus weekly podcasts.