Excel Guide · Prompt: “Look up row "Enterprise" in A2:A6 and column 3 inside matrix A2:D6 using INDEX MATCH”

Two-Way Matrix Lookup with INDEX and MATCH in Excel

Verified by LiveFormulaLab Engineering Team • Updated November 2026

Perform a 2D row and column matrix lookup in Excel using INDEX and two MATCH calls. Interactive spreadsheet sandbox included.

Verified Excel Syntax

=INDEX(A2:D6, MATCH("Enterprise", A2:A6, 0), 3)

How This Formula Works (Step-by-Step)

A two-way INDEX MATCH finds both the target row position and target column position inside a pricing or rate table.

Step 1: MATCH("Enterprise", A2:A6, 0) finds the exact row number for the Enterprise plan.

Step 2: INDEX(A2:D6, row_num, col_num) returns the cell at that row and column intersection.

Formula Syntax & Arguments Breakdown

Coordinates INDEX over a 2D matrix with MATCH locating the exact row index and optionally a second MATCH (or fixed column index) selecting the intersection column.

Argument / ClauseRequirementData TypeRole & Behavior
array (A2:D6)Required2D RangeFull rectangular data table containing row labels, header metrics, and intersection values.
row_num (MATCH("Enterprise", A2:A6, 0))RequiredIntegerExact row offset returned by MATCH with match_type 0 so row order never needs sorting.
column_num (3 or MATCH(...))OptionalIntegerColumn offset inside A2:D6 (or a dynamic second MATCH over A1:D1 for flexible horizontal lookups).

3 Real-World Use Cases

  • Looking up shipping tariffs across Zone rows and Weight columns.
  • Retrieving SaaS tier quotas across Plan rows and Feature columns.
  • Fetching tax brackets by Filing Status and Income Threshold.

Cross-Platform Equivalents

Excel
=INDEX(A2:D6, MATCH("Enterprise", A2:A6, 0), MATCH("Annual", A1:D1, 0))
SQL
SELECT annual FROM plans WHERE plan = 'Enterprise';
Python Pandas
df.loc[df['Plan'] == 'Enterprise', 'Annual'].iloc[0]

Common Mistakes & Pro Tips

Pitfalls & How to Fix Them

  • Mistake: Omitting the 0 third argument in MATCH defaults to approximate match (1), returning wrong rows on unsorted lists.

    Fix: Always pass 0 as the final argument of MATCH(lookup_value, lookup_array, 0) for exact lookups.

  • Mistake: Starting the MATCH range on Row 1 while starting INDEX on Row 2 causes every returned value to be shifted down one row.

    Fix: Align the top row and leftmost column of INDEX and MATCH ranges identically.

  • Mistake: Hardcoding column number 3 breaks silently if someone inserts a new column inside the source table.

    Fix: Replace hardcoded column numbers with MATCH("TargetHeader", $A$1:$D$1, 0) for full two-way resilience.

Engineering Pro Tips

  • INDEX/MATCH works identically in Excel 2007 through 365 and Google Sheets, making it ideal for cross-organization financial templates.
  • Unlike VLOOKUP, INDEX/MATCH can look left, right, up, or down without rearranging columns.
  • Wrap the expression in IFERROR(..., "Not Found") to prevent #N/A cascades in downstream totals.

Frequently Asked Questions

Can both row and column be dynamic MATCH calls?
Yes: =INDEX(B2:D6, MATCH(F1, A2:A6, 0), MATCH(G1, B1:D1, 0)).
Why use 0 as the third argument in MATCH?
The 0 argument forces an exact match so unsorted tables never return wrong rows.
What replaces two-way INDEX MATCH in Excel 365?
Nested XLOOKUP calls can also perform 2D lookups with built-in error fallbacks.

Related Formulas & Guides