---
title: "A two-way lookup with INDEX and two MATCHes | PracticeExcel"
description: "Practice a two-way lookup in a live spreadsheet: INDEX with one MATCH for the row and one for the column."
canonical_url: "https://practiceexcelonline.com/practice/index-match/index-match-match-two-way"
locale: en
meta:
  "og:description": "Practice a two-way lookup in a live spreadsheet: INDEX with one MATCH for the row and one for the column."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_A%2Btwo-way%2Blookup%2Bwith%2BINDEX%2Band%2Btwo%2BMATCHes%2Cdescription_~UHJhY3RpY2UgYSB0d28td2F5IGxvb2t1cCBpbiBhIGxpdmUgc3ByZWFkc2hlZXQ6IElOREVYIHdpdGggb25lIE1BVENIIGZvciB0aGUgcm93IGFuZCBvbmUgZm9yIHRoZSBjb2x1bW4u%2Ceyebrow_INDEX%2Band%2BMATCH%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJDIiwiSCJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJQcm9kdWN0IiwiTm9ydGgiLCJTb3V0aCIsIkJhZ3MiXX0seyJuIjoyLCJjZWxscyI6WyJTaG9lcyIsIjQyMCIsIjM4MCIsIkVhc3QiXX0seyJuIjozLCJjZWxscyI6WyJTaGlydHMiLCIzMTAiLCIyNjAiLCIiXX0seyJuIjo0LCJjZWxscyI6WyJCYWdzIiwiMTUwIiwiMjEwIiwiIl19LHsibiI6NSwiY2VsbHMiOlsiSGF0cyIsIjkwIiwiMTIwIiwiIl19XSwidGFyZ2V0IjpbMiwzXX19%2Cp_Ii9wcmFjdGljZS9pbmRleC1tYXRjaC9pbmRleC1tYXRjaC1tYXRjaC10d28td2F5Ig%2Cs_qxiCs9i_AAmvwO9I.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "A two-way lookup with INDEX and two MATCHes | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_A%2Btwo-way%2Blookup%2Bwith%2BINDEX%2Band%2Btwo%2BMATCHes%2Cdescription_~UHJhY3RpY2UgYSB0d28td2F5IGxvb2t1cCBpbiBhIGxpdmUgc3ByZWFkc2hlZXQ6IElOREVYIHdpdGggb25lIE1BVENIIGZvciB0aGUgcm93IGFuZCBvbmUgZm9yIHRoZSBjb2x1bW4u%2Ceyebrow_INDEX%2Band%2BMATCH%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJDIiwiSCJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJQcm9kdWN0IiwiTm9ydGgiLCJTb3V0aCIsIkJhZ3MiXX0seyJuIjoyLCJjZWxscyI6WyJTaG9lcyIsIjQyMCIsIjM4MCIsIkVhc3QiXX0seyJuIjozLCJjZWxscyI6WyJTaGlydHMiLCIzMTAiLCIyNjAiLCIiXX0seyJuIjo0LCJjZWxscyI6WyJCYWdzIiwiMTUwIiwiMjEwIiwiIl19LHsibiI6NSwiY2VsbHMiOlsiSGF0cyIsIjkwIiwiMTIwIiwiIl19XSwidGFyZ2V0IjpbMiwzXX19%2Cp_Ii9wcmFjdGljZS9pbmRleC1tYXRjaC9pbmRleC1tYXRjaC1tYXRjaC10d28td2F5Ig%2Cs_qxiCs9i_AAmvwO9I.png"
---

