---
title: "XLOOKUP with two criteria in Google Sheets | PracticeExcel"
description: "In F3, return the sales for the region in F1 and the product in F2. Look up 1 in the product of the two tests: XLOOKUP(1,(A2:A6=F1)*(B2:B6=F2),C2:C6)."
canonical_url: "https://practiceexcelonline.com/sheets/practice/xlookup/xlookup-multiple-criteria"
meta:
  "og:description": "In F3, return the sales for the region in F1 and the product in F2. Look up 1 in the product of the two tests: XLOOKUP(1,(A2:A6=F1)*(B2:B6=F2),C2:C6)."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_XLOOKUP%2Bwith%2Btwo%2Bcriteria%2Bin%2BGoogle%2BSheets%2Cdescription_~SW4gRjMsIHJldHVybiB0aGUgc2FsZXMgZm9yIHRoZSByZWdpb24gaW4gRjEgYW5kIHRoZSBwcm9kdWN0IGluIEYyLiBMb29rIHVwIDEgaW4gdGhlIHByb2R1Y3Qgb2YgdGhlIHR3byB0ZXN0czogWExPT0tVUCgxLChBMjpBNj1GMSkqKEIyOkI2PUYyKSxDMjpDNiku%2Ceyebrow_XLOOKUP%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJDIiwiRiJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJSZWdpb24iLCJQcm9kdWN0IiwiU2FsZXMiLCJOb3J0aCJdfSx7Im4iOjIsImNlbGxzIjpbIk5vcnRoIiwiU2hvZXMiLCI0MjAiLCJCYWdzIl19LHsibiI6MywiY2VsbHMiOlsiU291dGgiLCJCYWdzIiwiMzEwIiwiIl19LHsibiI6NCwiY2VsbHMiOlsiTm9ydGgiLCJCYWdzIiwiMTUwIiwiIl19LHsibiI6NSwiY2VsbHMiOlsiRWFzdCIsIlNob2VzIiwiMjgwIiwiIl19LHsibiI6NiwiY2VsbHMiOlsiU291dGgiLCJTaG9lcyIsIjUwMCIsIiJdfV0sInRhcmdldCI6WzIsM119fQ%2Cp_Ii9zaGVldHMvcHJhY3RpY2UveGxvb2t1cC94bG9va3VwLW11bHRpcGxlLWNyaXRlcmlhIg%2Cs_FtVnLhKedpmqOgzn.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "XLOOKUP with two criteria in Google Sheets | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_XLOOKUP%2Bwith%2Btwo%2Bcriteria%2Bin%2BGoogle%2BSheets%2Cdescription_~SW4gRjMsIHJldHVybiB0aGUgc2FsZXMgZm9yIHRoZSByZWdpb24gaW4gRjEgYW5kIHRoZSBwcm9kdWN0IGluIEYyLiBMb29rIHVwIDEgaW4gdGhlIHByb2R1Y3Qgb2YgdGhlIHR3byB0ZXN0czogWExPT0tVUCgxLChBMjpBNj1GMSkqKEIyOkI2PUYyKSxDMjpDNiku%2Ceyebrow_XLOOKUP%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJDIiwiRiJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJSZWdpb24iLCJQcm9kdWN0IiwiU2FsZXMiLCJOb3J0aCJdfSx7Im4iOjIsImNlbGxzIjpbIk5vcnRoIiwiU2hvZXMiLCI0MjAiLCJCYWdzIl19LHsibiI6MywiY2VsbHMiOlsiU291dGgiLCJCYWdzIiwiMzEwIiwiIl19LHsibiI6NCwiY2VsbHMiOlsiTm9ydGgiLCJCYWdzIiwiMTUwIiwiIl19LHsibiI6NSwiY2VsbHMiOlsiRWFzdCIsIlNob2VzIiwiMjgwIiwiIl19LHsibiI6NiwiY2VsbHMiOlsiU291dGgiLCJTaG9lcyIsIjUwMCIsIiJdfV0sInRhcmdldCI6WzIsM119fQ%2Cp_Ii9zaGVldHMvcHJhY3RpY2UveGxvb2t1cC94bG9va3VwLW11bHRpcGxlLWNyaXRlcmlhIg%2Cs_FtVnLhKedpmqOgzn.png"
---

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

# **XLOOKUP with two criteria**

**Premium**

In F3, return the sales for the region in F1 and the product in F2. Look up 1 in the product of the two tests: XLOOKUP(1,(A2:A6=F1)\*(B2:B6=F2),C2:C6).

F3fx

|  | A | B | C | D | E | F | G |
| --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | Region | Product | Sales |  | Region | North | |
| 2 | North | Shoes | 420 |  | Product | Bags | |
| 3 | South | Bags | 310 |  | Sales |  | |
| 4 | North | Bags | 150 |  |  |  | |
| 5 | East | Shoes | 280 |  |  |  | |
| 6 | South | Shoes | 500 |  |  |  | |
| 7 |  |  |  |  |  |  | |
| 8 |  |  |  |  |  |  | |

**Premium lesson**

## **Unlock XLOOKUP 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:**IFERROR**

**Your first month for $9.50 **~~$19~~

50% off your first month when you join today.

[**Get your first month for $9.50**](https://practiceexcelonline.com/signup?next=/pricing?plan=monthly%26go=1%26offer=FIRSTMONTH)

Then $19/month. Cancel any time, and get a full refund within 14 days if it isn't for you.

[**See all plans, from $5/month**](https://practiceexcelonline.com/pricing)

[**Already premium? Sign in**](https://practiceexcelonline.com/login?next=/sheets/practice/xlookup/xlookup-multiple-criteria)

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://excelpraxis.de/#website"}]},{"@id":"https://practiceexcelonline.com/sheets/practice/xlookup/xlookup-multiple-criteria#webpage","@type":"WebPage","description":"In F3, return the sales for the region in F1 and the product in F2. Look up 1 in the product of the two tests: XLOOKUP(1,(A2:A6=F1)*(B2:B6=F2),C2:C6).","name":"XLOOKUP with two criteria in Google Sheets","url":"https://practiceexcelonline.com/sheets/practice/xlookup/xlookup-multiple-criteria","breadcrumb":{"@id":"https://practiceexcelonline.com/sheets/practice/xlookup/xlookup-multiple-criteria#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/sheets/practice/xlookup/xlookup-multiple-criteria"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/sheets/practice/xlookup/xlookup-multiple-criteria#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":"XLOOKUP","item":"https://practiceexcelonline.com/sheets/practice/xlookup","position":3},{"@type":"ListItem","name":"XLOOKUP with two criteria in Google Sheets","position":4}]},{"@id":"https://practiceexcelonline.com/sheets/practice/xlookup/xlookup-multiple-criteria#/schema/learning-resource/1","@type":"LearningResource","description":"In F3, return the sales for the region in F1 and the product in F2. Look up 1 in the product of the two tests: XLOOKUP(1,(A2:A6=F1)*(B2:B6=F2),C2:C6).","educationalLevel":"intermediate","isAccessibleForFree":false,"learningResourceType":"exercise","name":"XLOOKUP with two criteria","teaches":"XLOOKUP"},{"@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.
