Match Worksheet Function

by Linda Quinn

Close Window        Print Page


=Match(lookup_value, lookup_array, [match_type])



MATCH finds the location of a value in a specific row or column.


SYNTAX:    =Match(lookup_value, lookup_array, [match_type])

Lookup_Value This is the value you want to find.
This can be a number, text, a cell reference, or a logical value.
Lookup_Array This is a row or column where the match will be found.
The lookup_array must be a single row or column.
Match_Type 0 = Find an exact match
1 = Closest value that is less than or equal to the lookup_value
      Lookup_array must be in ascending order
2 = Closest value that is greater than or equal to the look-up value
      Lookup_array must be in descending order



Example:
excel excel

=MATCH(39, B1:B4, 1)

Example:
excel excel

=MATCH(39, B1:B4, 2)

Example:
excel excel

=MATCH("Gadgets", A1:A4, 0)

* Look in the lookup_array of A1:A4 for the value Gadgets.

* The match_type value is 0, which means to find the exact match.

* The text in cell A3 is an exact match.

* The value 3 is returned by the MATCH formula because Gadget is the third element in the lookup_array.











Copyright © 2006-2019, LQSystems,Inc. All rights reserved.