Professional Documents
Culture Documents
Cart Login
Search... Search
338
Shares
https://exceljet.net/excel-functions/excel-match-function 1/13
1/14/2018 How to use the Excel MATCH function | Exceljet
Summary
MATCH is an Excel function used to locate the position of a lookup value in a row, column, or table. MATCH supports
approximate and exact matching, and wildcards (* ?) for partial matches. Often, the INDEX function is combined with
MATCH to retrieve the value at the position returned by MATCH.
Purpose
Get the position of an item in an array
338
Shares
https://exceljet.net/excel-functions/excel-match-function 2/13
1/14/2018 How to use the Excel MATCH function | Exceljet
Return value
A number representing a position in lookup_array.
Syntax
=MATCH (lookup_value, lookup_array, [match_type])
Arguments
lookup_value - The value to match in lookup_array.
Usage notes
Use the MATCH function to get the relative position of an item in an array. Match offers several different matching
modes, which makes it more exible than other lookup functions. Used together with INDEX, MATCH can retrieve the
value at the matched position.
If match_type is 1, MATCH nds the largest value that is less than or equal to lookup_value. The
lookup_array must be sorted in ascending order.
338
Shares
https://exceljet.net/excel-functions/excel-match-function 3/13
1/14/2018 How to use the Excel MATCH function | Exceljet
If match_type is 0, MATCH nds the rst value exactly equal to lookup_value. lookup_array does not need to
be sorted.
If match_type is -1, MATCH nds the smallest value that is greater than or equal to lookup_value. The
lookup_array must be sorted in descending order.
Notes:
The argument lookup_array must be placed in descending order: TRUE, FALSE, Z-A,...2, 1, 0, -1, -2,..., and so
on.
If match_type is 0 and lookup_value is text, the wildcard characters question mark (?) and asterisk (*) can be
used in lookup_value.
If match_type is 0 and lookup_value is text, lookup_value can contain the wildcard characters asterisk (*)
and question mark (?). An asterisk matches any sequence of characters; a question mark matches any single
character.
Multi-criteria
338 lookup and transpose
Shares
https://exceljet.net/excel-functions/excel-match-function 4/13
1/14/2018 How to use the Excel MATCH function | Exceljet
To perform a multi-criteria lookup and transpose results into a table, you can use an
array formula based on INDEX and MATCH. In the example shown, the formula in G5
is: {=INDEX(amount,MATCH(1,($F5=location)*(G$4=...
https://exceljet.net/excel-functions/excel-match-function 5/13
1/14/2018 How to use the Excel MATCH function | Exceljet
To count with multiple criteria, including logic for NOT one of several things, you can
use the SUMPRODUCT function together with the MATCH and ISNA functions. In the
example shown, the formula in G8 is: =SUMPRODUCT...
https://exceljet.net/excel-functions/excel-match-function 6/13
1/14/2018 How to use the Excel MATCH function | Exceljet
To perform a partial match (a substring match) against numbers, you can use an
array formula based on MATCH and TEXT. Background Excel supports the wildcard
characters "*" and "?". However, if you use wildcards with a...
Get338
rst non-blank value in a list
Shares
https://exceljet.net/excel-functions/excel-match-function 7/13
1/14/2018 How to use the Excel MATCH function | Exceljet
If you need to get the rst non-blank value (text or number) in a in a one-column
range you can use an array formula based on the INDEX, MATCH, and ISBLANK
functions. In the example the formula we're using is:...
Related videos
https://exceljet.net/excel-functions/excel-match-function 8/13
1/14/2018 How to use the Excel MATCH function | Exceljet
338
Shares
https://exceljet.net/excel-functions/excel-match-function 9/13
1/14/2018 How to use the Excel MATCH function | Exceljet
Related functions
Excel INDEX Function
The Excel INDEX function returns the value at a given position in a range or array.
You can use index to retrieve individual values or entire rows and columns. INDEX is
often used with the MATCH function, where MATCH locates and feeds a position to...
https://exceljet.net/excel-functions/excel-match-function 10/13
1/14/2018 How to use the Excel MATCH function | Exceljet
338
Shares
https://exceljet.net/excel-functions/excel-match-function 11/13
1/14/2018 How to use the Excel MATCH function | Exceljet
Topic Guide
Function Guide
Formula Examples
Excel Shortcuts
Pivot Tables
INDEX and MATCH
338 Excel Charts
Shares
https://exceljet.net/excel-functions/excel-match-function 12/13
1/14/2018 How to use the Excel MATCH function | Exceljet
Conditional Formatting
Custom Number Formats
Data Validation
Nested IF examples
How-to videos
Video training
Excel people
Excel books
Recent comments
Key functions
IF function
VLOOKUP function
SUMIFS function
COUNTIFS function
INDEX function
MATCH function
SUMPRODUCT function
338
Shares
https://exceljet.net/excel-functions/excel-match-function 13/13