1. Home
  2. Functions
  3. Lookup and reference
  4. MATCH

MATCH function

Returns the position of a value in a row or column.

Syntax

=MATCH(lookup_value, lookup_array, [match_type])

Arguments

ArgumentRequiredDescription
lookup_valueRequiredThe value to look for
lookup_arrayRequiredA single row or column to search
match_typeOptional1 (default) largest value less than or equal in an ascending list, 0 exact match, -1 smallest value greater than or equal in a descending list

How to use MATCH

MATCH takes 2 required arguments and 1 optional argument. Type =MATCH( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=MATCH(39, {25,38,40,41}, 1)Result 2
=MATCH(41, {25,38,40,41}, 0)Result 4
=MATCH(40, {25,38,40,41}, -1)Result #N/A

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.