How to Use INDEX and MATCH in Microsoft Excel (2024)

Quick Links

  • VLOOKUP Versus INDEX and MATCH

  • INDEX and MATCH Function Basics

  • How to Use INDEX and MATCH in Excel

While the VLOOKUP function is good for finding values in Excel, it has its limitations. With a combination of the INDEX and MATCH functions instead, you can look up values in any location or direction in your spreadsheet.

The INDEX function returns a value based on a location you enter in the formula while MATCH does the reverse and returns a location based on the value you enter. When you combine these functions, you can find any number or text you need.

VLOOKUP Versus INDEX and MATCH

The difference between these functions and VLOOKUP is that VLOOKUP finds values from left to right. Hence the function's name; VLOOKUP performs a vertical lookup.

Microsoft best explains the way VLOOKUP works:

There are certain limitations with using VLOOKUP---the VLOOKUP function can only look up a value from left to right. This means that the column containing the value you look up should always be located to the left of the column containing the return value.

Microsoft goes on to say that if your sheet isn't set up in a way where VLOOKUP can help you find what you need, you can use INDEX and MATCH instead. So let's look at how to use INDEX and MATCH in Excel.

INDEX and MATCH Function Basics

To use these functions together, it's important to understand their purpose and structure.

The syntax for INDEX in Array Form is

INDEX(array, row_number, column_number) 

with the first two arguments required and the third optional.

INDEX looks up a position and returns its value. To find the value in the fourth row in the cell range D2 through D8, you would enter the following formula:

=INDEX(D2:D8,4)
How to Use INDEX and MATCH in Microsoft Excel (1)

The result is 20,745 because that's the value in the fourth position of our cell range.

For more details on the Array and Reference Forms of INDEX as well as other ways to use this function, take a look at our how-to for INDEX in Excel.

The syntax for MATCH is MATCH(value, array, match_type) with the first two arguments required and the third optional.

MATCH looks up a value and returns its position. To find the value in cell G2 in the range A2 through A8, you would enter the following formula:

=MATCH(G2,A2:A8)

The result is 4 because the value in cell G2 is in the fourth position in our cell range.

For additional details on the match_type argument and other ways to use this function, take a look at our tutorial for MATCH in Excel.

Related: How to Find a Value's Position With MATCH in Microsoft Excel

How to Use INDEX and MATCH in Excel

Now that you know what each function does and its syntax, it's time to put this dynamic duo to work. Below, we'll use the same data as above for INDEX and MATCH individually.

You'll place the formula for the MATCH function inside the formula of the INDEX function in place of the position to look up.

To find the value (sales) based on the location ID, you would use this formula:

=INDEX(D2:D8,MATCH(G2,A2:A8))

The result is 20,745. MATCH finds the value in cell G2 within the range A2 through A8 and provides that to INDEX which looks to cells D2 through D8 for the result.

How to Use INDEX and MATCH in Microsoft Excel (3)

Let's look at another example. We want to know which city has sales that match a certain amount. Using our sheet, you would enter this formula:

=INDEX(B2:B8,MATCH(G5,D2:D8))

The result is Houston. MATCH finds the value in cell G5 within the range D2 through D8 and provides that to INDEX which looks to cells B2 through B8 for the result.

How to Use INDEX and MATCH in Microsoft Excel (4)

Here's an example using an actual value instead of a cell reference. We'll look for the value (sales) for a specific city with this formula:

=INDEX(D2:D8,MATCH("Houston",B2:B8))

In the MATCH formula, we replaced the cell reference containing the lookup value with the actual lookup value of "Houston" from B2 through B8 which gives us the result 20,745 from D2 through D8.

Be sure when you use the actual value to look up, rather than a cell reference, that you enclose it in quotes as shown here.

How to Use INDEX and MATCH in Microsoft Excel (5)

To obtain that same result by using the location ID instead of the city, we simply change the formula to this:

=INDEX(D2:D8,MATCH("2B",A2:A8))

Here we changed the MATCH formula to look up "2B" in the cell range A2 through A8 and provide that result to INDEX which then returns 20,745.

How to Use INDEX and MATCH in Microsoft Excel (6)

Basic functions in Excel like those that help you add numbers in cells or enter the current date are certainly helpful. But when you start adding more data and advancing your data entry or analysis needs, lookup functions like INDEX and MATCH in Excel can be quite useful.

Related: 12 Basic Excel Functions Everybody Should Know

How to Use INDEX and MATCH in Microsoft Excel (2024)
Top Articles
Your top stories on Friday: Dylan McGrath shuts two Dublin restaurants; why ‘living in Australia feels suspiciously easy’
Kenyans vow to 'take back' their country on August 8 – DW – 08/07/2024
159R Bus Schedule Pdf
Terraria Artisan Loaf
Craigslist Kentucky Cars And Trucks - By Owner
Calvert Er Wait Time
Craigslist Pets Longview Tx
Understanding Pickleball Court Dimensions: Essential Guide
Weldmotor Vehicle.com
William Spencer Funeral Home Portland Indiana
Chase Bank Time Hours
San Antonio Busted Newspaper
James Cameron And Getting Trapped Inside Your Most Successful Creation
Sermon Collections, Sermons, Videos, PowerPoint Templates, Backgrounds
Unit 5 Lesson 6 Coding Activity
University Of Michigan Paging System
Cocaine Bear Showtimes Near Amc Braintree 10
Bowser's Fury Coloring Page
Maryland Parole Hearing Schedule 2023
Auto-Mataru
‘There’s no Planet B’: UNLV first Nevada university to launch climate change plan
Shawn N. Mullarkey Facebook
Harris Teeter Weekly Ad Williamsburg Va
Author T. Jefferson Parker
Virtualrewardcenter.com/Activate
Core Relief Texas
Green Warriors of Norway: “Salvage the 67 tonnes mercury bomb now” | Norges Miljøvernforbund
Andhrajyoti
N33.Ultipro
Classic Buttermilk Pancakes
Paul Mauro Bio
Phunextra
How Much Do Internet and Wi-Fi Cost?
Fade En V Pelo Corto
Dimmitt Range Rover
Stark Cjis Court Docket
Ny Lottery Second Chance App
Uw Oshkosh Wrestling
Craigslist Sf Bay Free Stuff
Alibaba Expands Membership Perks for 88VIP
Hooda Math—Games, Features, and Benefits — Mashup Math
Venti X Zhongli R34
Ttw Cut Content
Couponsky.com
358 Edgewood Drive Denver Colorado Zillow
Delta Rastrear Vuelo
Loredana Chivu, despre operațiile făcute la clinica anchetată: "Am fost la un pas de moarte"
Niw 一亩三分地
Immobiliare di Felice| Appartamento | Appartamento in vendita Porto San
Craigslist For Puppies For Sale
Bme Flowchart Psu
Never Would Have Made It Movie 123Movies
Latest Posts
Article information

Author: Aron Pacocha

Last Updated:

Views: 6291

Rating: 4.8 / 5 (68 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Aron Pacocha

Birthday: 1999-08-12

Address: 3808 Moen Corner, Gorczanyport, FL 67364-2074

Phone: +393457723392

Job: Retail Consultant

Hobby: Jewelry making, Cooking, Gaming, Reading, Juggling, Cabaret, Origami

Introduction: My name is Aron Pacocha, I am a happy, tasty, innocent, proud, talented, courageous, magnificent person who loves writing and wants to share my knowledge and understanding with you.