×

How to use Index and Match in Excel?

The Index and Match function is a familiar and frequently used function in Excel. It is one of the most powerful functions and is easy to use. By default, Excel contains multiple formulas and functions in a default manner, which are used to perform various calculations. Among these functions, the Index and Match function is used to perform the task of various lookups. Lookups include,

Horizontal and vertical lookup

  1. Two-way lookup
  2. Left lookup
  3. Even lookup
  4. Case sensitive lookup
  5. Even lookup   

The detailed functionality of various lookup is described clearly with an example as follows,

INDEX Function

The INDEX function displays the value at a given location in a range. The steps to be followed to use the Index function is,

Step 1: Enter the data in the respective row or column, A1:D10.

How to use Index and Match in Excel

Step 2: Select the new cell where the user wants to display the result, namely E1:F1.

Step 3: In cell E1, type "NAME" and in F1, type the formula as =INDEX (B2:B10, 4). Here '4' indicates the fourth value present in row B2:B10.

Step 4: Press Enter. The result will be displayed as VIRAT in cell F1.

How to use Index and Match in Excel

From the above worksheet, the index function returns the value present in cell B5, which is the 4th value in column B2:B10.

Here is another method for the Index function to display the car name as follows,

Step 1: Enter the data in the respective row or column, A1:D10.

Step 2: Select the new cell where the user wants to display the result, namely E1:F1.

Step 3: In cell E1, type "CAR," and in F1, type the formula as =INDEX (B2:C10, 4, 2). Here 4 and 2 represent the data to be displayed, which is present in the fourth row and second column.

How to use Index and Match in Excel

From the above example, "TOYOTA" is displayed, which is present in the 4th row and 2nd column in the data range B2:C10.

MATCH Function

The MATCH function is used to find the position of the given data or value. The steps to be followed to use the MATCH function are as follows,

Step 1: Enter the data in the respective row or column, A1:A10.

How to use Index and Match in Excel

Step 2: Select the new cell where the user wants to display the result, B1:C1.

Step 3: In cell B1, type "Fruit Name," and in C1, type the formula as =MATCH ("Avocado", A2:A10, 0).

Step 4: Press Enter. The formula returns the exact position of the fruit “Avocado”.

How to use Index and Match in Excel

From the above worksheet, the position of the fruit "Avocado" is displayed as "6," which is present in the sixth position of the column range A1:A10.

Here is a method for the MATCH function to display the position name of the data, which is present horizontally or vertically. The steps to be followed are,

Step 1: Enter the data in the horizontal manner row from A1:I1.

Step 2: Select the new cell where the user wants to display the result, namely

B2.

Step 3: In cell A2, type "Fruit Name," and in B2, type the formula as =MATCH (“Avocado”, B1:I1, 0).

Step 4: Press Enter. The formula returns the exact position of the fruit "Avocado," where the data are presented horizontally.

How to use Index and Match in Excel

The above worksheet displays the result as "6," which is the position of the fruit Avocado horizontally.

Combination of INDEX and Match Function

Here, in this example, the combination of INDEX and MATCH functions is used to retrieve the values. For example, the marks of various students in the same class for the respective subjects are shown below.

Step 1: Enter the data in the respective row and column, namely A1:E10

How to use Index and Match in Excel

From the above data, to find the ENGLISH Mark for SHARMA, the steps to be followed are as follows,

Step 2: Select a new cell, namely G1, and enter the formula as

 =INDEX (B2:E10, 5, 2)

The above INDEX formula helps to retrieve the data from the respective row and column. Here the value is retrieved from the 5th row and 2nd column.

How to use Index and Match in Excel

The MATCH function is nested inside the INDEX function to implement the dynamic lookup.

The formula for dynamic lookup is =INDEX (B2:E10, MATCH (“SHARMA”, A2:A10, 0), 2). The MATCH function finds the exact position of the required data.

How to use Index and Match in Excel

From the above worksheet, the MATCH and INDEX functions find the exact data in the position.

An alternative method to find the position of the data in the given table, the formula used is,

=INDEX (B2:E10, MATCH (G2, A2:A10, 0), 2). Here G2 is the cell where the Name “Sharma” is present. To display the exact data present in the mentioned row and column, the steps to be followed are,

1. Select a new cell, G2, and type SHARMA.

2. Enter the formula as =INDEX (B2:E10, MATCH (G2, A2:A10, 0), 2) in the cell G3.

3. The result will be displayed in cell G3 as 45, the English mark of Sharma.

Two-way lookup

The above concept identifies the row number dynamically, but the column is hard coded. To make it fully dynamic, the MATCH function is used twice to retrieve the row position once and the column position once.

Here in this method, using INDEX and MATCH functions, a two-way lookup is used to find the respective data.

As is already known, the MATCH function works with horizontal and vertical arrays. For example,

=MATCH (“ENGLISH”, A1:E1, 0)

The MATCH function returns the position as 3. But here, the value "ENGLISH" is hard coded. To use the function without hard coding any values in the formula, the steps to be followed are,

Step 1: Enter the data in the respective row and column, namely A1:E10

How to use Index and Match in Excel

Step 2: To find the Math mark for Sharma, in cell G1, enter "Sharma," and in G2, enter "MATHS".

Step 3: In the cell G3, enter the formula as =INDEX (A2:E10, MATCH (G1, A2:A10, 0), MATCH (G2, A1:E1, 0))

Step 4: The result will be displayed as 78, a Math mark of Sharma.

How to use Index and Match in Excel

The above worksheet shows the MATH mark of Sharma as 78 using a two-way lookup.

From the above formula, the first Match function indicates the 5th row, and the second Match function indicates the 5th column. Once the MATCH function runs, the formula is simplified as follows,

