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


excel remove repeatsmsgbox example vbacreate macro for excelhow do i get rid of extra pages in excelhow to add developer tab to ribbon in wordexcel 2010 unhide rowsexcel comparison operatorsexcel adding rows formulaexcel shortcut keys listvba excel while loopwhen to use sumifexcel combobox valuesdynamic array vbauseful excel formulasvba activesheetexcel conditional andexcel vba formsexcel macro formforgot excel password to unprotect sheetvb array lengthcell vbalearn vba macrosremove duplicate entries in excel 2010count cells in a range vbaexcel auto enable macrosvba code to open a foldertraining schedule template excelhow do you get a tick in excelformula of hlookuphow to create dashboard in excel 2007delete row in excel vbavba excel basicsvba worksheet namesas books for beginnerswhat is a pivot table in excel 2013application.wait excel vbaexcel developer tab 2013vba macros in excelms excel data validation listexplain activex controlvba combobox propertiesvlookup samplesdelete duplicate lines in excelhidden numbers worksheetvba while loopsexcel vba inputpowerpoint project status dashboard templateado recordset openmacro code for excelwhat is the formula of vlookup in excelvlookup excel vbauppercase vbahow to protect ms excel 2007 with passwordhow to analyse trends in exceltcl commands in sql serverusing the match function in excelinsert shortcut key excelcreating excel macropivot table in excel 2007 with examplevba byval2007 excel templatesexcel unhide all sheetsexcel macro read text fileexcel vba programming for dummies pdfvba string containshow to merge two cells together in excelquestions asked in interview with answers for freshersexamples of ddlworkbook open vbaeffort estimation template for software developmentadvanced filter excel vbahow to record macrosinsert check box in excelwriting macros in word