How to Do a Two-Way Lookup Using INDEX and MATCH

Welcome back to our Global Excel Solutions series! As part of our Week 3: Lookup Mastery journey, we are diving into Post 2: How to Do a Two-Way Lookup Using INDEX and MATCH. While standard lookups search in a single direction, real-world data often requires you to find a value at the exact intersection of a specific row and column. Combining INDEX and MATCH gives you the ultimate flexibility to cross-reference data effortlessly.

What is a Two-Way Lookup?

A two-way lookup (or matrix lookup) allows you to search for a data point by matching both a row criterion (such as an employee or product) and a column criterion (such as a month or region). Instead of being limited to a single search direction, this technique pinpoints the exact value where the row and column headers meet.

Step-by-Step Instructions

Building a two-way lookup formula takes a logical, structured approach by nesting two MATCH functions inside an INDEX function:

  • Understand the Formula Structure: Set up your formula using the syntax =INDEX(data_array, MATCH(row_lookup, row_range, 0), MATCH(col_lookup, col_range, 0)).

  • Define Your Data Table: Select the core range of numbers or text you want to pull from (excluding the row and column headers).

  • Build the Row Match: Use your first MATCH function to find the relative row position of your specific criteria within the row header list.

  • Build the Column Match: Use your second MATCH function to find the relative column position of your criteria within the column header list.

  • Combine and Execute: Wrap both match functions inside your INDEX function and press Enter to return the intersecting value.

Top Use Cases for Two-Way Lookup

  • Sales Performance Grids: Pull individual sales numbers by cross-referencing salesperson names with specific quarterly columns.

  • Pricing Matrices: Look up product costs or shipping rates based on item codes and weight tier columns.

  • Budget Tracking: Extract departmental expenses by matching account categories against specific monthly reporting periods.

Pro Tip: Unlike traditional lookup functions, INDEX and MATCH do not require your lookup value to be in the first column of your table. Because it evaluates rows and columns independently, your data layout can be structured however you like without breaking your formulas!

Previous
Previous

Highlight Entire Rows Automatically Using Conditional Formatting Rules

Next
Next

Master Text-to-Columns: Split Full Names and Addresses in Seconds