Alternatives to VLOOKUP: Best Ways to Lookup Data
In this article
The best alternatives to VLOOKUP are XLOOKUP, INDEX-MATCH, and FILTER, which solve VLOOKUP's primary limitations: the inability to look left, the requirement for a sorted list (in approximate matches), and the risk of errors when inserting new columns into a dataset. XLOOKUP is the modern standard for users with updated software, while INDEX-MATCH remains the most powerful combination for legacy compatibility and complex matrix lookups. To use these, you simply need a dataset with a unique identifier (like an ID number or email) and a target value you wish to retrieve.
What You'll Need
- A spreadsheet application (Microsoft Excel or Google Sheets).
- A source table containing the data you want to find.
- A unique identifier (lookup value) that exists in both your search cell and the source table.
- An updated version of Excel (Office 365 or Excel 2021+) if you intend to use XLOOKUP.
Step-by-Step
Option 1: Using XLOOKUP (The Modern Replacement)
XLOOKUP is the most intuitive alternative because it separates the search column from the results column, meaning the lookup value does not have to be in the first column of your range.
- Select the cell where you want the result to appear.
- Type
=XLOOKUP(to start the function. - Click the cell containing the value you are searching for (the lookup_value). Type a comma.
- Highlight the column or range that contains the unique identifiers (the lookup_array). Type a comma.
- Highlight the column or range that contains the data you want to return (the return_array).
- (Optional) Add a comma and type a custom message in quotes, such as
"Not Found", to handle errors gracefully without using IFERROR. - Close the parenthesis and press Enter.
Option 2: Using INDEX and MATCH (The Professional Standard)
This method uses two functions together. MATCH finds the row number of your item, and INDEX retrieves the value from that specific row in another column. This is essential for older versions of Excel.
- Start by typing
=INDEX(. - Select the range of cells that contains the answer you want to retrieve (the array). Type a comma.
- Inside the same formula, type
MATCH(. - Select the cell containing your search value (the lookup_value). Type a comma.
- Highlight the column that contains the unique identifiers. Type a comma.
- Type
0to ensure an exact match. - Close the MATCH parenthesis, then close the INDEX parenthesis. Your final formula should look like
=INDEX(ReturnRange, MATCH(LookupValue, LookupRange, 0)).
Option 3: Using the FILTER Function (For Multiple Results)
Unlike VLOOKUP or XLOOKUP, which only return the first match they find, FILTER can return every instance of a value, creating a dynamic list.
- Select an empty area of your sheet with enough room for multiple rows of data to spill downward.
- Type
=FILTER(. - Highlight the entire range of data you want to retrieve (the array). Type a comma.
- Highlight the specific column you are searching through. Type an equals sign
=and then click the cell containing your search value. - (Optional) Add a comma and a message like
"No results"if no matches are found. - Close the parenthesis and press Enter. The results will automatically "spill" into the cells below.
Common Mistakes
One of the most frequent errors when switching from VLOOKUP to INDEX-MATCH is forgetting the 0 at the end of the MATCH function. Without this, the software assumes the list is sorted alphabetically or numerically and may return the wrong row if an exact match isn't found immediately. Another common mistake is selecting ranges of different sizes. For XLOOKUP and INDEX-MATCH to work, the lookup array and the return array must be the same height (e.g., if one goes from row 2 to 100, the other must also go from 2 to 100). If they differ, the formula will return a #VALUE! error or a shifted, incorrect result.
Users also often forget to use absolute references (the dollar signs, like $A$2:$A$100) when dragging formulas down a column. If you don't lock the ranges, the search area shifts downward as you copy the formula, causing it to miss data at the top of your table.
Tips
To make your lookups more robust, convert your source data into an official Excel Table (Ctrl + T). When you use a Table, you can use structured references (like Table1[EmployeeID]) instead of cell ranges. This means that if you add new rows to your data, the formulas update automatically without you having to change the range from A100 to A110.
For those working with massive datasets (thousands of rows), INDEX-MATCH is often slightly faster than VLOOKUP because it only processes the two columns it needs, rather than loading the entire table array into memory. If you are using XLOOKUP, take advantage of the "match mode" argument to perform wild-card searches (using *) to find partial matches, which is far more flexible than standard VLOOKUP.
Troubleshooting
If your formula returns #N/A, the most likely cause is that the lookup value does not exist in the source range. However, if you can clearly see the value is there, check for trailing spaces. A cell containing "Apple " will not match a cell containing "Apple". Use the =TRIM() function on your data to remove hidden spaces.
If you see a #SPILL! error when using the FILTER function, it means there is existing text or data in the cells where the formula is trying to place the results. Clear the cells below and to the right of your formula to give it room to display the data.
If the formula returns the wrong value (a value from the row above or below), double-check that your ranges start and end on the exact same row. If your lookup array is A2:A10 but your return array is B1:B9, the results will be offset by one row.
Frequently Asked Questions
Can XLOOKUP look to the left?
Yes. Unlike VLOOKUP, which requires the lookup column to be the leftmost column, XLOOKUP allows you to select any column for the search and any other column for the result, regardless of their position.
Which is faster: INDEX-MATCH or XLOOKUP?
In most modern spreadsheets, the speed difference is negligible. However, for extremely large workbooks, INDEX-MATCH can be more efficient as it doesn't require the software to calculate the entire array structure.
Does the FILTER function work in older versions of Excel?
No. The FILTER function is a dynamic array function available only in Microsoft 365, Excel 2021, and Google Sheets. For older versions, you must use a combination of INDEX, SMALL, and ROW functions.
What happens if there are duplicate values in my lookup column?
XLOOKUP and INDEX-MATCH will only return the first match they encounter. If you need to see every matching record, you must use the FILTER function.
How do I handle errors without using IFERROR?
XLOOKUP has a built-in argument called [if_not_found]. By entering text in the fourth position of the formula, you can specify exactly what the cell should say if no match is found, removing the need for a separate IFERROR wrapper.