Syntax
| Parameter | Description |
|---|---|
| lookup_value | Parameter of the MATCH function. |
| lookup_array | Parameter of the MATCH function. |
| [match_type] | (Optional.) Parameter of the MATCH function. |
Examples
Find position of a value in a list
=MATCH("Gadget", A2:A10, 0)
Find closest match in sorted data
=MATCH(75, B2:B20, 1)
Case-insensitive search
=MATCH("widget", A2:A100, 0)
Common Errors
The value was not found in the range. Double-check spelling, extra spaces, or whether the value actually exists in the data.
The match_type argument is invalid. Use 0 for exact match, 1 for less-than, or -1 for greater-than.
Tips
The third argument defaults to 1 (approximate), which requires sorted data. For most lookups, use 0.
With match_type 0, you can use wildcards: =MATCH("Sm*", A:A, 0) finds the first entry starting with "Sm".
=INDEX(C:C, MATCH(lookup_value, A:A, 0)) is the standard pattern. MATCH finds the row, INDEX returns the value.
Try MATCH in Viztab
Import your data and use MATCH with 370+ other formulas. No signup required.
Open Viztab