Index Match Multiple Lookups Excel is a powerful combination of functions that allows you to retrieve data from a table based on multiple criteria. Unlike the simpler VLOOKUP, which can only search for a single value in the first column, this method lets you search across two or more columns to find a unique match. This guide explains exactly how to set this up, why it is superior to VLOOKUP, and how to troubleshoot common errors when your data does not behave as expected.

What You'll Need

  • A computer with Microsoft Excel installed (Excel 2010 or later is recommended for best compatibility).
  • A data set containing at least two columns of data. The first columns will act as the search criteria (the criteria you want to match against), and the final column will contain the values you want to retrieve (the result).
  • A basic understanding of cell references (absolute vs. relative) is helpful but not strictly required.

Step-by-Step

  1. Identify your data range. Look at your spreadsheet and determine which columns contain your search criteria and which column contains the value you want to extract. For this example, imagine you have a list of sales. Column A is the Product Name, Column B is the Region, and Column C is the Sales Amount. You want to find the Sales Amount for a specific Product in a specific Region.
  2. Prepare the criteria cells. In a clear area of your spreadsheet, create a small lookup table. For example, type "Product Name" in cell E1 and paste your specific product name in E2. Below it, type "Region" in cell F1 and paste your specific region name in F2. These cells will hold the values you are searching for.
  3. Enter the MATCH function to find the row number. Click on the cell where you want your result to appear, such as cell E4. Type =MATCH( to start the function. The MATCH function works by finding the relative position of an item in an array. The syntax is =MATCH(lookup_value, lookup_array, [match_type]).
  4. Define the lookup value. The first argument is the value you are looking for. In our example, you are looking for the Product Name located in cell E2. So, type E2. Add a comma after it.
  5. Define the lookup array for the first criterion. The second argument is the range of cells that contains the possible values. This is the array where Excel will look for the value in E2. You need to select the entire column of Product Names. If your data starts in A2 and goes down to A100, you would type $A$2:$A$100. It is crucial to lock this range by adding dollar signs ($). This prevents the range from shifting if you copy the formula to other cells.
  6. Define the match type. The third argument is optional. For an exact match, which is what we want for lookups, you should usually type 0. If omitted, Excel defaults to 1 (largest value less than or equal to lookup value) or -1 (smallest value greater than or equal to lookup value), which are rarely what you want for precise data retrieval. Type 0 and close the parenthesis. Your formula now looks like =MATCH(E2, $A$2:$A$100, 0). Press Enter. This function will return a number representing the row number where the product name matches.
  7. Repeat the process for the second criterion. You now need to ensure that the row number found in the previous step also corresponds to the correct Region. To do this, you will create a second MATCH function that checks the Region column. Click back into cell E4. You need to nest the second MATCH function inside the first one.
  8. Construct the nested MATCH for the second criterion. The logic is that the row number must be valid for both the Product and the Region. The syntax for an array of arrays is MATCH(lookup_value_1, {array_1;array_2}, 0). Type MATCH( again. For the lookup value, select the region cell: F2.
  9. Define the combined array for the second criterion. This is the most critical part. You must combine the Product array and the Region array so that Excel matches the Product name against the Product array AND the Region name against the Region array simultaneously. To do this, type {, then select the Product range $A$2:$A$100, then type a semicolon ; (this is the array separator for columns in Excel formulas), and finally select the Region range $B$2:$B$100. Close the curly brace with }. Add a comma and type 0 for the exact match. Close the parenthesis. Your inner MATCH function should look like =MATCH(F2, {$A$2:$A$100;$B$2:$B$100}, 0).
  10. Combine the MATCH functions. You now have the inner MATCH function. You need to wrap this in the outer MATCH function to find the row number where the combined arrays match your lookup values. The outer MATCH function will look for the row number returned by the inner function within a single array of row numbers (1 to the total rows in your data). Type =MATCH(, then select the result of your inner function: MATCH(F2, {$A$2:$A$100;$B$2:$B$100}, 0). Add a comma.
  11. Define the final lookup array. The outer MATCH function needs to find the position of the inner result within a list of row numbers. This single array is simply a list of numbers from 1 to the end of your data. If your data goes down to row 100, type {1:100}. This creates an array of numbers 1 through 100. Add a comma and type 0. Close the parenthesis. Your complete MATCH formula should look like =MATCH(MATCH(F2, {$A$2:$A$100;$B$2:$B$100}, 0), {1:100}, 0). Press Enter. This will return the correct row number where both the Product and Region match your criteria.
  12. Enter the INDEX function to retrieve the value. Now that you have the row number, use the INDEX function to get the actual data. Click back into cell E4. Type =INDEX(. The INDEX function syntax is =INDEX(array, row_num, [column_num]).
  13. Define the array. The array is the range of cells that contains the values you want to retrieve. In our example, this is the Sales Amount column, C2:C100. Type $C$2:$C$100. It is important to lock this range as well using dollar signs.
  14. Define the row number. The second argument is the row number you calculated in the previous steps. Select the long MATCH formula you just created: MATCH(MATCH(F2, {$A$2:$A$100;$B$2:$B$100}, 0), {1:100}, 0). Add a closing parenthesis. Your formula is now =INDEX($C$2:$C$100, MATCH(MATCH(F2, {$A$2:$A$100;$B$2:$B$100}, 0), {1:100}, 0)). Press Enter.
  15. Verify the result. If you typed the product and region correctly, the cell should now display the correct sales amount. You can now copy this formula down to other rows to perform multiple lookups quickly.

Common Mistakes

One of the most frequent errors when building this formula is failing to use array syntax correctly. When you are defining the lookup array for the second criterion, you must use curly braces {} to combine the columns. If you simply type the range $A$2:$A$100,$B$2:$B$100, Excel will treat this as a single continuous column of data, not two separate columns, and the match will fail. Remember to use a semicolon ; to separate the columns within the array.

Another common issue arises from not locking the ranges with dollar signs. If you copy the formula to the cell below, Excel will try to adjust the ranges, shifting them one cell down. This will cause the MATCH function to look at the wrong data, resulting in a #N/A error. Always use absolute references $A$2:$A$100 for the data ranges.

Tips

When troubleshooting a #N/A error, it is often helpful to separate the inner and outer MATCH functions to see which one is failing. You can type =MATCH(F2, {$A$2:$A$100;$B$2:$B$100}, 0) into a cell on its own. If this returns a #N/A, it means there is no row where both the Product and Region match your criteria. If it returns a number, your second MATCH is working, and you should check the outer MATCH function.

If you are working with very large datasets, this formula can become slow to calculate. Be mindful of the size of your named ranges and try to use specific ranges rather than entire columns (e.g., $A$2:$A$1000 instead of $A:$A) if your data is not expected to grow indefinitely.

Troubleshooting

If the formula returns a #REF! error, it usually means there is a problem with the curly braces or the array syntax. Check that you have typed the opening and closing curly braces correctly and that the semicolon separator is used. If you are using a non-US Excel version, the separator might be a comma, so you may need to change the semicolons to commas.

If the formula returns a #VALUE! error, it could be because the MATCH function is returning an error, which is then being passed to the INDEX function. Double-check your lookup values in E2 and F2 to ensure they are formatted correctly. For example, if the lookup value is a date, the array should also contain dates, not text representations of dates.

If the result is incorrect, it is often due to data type mismatches. Ensure that the values you are looking up are exactly the same type as the values in the data array. For instance, if the data array contains numbers but your lookup value is a text string that looks like a number, the match will fail. You can use the VALUE or TEXT functions to convert between types if necessary.

Frequently Asked Questions

Can I use Index Match Multiple Lookups with text data?

Yes. The Index Match Multiple Lookups Excel technique works with any type of data, including text, numbers, and dates. The key is to ensure that the data types match between your lookup values and the data ranges you are searching.

What is the difference between Index Match and VLOOKUP?

The primary difference is that VLOOKUP can only search for a value in the first column of a range, while Index Match can search in any column and return a value from any column. This makes Index Match much more flexible and less prone to errors when you rearrange your data.

Why does my formula return #N/A even though I am sure the data exists?

This is usually caused by hidden spaces or inconsistent formatting. For example, one cell might contain "Product A" with a trailing space, while your lookup value is "ProductA" without a space. Use the TRIM function to clean your data before running the lookup.

Can I use Index Match Multiple Lookups with more than two criteria?

Yes, you can extend this method to include three, four, or more criteria. You simply add more MATCH functions inside the curly braces. For example, to add a third criterion for a Year, you would add ; $D$2:$D$100 inside the curly braces and include the lookup value for that criterion in the outer MATCH function.

Is Index Match Multiple Lookups available in Google Sheets?

Yes, the syntax is very similar in Google Sheets. The main differences are that Google Sheets uses commas as the array separator instead of semicolons, and the curly braces are optional, though they are still recommended for clarity and performance.

What does the 0 at the end of the MATCH function do?

The 0 tells Excel to look for an exact match. If you omit this argument, Excel will return the next largest value that is less than or equal to your lookup value, which is rarely what you want for precise data retrieval and can lead to significant errors.