Why it works
- What it does
- MATCH finds the row where the key sits; INDEX returns the value in that row from any column. Together they look left, survive inserted columns and work in every Excel version. Add 0 to MATCH for an exact match.
- The shape of the formula
- =INDEX(column to return, MATCH(key, column to search, 0))
- How to remember it
- MATCH says where, INDEX says what.
- The usual mistake
- Leaving off the 0 in MATCH, or matching keys with stray spaces. The lookup returns the wrong row or #N/A.
Keep practicing
- Two-way lookup: row and column by nameHow do I find a price when the columns of the price list keep moving?Open
- XLOOKUP: the simpler lookupHow do I look up a price with XLOOKUP?Open
- TRIM: remove extra spacesWhy does a lookup fail on names that look identical?Open
- Lesson: Look up in any direction with INDEX and MATCHA short lesson in your workspace: the idea, small steps on a sheet, one task with new dataOpen
Updated