ExcelCSE.com

Menu
  • Excel 101
  • Excel Functions
  • Excel Formula
  • Contact Us
How to Use Excel > Excel Functions > INDEX MATCH – Excel VLOOKUP Alternative

INDEX MATCH – Excel VLOOKUP Alternative

INDEX MATCH - Excel VLOOKUP Alternative
Table of contents :
  • INDEX MATCH Formula
  • INDEX MATCH MATCH Formula
  • The Advantage of the INDEX MATCH Formula Compared to the VLOOKUP Function
  • Practice File Download

INDEX MATCH Excel

INDEX MATCH Formula

You can use the INDEX function and the MATCH function together instead of the VLOOKUP function

For basic VLOOKUP formula, read the article below

  • How to Do a VLOOKUP in Excel

For example, there is data as shown below.

INDEX MATCH Formula

How much you have to pay for all tall orders?

The first step to calculate all total bills is to find the price of each drink. Usually, the VLOOKUP function is used to find the prices, for now, it will use the INDEX MATCH formula.

Let’s start with the MATCH function first, to find the position of each drink name in the price table.

=MATCH(F5,$A$2:$A$13,0)

INDEX MATCH Function Excel

Why does the lookup_array argument use the absolute reference? Read the following article for the explanation:

  • Excel Cell Reference – Absolute Reference
  • VLOOKUP Error – Frequently Error and Solution

After the position of each drink name is known, it’s time to retrieve the price of each drink. Drink prices for all sizes are in range B2:D13, by using the results of the MATCH function in column_num argument, the INDEX function can retrieve the price for each drink.

=INDEX($B$2:$D$13,MATCH(F4,$A$2:$A$13,0),1)

INDEX and MATCH in Excel

Use the SUMPRODUCT function to calculate the total bill in cell H9.

The array argument of the INDEX function uses absolute reference; the reason is the same as the lookup_array argument of the MATCH function using an absolute reference.

All orders have the same size, Tall, so the column_num argument of the INDEX function is filled with number 1, the column position in range B2:D13 which contains the price of drinks for Tall size.

What if the drink order has different sizes as shown below?

INDEX MATCH MATCH

It’s time to use the INDEX MATCH MATCH formula.

INDEX MATCH MATCH Formula

If the size of the ordered drink varies, then you need one more MATCH function to determine the position of the size of the drink ordered. The additional MATCH function will fill the column_num argument of the INDEX function.

=INDEX($B$2:$D$13,MATCH(F4,$A$2:$A$13,0),MATCH(G4,$B$1:$D$1,0))

The lookup_value argument of the MATCH function point to cell G4, containing the size of the drink ordered — the lookup_array argument point to range B1:D1 which contains information of all drink sizes and uses an absolute reference.

The result is as shown below.

INDEX MATCH Formula in Excel

The Advantage of the INDEX MATCH Formula Compared to the VLOOKUP Function

Lookup direction after lookup_value found

The VLOOKUP limitation is just looked to the right column to retrieve the result value. No VLOOKUP to the left, instead the INDEX MATCH formula can do lookup to the right or lookup to the left.

This limitation occurs because the VLOOKUP lookup_value requires to be positioned in the first column of table_array while INDEX MATCH lookup_value can be positioned anywhere.

Number of match type

The VLOOKUP function has two match type, Exact (FALSE) and Approximate (TRUE). If using approximate match type, the first column of table_array must be sorted in ascending order.

The INDEX MATCH formula has three match type, Exact (0), Less than approximate (1) and greater than approximate (-1).

If you use less than approximate (1) the lookup_array argument must be sorted in ascending order, whereas if you use a greater than approximate (-1) lookup_array must be sorted in descending order.

The INDEX MATCH formula has more choice of match type, more flexible with various data conditions.

Read the following article for a detailed explanation of VLOOKUP limitations and solutions

  • VLOOKUP Limitations and Solutions

Practice File Download

Download File

 

Related Function

Function used in this article
  • Excel INDEX Function
  • Excel MATCH Function

Related Article

Another article related to this article
  • How to Do a VLOOKUP in Excel
  • Excel Cell Reference
  • VLOOKUP Error – Frequently Error and Solution
  • VLOOKUP Limitations and Solutions
Usefull links
  • Look up values with VLOOKUP, INDEX, or MATCH
Share
Tweet
Google+
Email
Prev Article
Next Article

Related Articles

Excel ISODD Function
What is the Excel ISODD Function? The ISODD function is …

Excel ISODD Function

Multiple IF Statements in Excel
What is Multiple IF Statements? Multiple IF statements are also …

Multiple IF Statements in Excel

Excel TIMEVALUE Function
What is the Excel TIMEVALUE Function? The Excel TIMEVALUE function …

Excel TIMEVALUE Function

Excel DATE Function
What is the Excel DATE Function? The DATE function returns …

Excel DATE Function

Excel TIME Function
What is the Excel TIME Function? The Excel TIME function …

Excel TIME Function

Tags:Excel INDEX MATCH Example Excel INDEX MATCH MATCH Excel VLOOKUP Alternative How to Do INDEX MATCH in Excel How to INDEX MATCH in Excel How to Use INDEX and MATCH How to Use INDEX and MATCH Function in Excel How to Use INDEX and MATCH in Excel How to Use INDEX MATCH How to Use INDEX MATCH Function in Excel How to Use INDEX MATCH in Excel INDEX and MATCH INDEX and MATCH Formula INDEX and MATCH Formula in Excel INDEX and MATCH Function INDEX and MATCH Function Excel INDEX and MATCH Function in Excel INDEX and MATCH in Excel INDEX MATCH Example INDEX MATCH Formula INDEX MATCH Formula in Excel INDEX MATCH Function INDEX MATCH Function Excel INDEX MATCH Lookup INDEX MATCH MATCH INDEX MATCH MATCH Excel INDEX MATCH Syntax INDEX MATCH Tutorial Similar to VLOOKUP Using INDEX and MATCH Using INDEX MATCH VLOOKUP Alternative VLOOKUP Like Function

Categories

  • Excel 101
  • Excel Formula
  • Excel Functions

Recent Posts

  • Get the Original Price from Percentage Increase/Decrease
  • How to Add/Subtract Percentage in Excel
  • How to Extract Day, Month and Year from Date in Excel
  • How to Add Seconds, Minutes and Hours to a Time in Excel
  • How to Add Days, Weeks, Months and Years to a Date in Excel
  • How to Calculate Time Difference in Excel
  • Calculate Number of Days, Weeks, Months and Years Between Two Dates in Excel
  • Flash Fill Excel
  • Paste Special Excel
  • Excel TEXTJOIN Function
  • Excel CONCAT Function
  • Excel CONCATENATE Function
  • Excel REPLACE Function
  • Excel SUBSTITUTE Function
  • Excel REPT Function
  • Excel FIND Function
  • Excel SEARCH Function
  • Excel MID Function
  • Excel RIGHT Function
  • Excel LEFT Function

ExcelCSE.com

The Ultimate Guide How to Use Excel Better
Copyright © 2024 ExcelCSE.com
Contact Us - Privacy Policy - Sitemap | Theme by MyThemeShop.com

Ad Blocker Detected

Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker.

Refresh