---
title: "The smallest box that fits with XLOOKUP in Google Sheets | PracticeExcel"
description: "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)."
canonical_url: "https://practiceexcelonline.com/sheets/practice/xlookup/xlookup-next-larger"
locale: en
meta:
  "og:description": "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)."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_The%2Bsmallest%2Bbox%2Bthat%2Bfits%2Bwith%2BXLOOKUP%2Bin%2BGoogle%2BSheets%2Cdescription_~SW4gQzIsIHBpY2sgdGhlIHNtYWxsZXN0IGJveCB0aGF0IGhvbGRzIHRoZSB2b2x1bWUgaW4gQjIuIElmIHRoZXJlIGlzIG5vIGV4YWN0IG1hdGNoLCBYTE9PS1VQIHNob3VsZCB0YWtlIHRoZSBuZXh0IGxhcmdlciBzaXplOiBtYXRjaF9tb2RlIDEsIHRoZSBmaWZ0aCBhcmd1bWVudCwgWExPT0tVUChCMiwkRSQyOiRFJDUsJEYkMjokRiQ1LCwxKS4%2Ceyebrow_XLOOKUP%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJDIiwiRSJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJPcmRlciIsIlZvbHVtZSAobGl0ZXJzKSIsIkJveCIsIkhvbGRzIHVwIHRvIl19LHsibiI6MiwiY2VsbHMiOlsiMTAwMSIsIjEyIiwiIiwiNSJdfSx7Im4iOjMsImNlbGxzIjpbIjEwMDIiLCI0IiwiIiwiMTAiXX0seyJuIjo0LCJjZWxscyI6WyIxMDAzIiwiMjciLCIiLCIyMCJdfSx7Im4iOjUsImNlbGxzIjpbIjEwMDQiLCIyMCIsIiIsIjEwMCJdfV0sInRhcmdldCI6WzEsMl19fQ%2Cp_Ii9zaGVldHMvcHJhY3RpY2UveGxvb2t1cC94bG9va3VwLW5leHQtbGFyZ2VyIg%2Cs_1sDvF9hu2ntTjHUm.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "The smallest box that fits with XLOOKUP in Google Sheets | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_The%2Bsmallest%2Bbox%2Bthat%2Bfits%2Bwith%2BXLOOKUP%2Bin%2BGoogle%2BSheets%2Cdescription_~SW4gQzIsIHBpY2sgdGhlIHNtYWxsZXN0IGJveCB0aGF0IGhvbGRzIHRoZSB2b2x1bWUgaW4gQjIuIElmIHRoZXJlIGlzIG5vIGV4YWN0IG1hdGNoLCBYTE9PS1VQIHNob3VsZCB0YWtlIHRoZSBuZXh0IGxhcmdlciBzaXplOiBtYXRjaF9tb2RlIDEsIHRoZSBmaWZ0aCBhcmd1bWVudCwgWExPT0tVUChCMiwkRSQyOiRFJDUsJEYkMjokRiQ1LCwxKS4%2Ceyebrow_XLOOKUP%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJDIiwiRSJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJPcmRlciIsIlZvbHVtZSAobGl0ZXJzKSIsIkJveCIsIkhvbGRzIHVwIHRvIl19LHsibiI6MiwiY2VsbHMiOlsiMTAwMSIsIjEyIiwiIiwiNSJdfSx7Im4iOjMsImNlbGxzIjpbIjEwMDIiLCI0IiwiIiwiMTAiXX0seyJuIjo0LCJjZWxscyI6WyIxMDAzIiwiMjciLCIiLCIyMCJdfSx7Im4iOjUsImNlbGxzIjpbIjEwMDQiLCIyMCIsIiIsIjEwMCJdfV0sInRhcmdldCI6WzEsMl19fQ%2Cp_Ii9zaGVldHMvcHJhY3RpY2UveGxvb2t1cC94bG9va3VwLW5leHQtbGFyZ2VyIg%2Cs_1sDvF9hu2ntTjHUm.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**

[**See plans, from $5/month**](https://practiceexcelonline.com/pricing) [**Already premium? Sign in**](https://practiceexcelonline.com/login?next=/sheets/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/sheets/practice/xlookup/xlookup-next-larger#webpage","@type":"WebPage","description":"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).","name":"The smallest box that fits with XLOOKUP in Google Sheets","url":"https://practiceexcelonline.com/sheets/practice/xlookup/xlookup-next-larger","breadcrumb":{"@id":"https://practiceexcelonline.com/sheets/practice/xlookup/xlookup-next-larger#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/sheets/practice/xlookup/xlookup-next-larger"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/sheets/practice/xlookup/xlookup-next-larger#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":"The smallest box that fits with XLOOKUP in Google Sheets","position":4}]},{"@id":"https://practiceexcelonline.com/sheets/practice/xlookup/xlookup-next-larger#/schema/learning-resource/1","@type":"LearningResource","description":"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).","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.
