This function looks for an item in a list and shows its position. It can be used with text and numbers. It can look for an exact match or an approximate match.
Syntax:
=MATCH(WhatToLookFor,WhereToLook,TypeOfMatch)
The Type Of Match is either 0, 1 or -1.
0 will look for an exact match. If no match is found the #NA error will be shown.
1 will look for an exact match, or the next lowest number if no exact match exists.
If there is no match or next lowest number the error #NA is shown.
The list of values being examined must be sorted for this to work correctly.
-1 will look for an exact match, or the next highest number if no exact match exists.
If there is no exact match or next highest number the error #NA is shown.
The list must be sorted for this to work properly.
Example:
Syntax:
=MATCH(WhatToLookFor,WhereToLook,TypeOfMatch)
The Type Of Match is either 0, 1 or -1.
0 will look for an exact match. If no match is found the #NA error will be shown.
1 will look for an exact match, or the next lowest number if no exact match exists.
If there is no match or next lowest number the error #NA is shown.
The list of values being examined must be sorted for this to work correctly.
-1 will look for an exact match, or the next highest number if no exact match exists.
If there is no exact match or next highest number the error #NA is shown.
The list must be sorted for this to work properly.
Example:
Comments
Post a Comment