MATCH
The MATCH
function in Google Sheets returns the relative position of an item in a range that matches a specified value. This powerful function can be used for various purposes, such as finding the position of a value in a list, performing approximate matches, and more. Explore our comprehensive guide to understand the syntax and usage of the MATCH
function.
Function Syntax and Parameters
Syntax: MATCH(search_key, range, [search_type])
Parameters:
search_key
: The value or reference to the value that you want to search for.range
: The range of cells to be searched.[search_type]
: [Optional] The type of match to be performed. It can be 1, 0, or -1.
Step-by-Step Tutorial
-
Exact Match:
- Example:
=MATCH("apple", A1:A5, 0)
- Result: Returns the position of "apple" in the range A1:A5.
- Example:
-
Approximate Match:
- Example:
=MATCH(80, A1:A5, 1)
- Result: Returns the position of the closest value to 80 in the range A1:A5.
- Example:
Use Cases and Scenarios
- Lookup Values: Find the position of a value in a range.
- Data Validation: Check if a value exists in a list.
- Sorting and Ranking: Determine the relative position of values.