---
title: "Find the latest match with XLOOKUP in Google Sheets | PracticeExcel"
description: "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)."
canonical_url: "https://practiceexcelonline.com/sheets/practice/xlookup/xlookup-last-match"
locale: en
meta:
  "og:description": "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)."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_Find%2Bthe%2Blatest%2Bmatch%2Bwith%2BXLOOKUP%2Bin%2BGoogle%2BSheets%2Cdescription_~VGhlIHByaWNlIGxpc3QgZ3Jvd3MgYXQgdGhlIGJvdHRvbSBlYWNoIHRpbWUgYSBwcmljZSBjaGFuZ2VzLiBJbiBGMiwgZmluZCB0aGUgY3VycmVudCBwcmljZSBvZiB0aGUgcHJvZHVjdCBpbiBGMSwgdGhlIGxhc3QgbWF0Y2ggaW4gdGhlIGxpc3QuIFNlYXJjaCBmcm9tIHRoZSBib3R0b20gd2l0aCBzZWFyY2hfbW9kZSAtMSwgdGhlIHNpeHRoIGFyZ3VtZW50OiBYTE9PS1VQKEYxLEIyOkI4LEMyOkM4LCwwLC0xKS4%2Ceyebrow_XLOOKUP%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJDIiwiRiJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJFZmZlY3RpdmUgZnJvbSIsIlByb2R1Y3QiLCJQcmljZSIsIkNvZmZlZSJdfSx7Im4iOjIsImNlbGxzIjpbIkphbiAxLCAyMDI0IiwiQ29mZmVlIiwiODkiLCIiXX0seyJuIjozLCJjZWxscyI6WyJKYW4gMSwgMjAyNCIsIlRlYSIsIjQ1IiwiIl19LHsibiI6NCwiY2VsbHMiOlsiTWFyIDEsIDIwMjQiLCJDb2ZmZWUiLCI5NSIsIiJdfSx7Im4iOjUsImNlbGxzIjpbIkFwciAxLCAyMDI0IiwiQ29jb2EiLCI2MCIsIiJdfSx7Im4iOjYsImNlbGxzIjpbIk1heSAxLCAyMDI0IiwiVGVhIiwiNDkiLCIiXX1dLCJ0YXJnZXQiOlsxLDNdfX0%2Cp_Ii9zaGVldHMvcHJhY3RpY2UveGxvb2t1cC94bG9va3VwLWxhc3QtbWF0Y2gi%2Cs_wKdoTW9t2JR8B7Do.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Find the latest match with XLOOKUP in Google Sheets | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_Find%2Bthe%2Blatest%2Bmatch%2Bwith%2BXLOOKUP%2Bin%2BGoogle%2BSheets%2Cdescription_~VGhlIHByaWNlIGxpc3QgZ3Jvd3MgYXQgdGhlIGJvdHRvbSBlYWNoIHRpbWUgYSBwcmljZSBjaGFuZ2VzLiBJbiBGMiwgZmluZCB0aGUgY3VycmVudCBwcmljZSBvZiB0aGUgcHJvZHVjdCBpbiBGMSwgdGhlIGxhc3QgbWF0Y2ggaW4gdGhlIGxpc3QuIFNlYXJjaCBmcm9tIHRoZSBib3R0b20gd2l0aCBzZWFyY2hfbW9kZSAtMSwgdGhlIHNpeHRoIGFyZ3VtZW50OiBYTE9PS1VQKEYxLEIyOkI4LEMyOkM4LCwwLC0xKS4%2Ceyebrow_XLOOKUP%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJDIiwiRiJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJFZmZlY3RpdmUgZnJvbSIsIlByb2R1Y3QiLCJQcmljZSIsIkNvZmZlZSJdfSx7Im4iOjIsImNlbGxzIjpbIkphbiAxLCAyMDI0IiwiQ29mZmVlIiwiODkiLCIiXX0seyJuIjozLCJjZWxscyI6WyJKYW4gMSwgMjAyNCIsIlRlYSIsIjQ1IiwiIl19LHsibiI6NCwiY2VsbHMiOlsiTWFyIDEsIDIwMjQiLCJDb2ZmZWUiLCI5NSIsIiJdfSx7Im4iOjUsImNlbGxzIjpbIkFwciAxLCAyMDI0IiwiQ29jb2EiLCI2MCIsIiJdfSx7Im4iOjYsImNlbGxzIjpbIk1heSAxLCAyMDI0IiwiVGVhIiwiNDkiLCIiXX1dLCJ0YXJnZXQiOlsxLDNdfX0%2Cp_Ii9zaGVldHMvcHJhY3RpY2UveGxvb2t1cC94bG9va3VwLWxhc3QtbWF0Y2gi%2Cs_wKdoTW9t2JR8B7Do.png"
---

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

# **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).

F2fx

|  | A | B | C | D | E | F | G |
| --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | Effective from | Product | Price |  | Product | Coffee | |
| 2 | Jan 1, 2024 | Coffee | 89 |  | Current price |  | |
| 3 | Jan 1, 2024 | Tea | 45 |  |  |  | |
| 4 | Mar 1, 2024 | Coffee | 95 |  |  |  | |
| 5 | Apr 1, 2024 | Cocoa | 60 |  |  |  | |
| 6 | May 1, 2024 | Tea | 49 |  |  |  | |
| 7 | Jul 1, 2024 | Coffee | 99 |  |  |  | |
| 8 | Sep 1, 2024 | Tea | 52 |  |  |  | |
| 9 |  |  |  |  |  |  | |

**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**

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

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/xlookup/xlookup-last-match#webpage","@type":"WebPage","description":"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).","name":"Find the latest match with XLOOKUP in Google Sheets","url":"https://practiceexcelonline.com/sheets/practice/xlookup/xlookup-last-match","breadcrumb":{"@id":"https://practiceexcelonline.com/sheets/practice/xlookup/xlookup-last-match#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/sheets/practice/xlookup/xlookup-last-match"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/sheets/practice/xlookup/xlookup-last-match#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":"Find the latest match with XLOOKUP in Google Sheets","position":4}]},{"@id":"https://practiceexcelonline.com/sheets/practice/xlookup/xlookup-last-match#/schema/learning-resource/1","@type":"LearningResource","description":"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).","educationalLevel":"intermediate","isAccessibleForFree":false,"learningResourceType":"exercise","name":"Find the latest match with XLOOKUP","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.
