Use VLOOKUP for simple, single-column lookups where your data is laid out with the lookup column on the left; use INDEX MATCH when you need to look to the left, insert columns without breaking formulas, or handle large datasets more efficiently. Both are valid in Excel, but INDEX MATCH is more flexible and robust for complex tasks.
Background: Why This Comparison Exists
VLOOKUP has been Excel’s go-to lookup function for decades. It searches for a value in the first column of a table and returns a value from a column you specify to the right. INDEX MATCH is an alternative combination that uses two functions: INDEX returns a value at a given row and column position, and MATCH finds the position of a value in a row or column. Together, they can look up values in any direction and are not limited by column order.
The comparison became popular because VLOOKUP has known limitations that INDEX MATCH solves. As Excel users pushed the tool beyond simple tasks, they needed a more flexible approach. The arrival of XLOOKUP in 2020 added a third option that simplifies many cases, but INDEX MATCH remains widely used and supported in all Excel versions.
How VLOOKUP Works
VLOOKUP takes four arguments: the lookup value, the table array, the column index number, and the range lookup (TRUE for approximate, FALSE for exact). For example, with product IDs in column A and prices in column B, the formula =VLOOKUP(102, A:B, 2, FALSE) finds ID 102 and returns its price.
Key points about VLOOKUP:
- The lookup column must be the first column of the table array.
- It only returns values to the right of the lookup column.
- With FALSE, it requires an exact match; with TRUE, it finds the closest match but assumes the first column is sorted.
- If you insert a column inside the table, the column index may shift and break the formula unless you adjust it manually.
How INDEX MATCH Works
INDEX MATCH uses two separate functions. MATCH finds the row number (or column number) of a lookup value, and INDEX returns the value at that position. For example, with names in A2:A20 and sales in B2:B20, the formula =INDEX(B2:B20, MATCH("Smith", A2:A20, 0)) returns the sales for Smith. The 0 in MATCH means exact match.
Because the lookup column and the return column are independent, you can look to the left, right, up, or down. You can also use MATCH twice to do a two-way lookup (row and column). For instance, =INDEX(B2:D10, MATCH("May", A2:A10, 0), MATCH("Revenue", B1:D1, 0)) finds the value at the intersection of May and Revenue.
Choosing Between VLOOKUP and INDEX MATCH
Your choice depends on the task:
- Simple rightward lookup: VLOOKUP is shorter and easier to read.
- Lookup column not on the left: Use INDEX MATCH.
- You frequently insert or delete columns: INDEX MATCH won’t break because it references columns directly.
- Large datasets (thousands of rows): INDEX MATCH can be faster because it only processes the columns you specify, not the entire table array.
- You need a two-way lookup: INDEX MATCH is the way.
If you are using Excel 365 or Excel 2021, consider XLOOKUP, which handles all these cases with a single function. But if you share files with users on older versions, INDEX MATCH is safer.
Common Problems and Misconceptions
One common mistake is using VLOOKUP with TRUE (approximate match) on unsorted data, which returns wrong results. Always use FALSE unless you deliberately need the closest match. Another is forgetting that VLOOKUP cannot look to the left—users often rearrange columns unnecessarily.
A frequent misconception is that INDEX MATCH is always faster. In small tables, the difference is negligible. The speed advantage appears with large datasets and when VLOOKUP’s full-column references (like A:B) cause it to scan more cells. Also, some believe INDEX MATCH is harder to learn, but once you understand MATCH’s role, it becomes intuitive.
Comparison: VLOOKUP vs INDEX MATCH vs XLOOKUP
Here is a quick comparison:
- Column order: VLOOKUP requires lookup column on left; INDEX MATCH and XLOOKUP allow any order.
- Inserting columns: VLOOKUP breaks (column index shifts); INDEX MATCH and XLOOKUP do not.
- Two-way lookup: VLOOKUP cannot; INDEX MATCH can with two MATCH functions; XLOOKUP can with nested XLOOKUPs.
- Default match type: VLOOKUP defaults to approximate; INDEX MATCH requires explicit; XLOOKUP defaults to exact.
- Error handling: XLOOKUP has an optional if-not-found argument; VLOOKUP and INDEX MATCH require IFERROR.
- Version support: VLOOKUP and INDEX MATCH work in all versions; XLOOKUP needs Excel 2021 or 365.
Performance and File Size Considerations
For large workbooks, formula efficiency matters. VLOOKUP with full-column references (like A:B) can slow down calculations because Excel evaluates the entire column. INDEX MATCH, if you reference only the used range (e.g., A2:A1000), processes fewer cells. However, if you use entire columns in INDEX MATCH, the benefit disappears. To optimize, use named ranges or specific ranges.
Also, consider that array formulas (like some INDEX MATCH combinations) may be slower in older Excel versions, but modern Excel handles them well. In Excel 365, dynamic arrays can spill results, but that is a separate feature.
Frequently Asked Questions
Can VLOOKUP return a value to the left of the lookup column?
No. VLOOKUP only looks to the right. If you need to return a value from a column to the left, use INDEX MATCH or XLOOKUP.
Why does my VLOOKUP return #N/A even though the value exists?
This usually happens when the lookup value is not exactly the same as the table value—extra spaces, text vs. number, or different data types. Use the TRIM function to remove spaces, or ensure both are numbers or text. Also, check that you used FALSE for exact match.
Is INDEX MATCH faster than VLOOKUP?
In many cases, yes, especially with large datasets and when VLOOKUP uses full-column references. But for small tables, the difference is negligible. The main advantage of INDEX MATCH is flexibility, not always speed.
Should I learn XLOOKUP instead of INDEX MATCH?
If you use Excel 365 or 2021, XLOOKUP is easier and covers most cases. However, INDEX MATCH is still useful for backward compatibility and for users on older versions. Learning both is beneficial.
Can I use INDEX MATCH for approximate matches?
Yes. Set the match type to 1 (less than) or -1 (greater than) with sorted data. For example, =INDEX(B2:B10, MATCH(5, A2:A10, 1)) finds the largest value less than or equal to 5.
How do I handle errors like #N/A in INDEX MATCH?
Wrap the formula in IFERROR: =IFERROR(INDEX(...), "Not found"). This works in all Excel versions.
Related
- How to Select a Cell and Everything Below It in Excel
- SQL Difficult Queries: Real-World Examples & Solutions
- Switch Desktop Shortcut: How to Create & Use It
Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.
More in Formulas & functions
- Filter in Excel With Blank Rows: Keep Records TogetherTo filter data that contains blank rows, select the entire data range—including the blank rows—and choose Data >…
- VLOOKUP Exact Match in Excel: How to Use ItTo make VLOOKUP find an exact match in Excel, set its fourth argument to FALSE (or 0). For…
- Excel Column Letter to Number: Formula, Examples, and TipsTo convert an Excel column letter to its number, put the letter in A1 and enter =COLUMN(INDIRECT(UPPER(A1)&"1")) in…
- SUBSTITUTE Formula in Excel: Examples and UsesWith the text to edit in cell A2, use =SUBSTITUTE(A2,"-","") to remove every hyphen; if A2 contains INV-204-INV,…
- VLOOKUP with IF Statement: How to Combine ThemTo combine VLOOKUP with an IF statement in Excel, you nest the VLOOKUP inside the IF function, like…
- Count Unique Values in Excel: UNIQUE & COUNTATo count unique values in a list in Microsoft Excel, use the COUNTA function wrapped around the UNIQUE…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.