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

LIMITED TIME OFFER
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


copy hyperlink in excellistbox selectedvbscript check if file existsvb excel tutoriallookup in ms exceldelete unwanted rows in excelcopy excel cell to another sheetvba ms access tutorialexcel vba datevaluemessage in vbacalculator program in vbvlookup in excel vba with examplesmerging worksheets in excelexcel project planner ganttexcel char functionpivotal table in excelexcel implementation plan templateexcel vba getsaveasfilenameexcel password recovery macrovba copy filesqlikview macrofrequently asked interview questions and answers for freshersvba code loopunlock xls passwordremoving duplicates in excel 2003hidden numbers worksheetvba check if folder existswhat is hlookup in excel 2007vba chrloops excelexcel vba sql connection stringexcel duplicate rowhow to delete duplicate records in excel 2007pivot table refresh allsql important interview questionsvba listbox multiple columnsdata manipulation language dmlproject charter template powerpointvbscript to delete filesql data manipulation commandsautofit excel 2013excel 2003 vlookuphow to insert a pivot table in excel 2013how to adjust columns in excelhow to start vba in excelnumber of rows in excel 2007vba late bindingmerge cells microsoft excelmeeting minute templatetutorial vlookup excel 2010shot keys of excelsample tosexcel 2007 insert rowremove duplicates formulaaccess vba updatems excel programming tutorialselection vba excelexcel vba column countconditional statement worksheethow to unprotect excel file without passwordvlookup macrohow to protect a excel workbookswitch statement vbawhat are sheet tabsactivex combo boxexcel hiding columnsexcel chart macrovisual basic command buttonvba arrayscopy worksheet excelhow to use name manager in excel 2010excel vba macros tutorialcreate a pivot table in excel 2007sample project budget spreadsheethow to insert lines in excelexcel vba hide columnsexcel vba documentationvba input box