Wauvel

Excel like a finance pro.

← The library

Lookup function

MATCH

Returns the position of a value in a range, not the value itself.

Daily driverDifficulty 1250 · ProficientUsage rank #17 of 520
Practice · 6 questions →

When to use it

Returns the position of a value in a range. Type 0 for exact, 1 for largest not exceeding on ascending data, -1 for smallest not below on descending data. Almost always used inside INDEX.

The shape of it

Syntax
=MATCH(lookup_value, lookup_array, [match_type])

Worked examples

  • Exact position

    =MATCH("Gizmo",A2:A6,0) 3

    Exact match position.

  • Band position

    =MATCH(72,{0,60,70,80,90},1) 3

    Approximate on ascending data.

  • With INDEX

    =INDEX(B2:B6,MATCH("Gizmo",A2:A6,0)) 15

    The classic pairing.

Worth knowing

  • Match type 0 is exact. 1 needs ascending data, -1 needs descending.
  • Type 0 supports wildcards: MATCH("Wid*",A2:A6,0).
  • Use it to find which column a header is in, then feed INDEX.
  • XMATCH adds search-from-end and better defaults.

Where it goes wrong

  • #N/A when not found with type 0.
  • Omitting the type defaults to 1, which gives wrong positions on unsorted data.
  • Not case sensitive.

Related

Learn the moves here — or let Wauvel run them on your numbers.

Meet your AI CFO →

One CFO-grade Excel tip a week

A short, practical email for finance operators — functions, shortcuts, and the moves that save an afternoon. Free, unsubscribe anytime.