SheetRocks
Documentation/Formulas/MATCH

MATCH

Returns the position of the item/lookup_value in the lookup_array or range.

Syntax

MATCH(lookup_value, lookup_array, [match_type])

Arguments

Argument Description Required
lookup_value The value to match in the lookup_array. Required
lookup_array The data array that is being searched. Required
match_type [OPTIONAL - defaults to 1] It can be set to 1, 0, or -1 to return results as given below:

Examples

Find exact position of value

=MATCH("Cherry", A1:A4, 0)
Result ⇒ 3
A
1 Apple
2 Banana
3 Cherry
4 Date

Find position in sorted numeric list

=MATCH(25, A1:A5, 1)
Result ⇒ 2
A
1 10
2 20
3 30
4 40
5 50

Find position of employee name

=MATCH("Bob", A1:A4, 0)
Result ⇒ 3
A
1 John
2 Jane
3 Bob
4 Alice

Related Functions

Other Data functions:


← Back to Formula Reference