Advertisements

Excel MATCH Function

The Excel MATCH Function returns the location reference of a particular value in a cell or range or a table. The MATCH function can be used for partial matching, exact matching, and wildcards. The MATCH function is used combined with the INDEX Function.

In this section:

Advertisements

  1. Syntax
  2. Exact Match
  3. Approximate Match
  4. Wildcard Match
  5. Case-sensitive Match
  6. ISNA and MATCH
  7. INDEX/MACTH combination to find Names.

Excel MATCH Function

1. Syntax:

=MATCH (lookup_value, lookup_array, [match_type])

  1. lookup_value: The value for which users want to match with.
  2. lookup_array: Reference to a range of cells or an array reference.
  3. match_type: This is an optional argument, which indicates match type.

Match type:

  1. 0: Exact Match
  2. 1: Approximate Match
  3. -1: Approximate Match

Examples:

2. Return the Exact Match (0):

To return the Exact Match value, the formula is =MATCH(G5, C6:C14, 0), which returns the value of 6, the position of Milton in column C.

Excel MATCH Function to return exact match.

3. Return the Approximate Match (1):

To return the approximate match, the formula is =MATCH(G5, C6:C14, 1), which returns the value of 8, the approximate match with “Mi“.

Excel MATCH Function to return value for approximate match.

4. Return value for Wildcard Match (?, *):

To return values for wildcard match, the formula is =MATCH(G5, C6:C14, 0), which returns the value of 6, the first match with “Mi”–Milton.

Advertisements
Excel MATCH Function to return value for Wildcard match.

5. Return the case-sensitive Match ():

To return the value with case-sensitive match, the formula is {=MATCH(TRUE, EXACT(C6:C14, G5),0)}, which returns the value of 6, the position of lower case “rich“. We can check with the “Rich” (with upper case R) and will see the position is 2.

Excel MATCH Function to return case-sensitive match.

6. Return “Not in Dept A” if the values do not match:

The combination of ISNA and MATCH is used to compare the values in different cells. In our example, we wanted to check whether values in Dept A and Dept B are homogeneous. When Excel finds that the values are different from Dept B, it returns “Not in Dept A”, and the formula is =IF(ISNA(MATCH(D8, C:C, 0)), “Not in Dept A”, ” “).

Excel MATCH Function to compare values in different cells.

7. INDEX/MATCH to find Names:

To find the names of person by department, we can use the INDEX/MATCH combination, and the formula is =INDEX(C6:C12, MATCH(H5, E6:E12, 0)).

Excel INDEX-MATCH function to find names.

More reading:

MS Office post on MATCH Function

Excel INDEX Function

Excel CHOOSE Function

16 Responses

  1. An impressive share, I just given this onto a colleague who was doing a little analysis on this. And he in fact bought me breakfast because I found it for him.. smile. So let me reword that: Thnx for the treat! But yeah Thnkx for spending the time to discuss this, I feel strongly about it and love reading more on this topic. If possible, as you become expertise, would you mind updating your blog with more details? It is highly helpful for me. Big thumb up for this blog post!

  2. obviously like your web-site but you have to check the spelling on quite a few of your posts. Many of them are rife with spelling problems and I find it very troublesome to tell the truth nevertheless I will surely come back again.

  3. Today, while I was at work, my cousin stole my iPad and tested to see if it can survive a 30 foot drop, just so she can be a youtube sensation. My iPad is now broken and she has 83 views. I know this is completely off topic but I had to share it with someone!

Leave a Reply

Your email address will not be published. Required fields are marked *

Advertisements