---
title: "A two-way lookup with INDEX and two MATCHes in Google Sheets | PracticeExcel"
description: "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))."
canonical_url: "https://practiceexcelonline.com/sheets/practice/index-match/index-match-match-two-way"
locale: en
meta:
  "og:description": "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))."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_A%2Btwo-way%2Blookup%2Bwith%2BINDEX%2Band%2Btwo%2BMATCHes%2Bin%2BGoogle%2BSheets%2Cdescription_~SW4gSDMsIGZpbmQgdGhlIHNhbGVzIGZvciB0aGUgcHJvZHVjdCBpbiBIMSBhbmQgdGhlIHJlZ2lvbiBpbiBIMi4gSU5ERVggdGhlIG51bWJlcnMgQjI6RTUgd2l0aCBvbmUgTUFUQ0ggZm9yIHRoZSByb3cgYW5kIG9uZSBmb3IgdGhlIGNvbHVtbjogSU5ERVgoQjI6RTUsTUFUQ0goSDEsQTI6QTUsMCksTUFUQ0goSDIsQjE6RTEsMCkpLg%2Ceyebrow_INDEX%2Band%2BMATCH%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJDIiwiSCJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJQcm9kdWN0IiwiTm9ydGgiLCJTb3V0aCIsIkJhZ3MiXX0seyJuIjoyLCJjZWxscyI6WyJTaG9lcyIsIjQyMCIsIjM4MCIsIkVhc3QiXX0seyJuIjozLCJjZWxscyI6WyJTaGlydHMiLCIzMTAiLCIyNjAiLCIiXX0seyJuIjo0LCJjZWxscyI6WyJCYWdzIiwiMTUwIiwiMjEwIiwiIl19LHsibiI6NSwiY2VsbHMiOlsiSGF0cyIsIjkwIiwiMTIwIiwiIl19XSwidGFyZ2V0IjpbMiwzXX19%2Cp_Ii9zaGVldHMvcHJhY3RpY2UvaW5kZXgtbWF0Y2gvaW5kZXgtbWF0Y2gtbWF0Y2gtdHdvLXdheSI%2Cs_cEkpA92B8S3-Slv2.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 in Google Sheets | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_A%2Btwo-way%2Blookup%2Bwith%2BINDEX%2Band%2Btwo%2BMATCHes%2Bin%2BGoogle%2BSheets%2Cdescription_~SW4gSDMsIGZpbmQgdGhlIHNhbGVzIGZvciB0aGUgcHJvZHVjdCBpbiBIMSBhbmQgdGhlIHJlZ2lvbiBpbiBIMi4gSU5ERVggdGhlIG51bWJlcnMgQjI6RTUgd2l0aCBvbmUgTUFUQ0ggZm9yIHRoZSByb3cgYW5kIG9uZSBmb3IgdGhlIGNvbHVtbjogSU5ERVgoQjI6RTUsTUFUQ0goSDEsQTI6QTUsMCksTUFUQ0goSDIsQjE6RTEsMCkpLg%2Ceyebrow_INDEX%2Band%2BMATCH%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJDIiwiSCJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJQcm9kdWN0IiwiTm9ydGgiLCJTb3V0aCIsIkJhZ3MiXX0seyJuIjoyLCJjZWxscyI6WyJTaG9lcyIsIjQyMCIsIjM4MCIsIkVhc3QiXX0seyJuIjozLCJjZWxscyI6WyJTaGlydHMiLCIzMTAiLCIyNjAiLCIiXX0seyJuIjo0LCJjZWxscyI6WyJCYWdzIiwiMTUwIiwiMjEwIiwiIl19LHsibiI6NSwiY2VsbHMiOlsiSGF0cyIsIjkwIiwiMTIwIiwiIl19XSwidGFyZ2V0IjpbMiwzXX19%2Cp_Ii9zaGVldHMvcHJhY3RpY2UvaW5kZXgtbWF0Y2gvaW5kZXgtbWF0Y2gtbWF0Y2gtdHdvLXdheSI%2Cs_cEkpA92B8S3-Slv2.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**

[**See plans, from $5/month**](https://practiceexcelonline.com/pricing) [**Already premium? Sign in**](https://practiceexcelonline.com/login?next=/sheets/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/sheets/practice/index-match/index-match-match-two-way#webpage","@type":"WebPage","description":"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)).","name":"A two-way lookup with INDEX and two MATCHes in Google Sheets","url":"https://practiceexcelonline.com/sheets/practice/index-match/index-match-match-two-way","breadcrumb":{"@id":"https://practiceexcelonline.com/sheets/practice/index-match/index-match-match-two-way#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/sheets/practice/index-match/index-match-match-two-way"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/sheets/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":"Google Sheets practice exercises","item":"https://practiceexcelonline.com/sheets","position":2},{"@type":"ListItem","name":"INDEX and MATCH","item":"https://practiceexcelonline.com/sheets/practice/index-match","position":3},{"@type":"ListItem","name":"A two-way lookup with INDEX and two MATCHes in Google Sheets","position":4}]},{"@id":"https://practiceexcelonline.com/sheets/practice/index-match/index-match-match-two-way#/schema/learning-resource/1","@type":"LearningResource","description":"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)).","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.
