MATCH Function in Excel – Formula Explained with Examples

Home/Excel Formulas/MATCH Function in Excel – Formula Explained with Examples

MATCH function: Explained with Examples

MATCH function is just opposite to Index Function. Index returns a match value for a given index from the range. Where as Match function returns the index for the specific value from the range.

PREMIUM TEMPLATES LIMITED TIME OFFER

ON SALE80% OFF

50+ Project Management Templates Pack
Excel PowerPoint Word

Advanced Project Plan & Portfolio Template
Excel Template

Business Presentations Templates Pack
PowerPoint Slides

20+ Excel Project Management Pack
Excel Templates

20+ PowerPoint Project Management Pack
PowerPoint Templates

10+ MS Word Project Management Pack
Word Templates


What is the use of MATCH function?

MATCH Function in Excel searches for a value in an array and returns the relative position of that item

What is the syntax of MATCH function?

MATCH Function in Excel - Snt

MATCH( value, array,

[match_type] )

value: The value to be searched in the the array.
array: The range or a range name containing the table of data.
[match_type]: Type of match that the function to be performed.
1 = Closest match – largest value that is less than or equal to value (data to be sorted ascending) [Default] 0 = Exact matches are returned
-1 = Closest match – smallest value that is greater than or equal to value (data to be sorted descending)

MATCH Function in Excel- Example

MATCH Function in Excel – Examples

Example 1: Searching for 1008 and found at 2nd place

=MATCH(1008,A5:A8,0) search for 1008 in the range A5:A8 and returns its matched index 2 (it found 1008 at second place in the range A5:A8).

Example 2: Searching for 1005 and not found, returned #NA (since match type is 0 i.e; exact match)

=MATCH(1005,A5:A8,0) search for 1005 in the range A5:A8 and returns its matched index #NA (it does not found 1005 in the range A5:A8).

Example 3: Searching for 1022, returned 3 (since match type is 1 i.e; largest value that is less than or equal to value)

=MATCH(1022,A5:A8,1) search for 1022 in the range A5:A8 and returns its matched index 3 (it does not found 1022 in the range A5:A8, and returns nearest matched value (1020) index as we specified match type as 1).

Example 4: Searching for 1022, returned 3 (since match type is 1 is by default)

=MATCH(1022,A5:A8) search for 1022 in the range A5:A8 and returns its matched index 3 (it does not found 1022 in the range A5:A8, and returns nearest matched value (1020) index as we have not specified match type and it treat it as 1 by default).

Wild cards in the MATCH function

Yes, we can use wild cards in the MATCH function, see the following examples.
MATCH - Example 2

Reference:

Please refer the below article for more Lookup & Reference Excel functions.
Lookup & Reference Excel Formulas

Please refer the below article for more Excel Functions.
Excel Formulas | Home



Related Resource External VBA Reference
Excel VBA Reference Project Management Reference
VBA Reference:
Excel Reference:
By |February 18th, 2013|Excel Formulas|1 Comment

About the Author:

Excel VBA Developer having around 8 years of experience in using Excel and VBA for automating the daily tasks, reports generation and dashboards preparation. Valli is sharing to helps us automating daily tasks.

One Comment

  1. September 11, 2014 at 9:11 PM - Reply

    kindly please send

Leave A Comment


Related pages


access vba query tabledelete rows in vbasql faqs with answers pdfunprotect spreadsheetvb6 open text fileexcel vba sheet rangevb file handlingvba excel loopsms excel password protectvba cell valueexcel isna functionoption button excel vbahide column in excelhow to remove duplicates from two columns in excelexcel isemptypassword protect vba codevbscript output to text filecreating a hyperlink in exceldaily standup meeting templatehow to show hidden rows in excelwindows excel shortcut keysvba code for excel examplesit business analyst interview questions and answers pdfcapacity planning template in excel spreadsheetvba columnsexcel how to write a macrodaily task sheet template excelsample vba projectsmsgbox excelhow to find duplicate values in two columns in excelcells vba excelvba enableeventspivot table vba exceltimevalue in excelvba code for excel examplesmacro to copy worksheetfrequently asked interview questions and answers for fresherswhat does vba mean in excellookup function in excel 2007formula concatenate excelunlock excel sheet without passwordexcel hyperlink macrorun access macro from excelexcel tables tutorialexcel macro templatesvba form excelmonthly planning calendar template excelwhat is merging cells in excelvba export excel to accessinterview questions and answers for freshershyperlink excel sheetvba excel copycustom messageboxcommand button click vbavba excel delete rowmeeting minute formatsave as filename vbaexcel vba saveexcel 2010 how to remove duplicatesvba macrosonline unprotect excel sheetsurface chart excelexcel vba application.waitmerge rows in excelvba code tutorialcomplete excel tutorial pdfvba dim rangecopy and paste excel sheetvba excel chartsunhiding columns in excelswot analysis templates powerpoint