VLOOKUP vs INDEX MATCH: Which Excel Formula Wins?
In this article
VLOOKUP and INDEX MATCH are both Excel formulas that look up a value in a table, but INDEX MATCH is the more flexible and reliable choice for most situations. VLOOKUP is easier to learn and works fine for simple lookups, but it breaks when you add or remove columns, and it can only search from left to right. This article explains how each formula works, their key differences, and when to use which one.
Background: Why Two Formulas for the Same Job?
VLOOKUP has been around since the early days of Excel and became the default lookup tool for generations of spreadsheet users. Its name stands for "vertical lookup" because it searches down the first column of a table. INDEX MATCH is a combination of two separate functions: INDEX returns the value at a given row and column, and MATCH finds the position of a value in a row or column. Together, they replicate VLOOKUP’s behavior but with fewer limitations. The comparison became popular as Excel users discovered that INDEX MATCH handles structural changes better and runs faster on large datasets.
How VLOOKUP Works
VLOOKUP takes four arguments: the value to find, the table range, the column number to return from, and whether you want an exact or approximate match. The formula searches down the first column of the range for the lookup value, then returns the cell at the intersection of that row and the specified column number.
Example: =VLOOKUP("A-101", A2:C100, 3, FALSE) finds "A-101" in column A and returns the value from column C of the same row. The FALSE argument forces an exact match; TRUE (or omitted) finds the nearest lower value, which is useful for tax brackets or discount tiers.
How INDEX MATCH Works
INDEX MATCH uses two separate functions nested together. MATCH finds the row number of the lookup value, and INDEX returns the value at that row in a specified column.
Example: =INDEX(C2:C100, MATCH("A-101", A2:A100, 0)) first finds the row where "A-101" appears in column A, then returns the corresponding value from column C. The 0 in MATCH forces an exact match, just like FALSE in VLOOKUP.
The key advantage is that you can return a value from any column, not just one to the right of the lookup column. You can also use two MATCH functions to look up a value at the intersection of a specific row and column, creating a two-way lookup.
Key Differences: Flexibility, Speed, and Safety
- Column insertion: VLOOKUP uses a column number, so inserting a column to the left of the return column shifts the data and breaks the formula. INDEX MATCH uses column references, so it automatically adjusts when you insert or delete columns.
- Left lookup: VLOOKUP can only return values to the right of the lookup column. INDEX MATCH can return values from any column, including those to the left.
- Performance: INDEX MATCH is generally faster on large datasets because it only looks at the lookup column and the return column, while VLOOKUP examines the entire table range.
- Approximate match: Both support approximate matches, but VLOOKUP requires the first column to be sorted in ascending order, while MATCH can handle unsorted data with an approximate match if you use 1 or -1.
- Error handling: Both return #N/A when no match is found, but INDEX MATCH makes it easier to wrap the formula in IFERROR because the structure is more straightforward.
How to Choose: Which One Should You Use?
Use VLOOKUP when you are a beginner, your table is small, and you are sure you will never insert columns. It is simpler to write and easier for others to read. Use INDEX MATCH when you need to look up to the left, when you want your formulas to survive column changes, or when you are working with thousands of rows and need speed.
If you are building a spreadsheet that others will maintain, INDEX MATCH is often the better choice because it is more robust. However, if you are just doing a quick lookup for yourself, VLOOKUP is perfectly fine. There is no penalty for using VLOOKUP in simple cases.
Common Problems and Misconceptions
One common mistake is forgetting the FALSE or 0 argument, which causes the formula to return incorrect results instead of an error. Always use FALSE or 0 for exact matches unless you intentionally want an approximate match.
Another misconception is that INDEX MATCH is always faster. For small tables (under a few hundred rows), the difference is negligible. The speed advantage becomes noticeable only with tens of thousands of rows or when the workbook is recalculated frequently.
People also assume that VLOOKUP cannot be used to look up to the left, which is true, but you can work around it by rearranging your data or using CHOOSE. However, that workaround is often more complex than simply using INDEX MATCH.
Alternatives: XLOOKUP and Modern Excel
In 2019, Microsoft introduced XLOOKUP, which combines the simplicity of VLOOKUP with the flexibility of INDEX MATCH. XLOOKUP can look left or right, handles missing values with a built-in IFERROR, and does not require a column number. If you are using a recent version of Excel or Google Sheets, XLOOKUP is often the best choice because it is easier to write and read.
Google Sheets also has XLOOKUP, and older functions like VLOOKUP and INDEX MATCH work the same way. For users on older Excel versions that do not support XLOOKUP, INDEX MATCH remains the most flexible option.
Frequently Asked Questions
Can INDEX MATCH replace VLOOKUP entirely?
Yes, INDEX MATCH can do everything VLOOKUP does and more. The only reason to stick with VLOOKUP is simplicity or habit. If you are comfortable with INDEX MATCH, there is no situation where VLOOKUP is strictly better.
Why does my VLOOKUP return #N/A even when the value exists?
This usually happens when the lookup value is not in the first column of your table range, or when there are extra spaces or different data types (text vs. number). Check that the first column contains the lookup values and that the value you are searching for matches exactly, including formatting.
Is INDEX MATCH hard to learn?
It takes a little practice, but the logic is simple: MATCH finds the row, INDEX returns the value. Once you understand that, you can build two-way lookups and more advanced formulas. Many users find it easier than troubleshooting VLOOKUP’s column number issues.
Does XLOOKUP make INDEX MATCH obsolete?
For users with access to XLOOKUP, it is a better choice because it is simpler and more powerful. However, INDEX MATCH is still useful for compatibility with older Excel versions and for users who need to work in environments where XLOOKUP is not available.
Can I use INDEX MATCH for approximate matches like VLOOKUP?
Yes, you can use MATCH with 1 or -1 to find the nearest match, but you must sort your data correctly. For exact matches, use 0. The behavior is similar to VLOOKUP’s approximate match, but you have more control over the direction.