INDEX MATCH in Excel combines two functions to locate information and return matching values from a spreadsheet. It is particularly useful when you need to retrieve product prices, employee records or sales figures, including information positioned to the left of a lookup column.
The basic formula is:
=INDEX(return_range,MATCH(lookup_value,lookup_range,0))
This makes the formula particularly useful for everyday spreadsheet tasks where accuracy and efficient data retrieval matter.
It’s also one of the practical techniques worth developing when building advanced Excel skills for work.
Build Your Excel Skills with Structured Training
If you want to strengthen your spreadsheet knowledge beyond lookup formulas, Skill Up’s Microsoft Excel Complete Training provides an online learning option covering Excel functions and other spreadsheet techniques.
Want a ready-made formula? Try our INDEX MATCH formula builder.
What Is INDEX MATCH in Excel?
INDEX MATCH is a combination of two Excel functions used to look up and retrieve information from a spreadsheet.
- MATCH identifies the position of a value within a selected range.
- INDEX returns the value at a specified position within another range.
Together, they allow you to search one column and retrieve corresponding information from another.
For example, imagine a spreadsheet containing product codes, product names and prices. Instead of scrolling through the list, you can enter a product code and retrieve its price automatically.
The final 0 in the basic formula tells MATCH to look for an exact match.
Unlike VLOOKUP, INDEX MATCH can retrieve values from columns positioned either to the left or right of the lookup column.
How Do the INDEX and MATCH Functions Work?
Before combining the functions, it helps to see what each one does independently.
How the MATCH Function Finds a Position
MATCH searches a range and returns the relative position of a specified value.
Its syntax is:
=MATCH(lookup_value,lookup_array,0)
Suppose cells A2 to A5 contain four product codes: P101, P102, P103 and P104.
To locate P103, enter:
=MATCH("P103",A2:A5,0)
Excel returns 3 because P103 is the third item in the selected range.
Importantly, MATCH returns the position rather than the product code itself.
How the INDEX Function Returns a Value
INDEX retrieves information from a specified position in a range.
Its basic syntax is:
=INDEX(array,row_num)
Suppose cells C2 to C5 contain four product prices.
Enter:
=INDEX(C2:C5,3)
Excel returns the third value in that range.
When INDEX and MATCH are combined, MATCH identifies the correct position, and INDEX retrieves the corresponding value.
How to Use INDEX MATCH in Excel: Step-by-Step
Let’s use a simple product inventory example.
Step 1: Prepare Your Lookup Data
Enter the following information into cells A1 to C5:
| Product Code | Product | Price |
|---|---|---|
| P101 | Notebook | £4.50 |
| P102 | Desk Lamp | £18.00 |
| P103 | Keyboard | £25.00 |
| P104 | Mouse | £12.00 |
Column A contains product codes, column B contains product names, and column C contains prices.
Before creating a lookup formula, check that your product codes are consistent. Duplicate codes can cause MATCH to return the first matching record rather than the one you intended.
If your spreadsheet contains repeated records, you may need to remove duplicate entries before proceeding.
Step 2: Enter the INDEX MATCH Formula
Enter P103 in cell E2.
Next, select F2 and type:
=INDEX(C2:C5,MATCH(E2,A2:A5,0))
Press Enter.
Excel returns 25, which displays as £25.00 when the result cell uses currency formatting.
Here’s how the formula works:
MATCH(E2,A2:A5,0)searches for P103 in the product-code column.- MATCH returns 3, identifying its position within A2 to A5.
INDEX(C2:C5,3)retrieves the third price.- Excel displays the result in F2.
The advantage is that you can change the product code without rewriting the formula.
Step 3: Check the Result and Reuse the Formula
Replace P103 in E2 with P102.
The result changes to £18.00.
If you plan to copy the formula to other cells, use absolute references to prevent the lookup ranges from shifting:
=INDEX($C$2:$C$5,MATCH(E2,$A$2:$A$5,0))
The dollar signs keep the selected ranges fixed while allowing the lookup reference to change.
For frequently used spreadsheets, you can also create a drop-down list so users can select product codes instead of typing them manually.
Step 1 of 4
INDEX MATCH Formula Builder
Build a ready-to-paste INDEX MATCH formula for your own spreadsheet. What kind of lookup do you need?
Enter your cells
We’ve filled in the example from this guide. Replace it with your own cells.
Choose your options
These are optional. You can change them and rebuild at any time.
Lock ranges with $ signsKeeps ranges fixed when you copy the formula to other cells
Show a message instead of errorsWraps the formula in IFERROR
Your INDEX MATCH formula
Click the cell where you want the answer, paste the formula and press Enter.
How it works
Good to know
Want to get confident with Excel functions and data tools?
Explore the Excel course →Exact match (0) is used in every formula. Nothing you enter is saved.
Practical INDEX MATCH Examples
Once you understand the basic formula, you can apply INDEX MATCH to more complex spreadsheet tasks.
Example 1: Look Up Values to the Left
Suppose product names are stored in column A and product codes in column B, with data in rows 2 to 5.
If E2 contains P103, use:
=INDEX(A2:A5,MATCH(E2,B2:B5,0))
Excel searches column B for P103 and returns the corresponding product name from column A.
This is particularly useful when the information you want appears to the left of your lookup column.
Example 2: Perform a Two-Way Lookup
A two-way lookup retrieves information using both a row label and a column heading.
Imagine a sales worksheet containing the following information in cells A1 to D4:
| Department | Q1 | Q2 | Q3 |
|---|---|---|---|
| Sales | £12,000 | £15,000 | £18,000 |
| Marketing | £8,000 | £9,500 | £11,000 |
| Operations | £10,000 | £12,500 | £14,000 |
In this worksheet:
- A2 to A4 contains department names.
- B1 to D1 contains Q1, Q2 and Q3.
- B2 to D4 contains sales figures.
- F2 contains the department.
- G2 contains the quarter.
Use:
=INDEX(B2:D4,MATCH(F2,A2:A4,0),MATCH(G2,B1:D1,0))
The first MATCH identifies the department’s row. The second identifies the quarter’s column. INDEX returns the value where they intersect.
For example, enter Marketing in F2 and Q2 in G2. Excel returns £9,500 because the formula identifies the Marketing row and the Q2 column. This allows you to retrieve sales figures using two lookup values without manually searching the table.
You can then highlight spreadsheet results to make important figures easier to identify.
Example 3: Match Multiple Criteria
Sometimes a single lookup value isn’t enough.
For example, an employee register might contain repeated names across departments. You may need to match both the employee ID and department.
Assume:
- A2 to A10 contains employee IDs.
- B2 to B10 contains departments.
- C2 to C10 contains the values to return.
- E2 contains the required employee ID.
- F2 contains the required department.
In Excel versions supporting dynamic arrays, you can use:
=INDEX(C2:C10,MATCH(1,(A2:A10=E2)*(B2:B10=F2),0))
Each condition checks whether a row matches the selected value. Excel combines the results so that only rows meeting both conditions qualify. MATCH identifies the first qualifying position, and INDEX returns the corresponding value from column C.
In older Excel versions, this array-based approach may require Ctrl+Shift+Enter. For more complicated records, a helper column can provide a simpler alternative.
INDEX MATCH vs VLOOKUP vs XLOOKUP
All three approaches retrieve information, but their capabilities and syntax differ.
| Feature | INDEX MATCH | VLOOKUP | XLOOKUP |
|---|---|---|---|
| Look left or right | Yes | Not directly | Yes |
| Exact matching | Specify 0 in MATCH | Specify FALSE or 0 | Default |
| Formula structure | Two combined functions | Single function | Single function |
| Excel compatibility | Available in older Excel versions | Available in older Excel versions | Available in Microsoft 365 and supported newer versions; not Excel 2016 or 2019 perpetual editions |
| Best suited to | Flexible lookups | Simple table lookups | Modern Excel lookups |
INDEX MATCH offers flexibility when lookup and return columns appear in different positions.
VLOOKUP remains useful for straightforward tables, while XLOOKUP often provides simpler syntax and built-in handling for missing matches.
According to Microsoft’s lookup function guidance, INDEX and MATCH can be used together as an alternative to VLOOKUP.
XLOOKUP is not available in every older Excel version, including Excel 2016 and Excel 2019 as standalone perpetual releases.
Why Is INDEX MATCH Not Working? Common Errors and Fixes
Even a correctly structured formula can produce unexpected results when spreadsheet data is inconsistent.
| Problem | Possible cause | Recommended fix |
|---|---|---|
| #N/A | Lookup value not found | Check spelling, spaces and data types |
| #REF! | Invalid cell reference | Check for deleted rows, columns or references |
| Wrong result | Misaligned ranges | Ensure lookup and return ranges correspond |
| Formula changes when copied | Relative references shift | Use dollar signs to lock ranges |
| Unexpected first match | Duplicate lookup values | Check whether the lookup value is unique |
If your formula returns #N/A, first check whether the lookup value exists in the selected range. Then look for extra spaces, numbers stored as text and inconsistent product codes. If the formula returns an incorrect value without displaying an error, confirm that the lookup and return ranges begin and end on corresponding rows.
You can use IFERROR to display a clearer message:
=IFERROR(INDEX(C2:C5,MATCH(E2,A2:A5,0)),"Not found")
However, IFERROR only changes how errors appear. It does not fix incorrect data or formulas.
When reviewing larger worksheets, useful Excel shortcuts can make formula inspection and navigation more efficient.
Using INDEX MATCH for Workplace Data
INDEX MATCH is useful in many everyday office tasks, including:
- Inventory management: Retrieve product prices, descriptions or stock quantities.
- Finance administration: Match invoice references with recorded amounts.
- Employee records: Locate information using employee IDs.
- Sales reporting: Retrieve figures by department, product or reporting period.
For larger reporting tasks, you may also benefit from working with Power Pivot, which supports more advanced data modelling.
If you regularly work with spreadsheets and reports, Skill Up’s Data Analysis in Excel offers another route to developing your Excel knowledge.
Final Thoughts: Practise INDEX MATCH and Build Your Excel Skills
INDEX MATCH becomes easier once you remember its two roles: MATCH identifies the position, and INDEX returns the corresponding value.
Start with a simple product lookup, then practise two-way searches and more complex examples.
If you’re planning further training, consider Microsoft Excel Complete Course: Beginner to Advanced or Data Analytics. You can also review Excel certification options in the UK to distinguish training certificates from formal certification routes.
Ready to Build Confident Excel Skills?
Learn lookup formulas, functions and data tools at your own pace with Skill Up’s Microsoft Excel Complete Training.
- Functions, formulas and lookups
- PivotTables, Power Pivot and VBA
- About 40 hours of flexible online learning
Frequently Asked Questions
1. Is INDEX MATCH Faster Than VLOOKUP?
Not necessarily. Performance depends on the workbook, dataset size, formula design and Excel version. Neither approach is universally faster.
2. Does XLOOKUP Replace INDEX MATCH?
XLOOKUP handles many tasks that previously required INDEX MATCH, often with simpler formulas. However, INDEX MATCH remains useful for older workbook compatibility and flexible lookup arrangements.
3. Can INDEX MATCH Work Across Different Worksheets?
Yes. INDEX MATCH can retrieve information from another worksheet by including the worksheet name in the cell references. For example, you can enter a product code on one sheet and retrieve its price from a product list stored on Sheet2. The lookup and return ranges must refer to the correct data.
For example:
=INDEX(Sheet2!C2:C5,MATCH(A2,Sheet2!A2:A5,0))
All Courses
Personal Development
Employability
Career Bundle
Management
Free QLS Certificate
IT & Software
Business
Technology
Health & Care
Quality Licence Scheme Endorsed Courses
Health & Safety
Training
Marketing
Job Ready Programme
Design
Accounting & Finance
Health and Fitness
Healthcare and Medical
Animal Care
Psychology
Microsoft Office
Teach & Education
I.T
HR and Leadership
Counselling and Therapy
Teaching & Child Care
Health and Social Care
Electrical & Electronics
Law
Food Nutrition
programming
Administration & Office Skills
Education
Language
Engineering
Cooking & Baking
Law & Criminology
Accounting
QLS Bundle
Office Skills
Awareness
Photography
Finance
Lifestyle
Diet and Nutrition
Makeup & Beauty
Therapy
Sports
First Aid
Accounting & Bookkeeping
Mathematics
Excel
Web Design
Top Rated Course
Diet and Fitness
Counselling
Agriculture
Networking & Design
General Education
Biotechnology
Audit
Economics
Lifestyle & Recreational
Adobe Photoshop
Travel and Tourism
Categories
Awarded By