> Index of every page on this site: [llms.txt](https://practiceexcelonline.com/llms.txt)

# **A two-way lookup with INDEX and two MATCHes**

**Premium**

In H3, find the sales for the product in H1 and the region in H2. INDEX the numbers B2:E5 with one MATCH for the row and one for the column: INDEX(B2:E5,MATCH(H1,A2:A5,0),MATCH(H2,B1:E1,0)).

H3fx

|  | A | B | C | D | E | F | G | H | I |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | Product | North | South | East | West |  | Product | Bags | |
| 2 | Shoes | 420 | 380 | 290 | 510 |  | Region | East | |
| 3 | Shirts | 310 | 260 | 340 | 220 |  | Sales |  | |
| 4 | Bags | 150 | 210 | 180 | 270 |  |  |  | |
| 5 | Hats | 90 | 120 | 60 | 140 |  |  |  | |
| 6 |  |  |  |  |  |  |  |  | |
| 7 |  |  |  |  |  |  |  |  | |
| 8 |  |  |  |  |  |  |  |  | |

**Premium lesson**

## **Unlock INDEX and MATCH and every other lesson**

This is a premium lesson. Premium lets you solve it and every other lesson, take the timed mock tests, and earn certificates you can share on LinkedIn.

Next with premium:**XLOOKUP****IFERROR**

It comes up in this mock test: [**Excel test for job interviews**](https://practiceexcelonline.com/tests/excel-test-for-job-interview)

[**See plans, from $5/month**](https://practiceexcelonline.com/pricing) [**Already premium? Sign in**](https://practiceexcelonline.com/login?next=/practice/index-match/index-match-match-two-way)

Need help?

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://practiceexcelonline.com/#identity","@type":"Organization","name":"PracticeExcel","url":"https://practiceexcelonline.com/","logo":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/#website","@type":"WebSite","inLanguage":"en-US","name":"PracticeExcel","url":"https://practiceexcelonline.com/","alternateName":["Practice Excel Online","PracticeExcelOnline.com"],"publisher":{"@id":"https://practiceexcelonline.com/#identity"},"workTranslation":{"@id":"https://excelopgaver.dk/#website"}},{"@id":"https://practiceexcelonline.com/practice/index-match/index-match-match-two-way#webpage","description":"Practice a two-way lookup in a live spreadsheet: INDEX with one MATCH for the row and one for the column.","name":"A two-way lookup with INDEX and two MATCHes","url":"https://practiceexcelonline.com/practice/index-match/index-match-match-two-way","@type":["WebPage","FAQPage"],"breadcrumb":{"@id":"https://practiceexcelonline.com/practice/index-match/index-match-match-two-way#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"mainEntity":[{"@id":"https://practiceexcelonline.com/practice/index-match/index-match-match-two-way#/schema/question/1"},{"@id":"https://practiceexcelonline.com/practice/index-match/index-match-match-two-way#/schema/question/2"}],"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/practice/index-match/index-match-match-two-way"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/practice/index-match/index-match-match-two-way#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://practiceexcelonline.com","position":1},{"@type":"ListItem","name":"Excel practice exercises","item":"https://practiceexcelonline.com/practice","position":2},{"@type":"ListItem","name":"INDEX and MATCH","item":"https://practiceexcelonline.com/practice/index-match","position":3},{"@type":"ListItem","name":"A two-way lookup with INDEX and two MATCHes","position":4}]},{"@id":"https://practiceexcelonline.com/practice/index-match/index-match-match-two-way#/schema/question/1","@type":"Question","inLanguage":"en-US","name":"How do I look up a value by row and column in Excel?","acceptedAnswer":{"@type":"Answer","text":"=INDEX(B2:E5,MATCH(H1,A2:A5,0),MATCH(H2,B1:E1,0)). The first MATCH finds the row, the second the column."}},{"@id":"https://practiceexcelonline.com/practice/index-match/index-match-match-two-way#/schema/question/2","@type":"Question","inLanguage":"en-US","name":"Can XLOOKUP do a two-way lookup?","acceptedAnswer":{"@type":"Answer","text":"Yes, by nesting one XLOOKUP in another, =XLOOKUP(H1,A2:A5,XLOOKUP(H2,B1:E1,B2:E5))."}},{"@id":"https://practiceexcelonline.com/practice/index-match/index-match-match-two-way#/schema/learning-resource/1","@type":"LearningResource","description":"Practice a two-way lookup in a live spreadsheet: INDEX with one MATCH for the row and one for the column.","educationalLevel":"intermediate","isAccessibleForFree":false,"learningResourceType":"exercise","name":"A two-way lookup with INDEX and two MATCHes","teaches":"INDEX and MATCH"},{"@id":"https://practiceexcelonline.com/#logo","@type":"ImageObject","caption":"PracticeExcel","contentUrl":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png"}]}
```

## Sitemap

See the full [sitemap](https://practiceexcelonline.com/sitemap.md) for all pages.
