---
title: "XLOOKUP in Google Sheets: practice exercises | PracticeExcel"
description: "Practice XLOOKUP in Google Sheets: look up in any direction with a value for missing matches, in exercises that are checked as you type."
canonical_url: "https://practiceexcelonline.com/sheets/practice/xlookup"
locale: en
meta:
  "og:description": "Practice XLOOKUP in Google Sheets: look up in any direction with a value for missing matches, in exercises that are checked as you type."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~WExPT0tVUCBpbiBHb29nbGUgU2hlZXRzOiBwcmFjdGljZSBleGVyY2lzZXM%2Cdescription_~UHJhY3RpY2UgWExPT0tVUCBpbiBHb29nbGUgU2hlZXRzOiBsb29rIHVwIGluIGFueSBkaXJlY3Rpb24gd2l0aCBhIHZhbHVlIGZvciBtaXNzaW5nIG1hdGNoZXMsIGluIGV4ZXJjaXNlcyB0aGF0IGFyZSBjaGVja2VkIGFzIHlvdSB0eXBlLg%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJDIiwiRiJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJTS1UiLCJQcm9kdWN0IiwiUHJpY2UiLCJQcmljZSJdfSx7Im4iOjIsImNlbGxzIjpbIlAtMTAwIiwiRGVzayIsIjE0OTkiLCIiXX0seyJuIjozLCJjZWxscyI6WyJQLTEwMSIsIkNoYWlyIiwiODk5IiwiIl19LHsibiI6NCwiY2VsbHMiOlsiUC0xMDIiLCJMYW1wIiwiMjQ5IiwiIl19LHsibiI6NSwiY2VsbHMiOlsiUC0xMDMiLCJTaGVsZiIsIjY0OSIsIiJdfSx7Im4iOjYsImNlbGxzIjpbIlAtMTA0IiwiTW9uaXRvciIsIjE3OTkiLCIiXX1dLCJ0YXJnZXQiOlsxLDNdfX0%2Cp_Ii9zaGVldHMvcHJhY3RpY2UveGxvb2t1cCI%2Cs_qpyiKkA7LAu5sJg5.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "XLOOKUP in Google Sheets: practice exercises | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~WExPT0tVUCBpbiBHb29nbGUgU2hlZXRzOiBwcmFjdGljZSBleGVyY2lzZXM%2Cdescription_~UHJhY3RpY2UgWExPT0tVUCBpbiBHb29nbGUgU2hlZXRzOiBsb29rIHVwIGluIGFueSBkaXJlY3Rpb24gd2l0aCBhIHZhbHVlIGZvciBtaXNzaW5nIG1hdGNoZXMsIGluIGV4ZXJjaXNlcyB0aGF0IGFyZSBjaGVja2VkIGFzIHlvdSB0eXBlLg%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJDIiwiRiJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJTS1UiLCJQcm9kdWN0IiwiUHJpY2UiLCJQcmljZSJdfSx7Im4iOjIsImNlbGxzIjpbIlAtMTAwIiwiRGVzayIsIjE0OTkiLCIiXX0seyJuIjozLCJjZWxscyI6WyJQLTEwMSIsIkNoYWlyIiwiODk5IiwiIl19LHsibiI6NCwiY2VsbHMiOlsiUC0xMDIiLCJMYW1wIiwiMjQ5IiwiIl19LHsibiI6NSwiY2VsbHMiOlsiUC0xMDMiLCJTaGVsZiIsIjY0OSIsIiJdfSx7Im4iOjYsImNlbGxzIjpbIlAtMTA0IiwiTW9uaXRvciIsIjE3OTkiLCIiXX1dLCJ0YXJnZXQiOlsxLDNdfX0%2Cp_Ii9zaGVldHMvcHJhY3RpY2UveGxvb2t1cCI%2Cs_qpyiKkA7LAu5sJg5.png"
---

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

# **XLOOKUP practice in Google Sheets**

XLOOKUP came to Google Sheets in 2022 with the same arguments as in Excel: the value, the range to search, the range to return from, and an optional value for when nothing is found. It looks left as easily as right.

[**Start the first exercise**](https://practiceexcelonline.com/sheets/practice/xlookup/xlookup)

XLOOKUP(

1. [**1****Look up a price with XLOOKUP**In F2, use XLOOKUP to return the Price for the SKU in E2: look for E2 in A2:A6 and return from C2:C6.](https://practiceexcelonline.com/sheets/practice/xlookup/xlookup)
2. [**2****XLOOKUP with a not-found value****Premium**P-109 is not in the list. In F2, use XLOOKUP to return the price for E2, and use its fourth argument to show "Not found" instead of #N/A.](https://practiceexcelonline.com/sheets/practice/xlookup/xlookup-if-not-found)
3. [**3****Find the latest match with XLOOKUP****Premium**The price list grows at the bottom each time a price changes. In F2, find the current price of the product in F1, the last match in the list. Search from the bottom with search\_mode -1, the sixth argument: XLOOKUP(F1,B2:B8,C2:C8,,0,-1).](https://practiceexcelonline.com/sheets/practice/xlookup/xlookup-last-match)
4. [**4****The smallest box that fits with XLOOKUP****Premium**In C2, pick the smallest box that holds the volume in B2. If there is no exact match, XLOOKUP should take the next larger size: match\_mode 1, the fifth argument, XLOOKUP(B2,$E$2:$E$5,$F$2:$F$5,,1).](https://practiceexcelonline.com/sheets/practice/xlookup/xlookup-next-larger)

## **Functions in this topic**

- [**XLOOKUP**](https://practiceexcelonline.com/sheets/functions/xlookup)

## **Questions**

<details>

<summary>

### Does Google Sheets have XLOOKUP?

</summary>

Yes. Google Sheets added XLOOKUP in 2022, with the same arguments in the same order as Excel, so a formula you write in one works in the other.

</details>

```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/xlookup#webpage","description":"Practice XLOOKUP in Google Sheets: look up in any direction with a value for missing matches, in exercises that are checked as you type.","name":"XLOOKUP in Google Sheets: practice exercises","url":"https://practiceexcelonline.com/sheets/practice/xlookup","@type":["WebPage","CollectionPage","FAQPage"],"breadcrumb":{"@id":"https://practiceexcelonline.com/sheets/practice/xlookup#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"mainEntity":[{"@id":"https://practiceexcelonline.com/sheets/practice/xlookup#/schema/question/1"}],"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/sheets/practice/xlookup"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/sheets/practice/xlookup#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 in Google Sheets: practice exercises","position":3}]},{"@id":"https://practiceexcelonline.com/sheets/practice/xlookup#/schema/question/1","@type":"Question","inLanguage":"en-US","name":"Does Google Sheets have XLOOKUP?","acceptedAnswer":{"@type":"Answer","text":"Yes. Google Sheets added XLOOKUP in 2022, with the same arguments in the same order as Excel, so a formula you write in one works in the other."}},{"@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.
