---
title: "The smallest box that fits with XLOOKUP | PracticeExcel"
description: "Practice XLOOKUP's match mode in a live spreadsheet: pick the smallest box that fits with the next larger match."
canonical_url: "https://practiceexcelonline.com/practice/xlookup/xlookup-next-larger"
locale: en
meta:
  "og:description": "Practice XLOOKUP's match mode in a live spreadsheet: pick the smallest box that fits with the next larger match."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_The%2Bsmallest%2Bbox%2Bthat%2Bfits%2Bwith%2BXLOOKUP%2Cdescription_~UHJhY3RpY2UgWExPT0tVUCdzIG1hdGNoIG1vZGUgaW4gYSBsaXZlIHNwcmVhZHNoZWV0OiBwaWNrIHRoZSBzbWFsbGVzdCBib3ggdGhhdCBmaXRzIHdpdGggdGhlIG5leHQgbGFyZ2VyIG1hdGNoLg%2Ceyebrow_XLOOKUP%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJDIiwiRSJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJPcmRlciIsIlZvbHVtZSAobGl0ZXJzKSIsIkJveCIsIkhvbGRzIHVwIHRvIl19LHsibiI6MiwiY2VsbHMiOlsiMTAwMSIsIjEyIiwiIiwiNSJdfSx7Im4iOjMsImNlbGxzIjpbIjEwMDIiLCI0IiwiIiwiMTAiXX0seyJuIjo0LCJjZWxscyI6WyIxMDAzIiwiMjciLCIiLCIyMCJdfSx7Im4iOjUsImNlbGxzIjpbIjEwMDQiLCIyMCIsIiIsIjEwMCJdfV0sInRhcmdldCI6WzEsMl19fQ%2Cp_Ii9wcmFjdGljZS94bG9va3VwL3hsb29rdXAtbmV4dC1sYXJnZXIi%2Cs_k1SRWttHhxM11BB4.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "The smallest box that fits with XLOOKUP | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_The%2Bsmallest%2Bbox%2Bthat%2Bfits%2Bwith%2BXLOOKUP%2Cdescription_~UHJhY3RpY2UgWExPT0tVUCdzIG1hdGNoIG1vZGUgaW4gYSBsaXZlIHNwcmVhZHNoZWV0OiBwaWNrIHRoZSBzbWFsbGVzdCBib3ggdGhhdCBmaXRzIHdpdGggdGhlIG5leHQgbGFyZ2VyIG1hdGNoLg%2Ceyebrow_XLOOKUP%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJDIiwiRSJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJPcmRlciIsIlZvbHVtZSAobGl0ZXJzKSIsIkJveCIsIkhvbGRzIHVwIHRvIl19LHsibiI6MiwiY2VsbHMiOlsiMTAwMSIsIjEyIiwiIiwiNSJdfSx7Im4iOjMsImNlbGxzIjpbIjEwMDIiLCI0IiwiIiwiMTAiXX0seyJuIjo0LCJjZWxscyI6WyIxMDAzIiwiMjciLCIiLCIyMCJdfSx7Im4iOjUsImNlbGxzIjpbIjEwMDQiLCIyMCIsIiIsIjEwMCJdfV0sInRhcmdldCI6WzEsMl19fQ%2Cp_Ii9wcmFjdGljZS94bG9va3VwL3hsb29rdXAtbmV4dC1sYXJnZXIi%2Cs_k1SRWttHhxM11BB4.png"
---

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

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

C2fx

|  | A | B | C | D | E | F | G |
| --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | Order | Volume (liters) | Box |  | Holds up to | Box | |
| 2 | 1001 | 12 |  |  | 5 | Small | |
| 3 | 1002 | 4 |  |  | 10 | Medium | |
| 4 | 1003 | 27 |  |  | 20 | Large | |
| 5 | 1004 | 20 |  |  | 100 | Extra large | |
| 6 |  |  |  |  |  |  | |
| 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-next-larger)

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-next-larger#webpage","description":"Practice XLOOKUP's match mode in a live spreadsheet: pick the smallest box that fits with the next larger match.","name":"The smallest box that fits with XLOOKUP","url":"https://practiceexcelonline.com/practice/xlookup/xlookup-next-larger","@type":["WebPage","FAQPage"],"breadcrumb":{"@id":"https://practiceexcelonline.com/practice/xlookup/xlookup-next-larger#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"mainEntity":[{"@id":"https://practiceexcelonline.com/practice/xlookup/xlookup-next-larger#/schema/question/1"},{"@id":"https://practiceexcelonline.com/practice/xlookup/xlookup-next-larger#/schema/question/2"}],"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/practice/xlookup/xlookup-next-larger"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/practice/xlookup/xlookup-next-larger#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":"The smallest box that fits with XLOOKUP","position":4}]},{"@id":"https://practiceexcelonline.com/practice/xlookup/xlookup-next-larger#/schema/question/1","@type":"Question","inLanguage":"en-US","name":"How do I look up the next larger value in Excel?","acceptedAnswer":{"@type":"Answer","text":"Use XLOOKUP with match_mode 1, =XLOOKUP(B2,$E$2:$E$5,$F$2:$F$5,,1). With -1 it takes the next smaller value instead."}},{"@id":"https://practiceexcelonline.com/practice/xlookup/xlookup-next-larger#/schema/question/2","@type":"Question","inLanguage":"en-US","name":"Does the table need to be sorted?","acceptedAnswer":{"@type":"Answer","text":"No. Unlike VLOOKUP's approximate match, XLOOKUP's match modes work on an unsorted list."}},{"@id":"https://practiceexcelonline.com/practice/xlookup/xlookup-next-larger#/schema/learning-resource/1","@type":"LearningResource","description":"Practice XLOOKUP's match mode in a live spreadsheet: pick the smallest box that fits with the next larger match.","educationalLevel":"intermediate","isAccessibleForFree":false,"learningResourceType":"exercise","name":"The smallest box that fits 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.
