---
title: "XLOOKUP with two criteria | PracticeExcel"
description: "Practice XLOOKUP with two criteria in a live spreadsheet: look up 1 in the product of two tests."
canonical_url: "https://practiceexcelonline.com/practice/xlookup/xlookup-multiple-criteria"
locale: en
meta:
  "og:description": "Practice XLOOKUP with two criteria in a live spreadsheet: look up 1 in the product of two tests."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_XLOOKUP%2Bwith%2Btwo%2Bcriteria%2Cdescription_~UHJhY3RpY2UgWExPT0tVUCB3aXRoIHR3byBjcml0ZXJpYSBpbiBhIGxpdmUgc3ByZWFkc2hlZXQ6IGxvb2sgdXAgMSBpbiB0aGUgcHJvZHVjdCBvZiB0d28gdGVzdHMu%2Ceyebrow_XLOOKUP%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJDIiwiRiJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJSZWdpb24iLCJQcm9kdWN0IiwiU2FsZXMiLCJOb3J0aCJdfSx7Im4iOjIsImNlbGxzIjpbIk5vcnRoIiwiU2hvZXMiLCI0MjAiLCJCYWdzIl19LHsibiI6MywiY2VsbHMiOlsiU291dGgiLCJCYWdzIiwiMzEwIiwiIl19LHsibiI6NCwiY2VsbHMiOlsiTm9ydGgiLCJCYWdzIiwiMTUwIiwiIl19LHsibiI6NSwiY2VsbHMiOlsiRWFzdCIsIlNob2VzIiwiMjgwIiwiIl19LHsibiI6NiwiY2VsbHMiOlsiU291dGgiLCJTaG9lcyIsIjUwMCIsIiJdfV0sInRhcmdldCI6WzIsM119fQ%2Cp_Ii9wcmFjdGljZS94bG9va3VwL3hsb29rdXAtbXVsdGlwbGUtY3JpdGVyaWEi%2Cs_DUVConGY1XzLWTeY.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "XLOOKUP with two criteria | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_XLOOKUP%2Bwith%2Btwo%2Bcriteria%2Cdescription_~UHJhY3RpY2UgWExPT0tVUCB3aXRoIHR3byBjcml0ZXJpYSBpbiBhIGxpdmUgc3ByZWFkc2hlZXQ6IGxvb2sgdXAgMSBpbiB0aGUgcHJvZHVjdCBvZiB0d28gdGVzdHMu%2Ceyebrow_XLOOKUP%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJDIiwiRiJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJSZWdpb24iLCJQcm9kdWN0IiwiU2FsZXMiLCJOb3J0aCJdfSx7Im4iOjIsImNlbGxzIjpbIk5vcnRoIiwiU2hvZXMiLCI0MjAiLCJCYWdzIl19LHsibiI6MywiY2VsbHMiOlsiU291dGgiLCJCYWdzIiwiMzEwIiwiIl19LHsibiI6NCwiY2VsbHMiOlsiTm9ydGgiLCJCYWdzIiwiMTUwIiwiIl19LHsibiI6NSwiY2VsbHMiOlsiRWFzdCIsIlNob2VzIiwiMjgwIiwiIl19LHsibiI6NiwiY2VsbHMiOlsiU291dGgiLCJTaG9lcyIsIjUwMCIsIiJdfV0sInRhcmdldCI6WzIsM119fQ%2Cp_Ii9wcmFjdGljZS94bG9va3VwL3hsb29rdXAtbXVsdGlwbGUtY3JpdGVyaWEi%2Cs_DUVConGY1XzLWTeY.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****FILTER**

It comes up in this mock test: [**Excel assessment (Indeed format)**](https://practiceexcelonline.com/tests/indeed-excel-assessment)

[**See plans, from $5/month**](https://practiceexcelonline.com/pricing) [**Already premium? Sign in**](https://practiceexcelonline.com/login?next=/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://practiceexcelonline.com/practice/xlookup/xlookup-multiple-criteria#webpage","description":"Practice XLOOKUP with two criteria in a live spreadsheet: look up 1 in the product of two tests.","name":"XLOOKUP with two criteria","url":"https://practiceexcelonline.com/practice/xlookup/xlookup-multiple-criteria","@type":["WebPage","FAQPage"],"breadcrumb":{"@id":"https://practiceexcelonline.com/practice/xlookup/xlookup-multiple-criteria#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"mainEntity":[{"@id":"https://practiceexcelonline.com/practice/xlookup/xlookup-multiple-criteria#/schema/question/1"}],"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/practice/xlookup/xlookup-multiple-criteria"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/practice/xlookup/xlookup-multiple-criteria#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":"XLOOKUP","item":"https://practiceexcelonline.com/practice/xlookup","position":3},{"@type":"ListItem","name":"XLOOKUP with two criteria","position":4}]},{"@id":"https://practiceexcelonline.com/practice/xlookup/xlookup-multiple-criteria#/schema/question/1","@type":"Question","inLanguage":"en-US","name":"How do I use XLOOKUP with multiple criteria?","acceptedAnswer":{"@type":"Answer","text":"Look up 1 in the product of the tests, =XLOOKUP(1,(A2:A6=F1)*(B2:B6=F2),C2:C6). Add another *(range=value) for each extra criterion."}},{"@id":"https://practiceexcelonline.com/practice/xlookup/xlookup-multiple-criteria#/schema/learning-resource/1","@type":"LearningResource","description":"Practice XLOOKUP with two criteria in a live spreadsheet: look up 1 in the product of two tests.","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.
