The MATCH function is a powerful tool available in both Excel and Google Sheets, used to find the position of a value within a range. It is often combined with INDEX to create dynamic and flexible lookups. This article breaks down how MATCH works, its syntax, and real-world applications.
What is the Match Function?
The MATCH function searches for a specific value in a given range and returns its relative position rather than the value itself. Unlike VLOOKUP, which retrieves data from a column, MATCH simply tells you where a value is located, making it highly flexible and efficient.
Follow the steps below on how to use the MATCH function in Excel and Google Sheets:
Step 1: Understanding the Match Syntax
The MATCH function follows this format: MATCH (lookup_value, lookup_array, [match_type])
lookup_value : The number or value you want to find.
lookup_array : The range of numbers where Excel/Google Sheets will search.
match_type (optional) : Controls how the search is performed
0 : Exact match (most commonly used).
1 : Largest value ≤ lookup_value (range must be sorted in ascending order).
-1 : Smallest value ≥ lookup_value (range must be sorted in descending order).
Step 2: Finding the Lookup Value
Select the range of cells that contain the values you want to search through
Identify the position of the desired value
For example, we want to extract column number for Services within the Account Range
Enter the MATCH formula as shown below
Step 3: Select your Lookup Value
Enter in the lookup value that you would like to see
For this example, Services is in cell D9
Step 4: Select your Lookup Array
Enter in the Account Range that “Services” is under in the sheet
For this example, it is from cell B12:B17
Step 5: Select your Match Type
In this instance, I want an exact match for the lookup value, so I add in 0 after my lookup array.