=INDEX (A2:E10, 5, 5), which displays the result present in the respective rows and columns.

Left Lookup

 To perform a Left lookup, the Id number is at the right of the table where the required values are retrieved. The steps to be performed for the left lookup are as follows,

Step 1: Enter the data in the respective row and columns

How to use Index and Match in Excel

Step 2: To display the name Divya using left lookup, select a new cell.

H2 and enter the ID number as 106.

Step 3: Select a new cell where the user wants to display the result, namely H3, and enter the formula as =INDEX (A2:A10, MATCH (H2, F2:F10, 0))

Step 4: The result will be displayed as DIVYA in cell H3.

How to use Index and Match in Excel

Case Sensitive Lookup

The Match Function is not case-sensitive. Combining the EXACT function with the INDEX and MATCH functions looks for both lower and upper case. The steps to perform Case Sensitive Lookup is as follows,

Step 1: Enter the data in the respective row and column.

How to use Index and Match in Excel

Step 2: To display the quantity of the fruit Plums, select a new cell, namely C4 and enter the fruit name as Plums.

Step 3: Select a new cell where the user wants to display the result, namely D4, and enter the formula as =INDEX (B2:B10, MATCH (TRUE, EXACT (C4, A2:A10), 0))

Step 4: The result will be displayed in cell D4 as 78, which is the number of PLUMS.

How to use Index and Match in Excel

Summary

From the above tutorial, the various functions and methods of using INDEX and MATCH are explained clearly.


Related Topics

Excel Ribbon Toolbar

Excel Ribbon/Toolbar How does a toolbar look like? The top section of an excel file is called a Ribbon or a toolbar. It has various commands which can be useful for us in our daily work....

6 minutes read.

Excel TEXT() Function

The TEXT () function in excel converts a supplied numerical value into the text of a specific format. Syntax TEXT(Value, Format_text) Parameter Value (required)- This parameter represents the value for which we need to...

1 minute read.

Text to columns in Excel

Microsoft Excel is widely used in startups to large companies. The data are entered in required rows and columns, and sometimes the data entered in one cell needs to enter...

4 minutes read.

Count Cells with Text in Excel

Excel spreadsheets are widely used in many fields to store and analyze data. Usually, the cells present in excel are a combination of numbers and text. To perform the calculation...

3 minutes read.

SUM Functions in Excel

The BODMAS formula plays a vital role in the concept of mathematics. BODMAS rule follows the Bracket of Division, Multiplication, Addition and Subtraction. This rule is followed for a correct...

6 minutes read.

How to create drop down in excel?

How to create drop down in excel? Drop-down lists are mostly used to facilitate data entry operations. They are commonly used in interactive websites or applications. Microsoft has expanded his Excel's data validation feature...

5 minutes read.

Data Analysis in Excel

Data Analysis in Excel Data analysis is a powerful tool that helps the users to make better decisions by comparing different information. Microsoft Excel extends its credibility to enforce the data analysis tool...

6 minutes read.

Excel IF() Function

Excel IF() Function: The IF() function in excel checks whether a condition is true or not and returns one value if the condition is TRUE and another value if it's...

2 minutes read.

Custom Sort Order in Excel

Microsoft Excel Worksheet is widely used for office, personal and various usages. The data present in the worksheet is a combination of numbers and alphabets. If the worksheet contains more...

3 minutes read.

Spell Check in Excel

Spell Check in Excel Microsoft Excel facilities the complete features for examining the work with text. It provides the basic properties for the proper functioning of text, including the spell-check property. The...

5 minutes read.

Square Root Function in Excel

The concept of Mathematical calculations includes a large number of numbers and calculations are based on the numbers present in the data. Likewise, Square Root is a function used to...

3 minutes read.

Goal Seek in Excel

Goal Seek in Excel The Goal Seek Excel function in Excel facilitates an automatic solving approach by adjusting a few pointers to reach a required output. Goal seeking is used when you have a value in...

3 minutes read.

Excel OFFSET () Function

Excel OFFSET () Function The OFFSET() function in excel returns range of cells that is a specified number of rows and columns from an initial specified range. Syntax OFFSET (reference, rows, cols, [height], [width]) Parameter reference(required)-...

2 minutes read.

Excel SMALL() Function

The SMALL() function in excel returns the k-th smallest value in a data set. Syntax SMALL(Array, kth small number from the list) Parameter Array (required)- This parameter represents the list of numbers from which nth smallest...

1 minute read.

Excel TIME() Function

Excel TIME() Function The TIME() function in excel returns the serial number of a particular time. Syntax TIME(HOUR, MINUTE, SECOND) Parameter HOUR (required)- This parameter represents the hour for your time. MINUTE (required)- This parameter represents the...

1 minute read.

Excel INDEX () Function

Excel INDEX () Function The INDEX() function in excel returns a value from a list of tables based on the intersection of a row and a column position. This function is used with the...

2 minutes read.

Text to Columns

Text to Columns This Excel feature is used to split the cell content name of one cell into multiple columns based on a delimiter, such as a space or a special character or based...

2 minutes read.

Excel MAX() Function

Excel MAX() Function The MAX() function in excel returns the largest or maximum number from a range of cells. It ignores logical values and text. Syntax MAX(Number1,Number2, ...) Parameter Number1(required)- This parameter represents the string for which you...

1 minute read.

How to lock cells in Excel?

How to lock cells in Excel? The locked cells feature used to protect and secure your Excel sheet or workbook from the unauthorized access. If the cells are locked, it can’t be deleted, reformatted,...

5 minutes read.

How to Make Use of the F-Test in Excel

Intro to F-Test in Microsoft Excel F-Test is primarily considered to be the essential tool of statistical in Microsoft Excel that, in turn, is used to do the hypothesis test with...

7 minutes read.