Dashboard Mode - XLOOKUP function
Goal
Find the price of a product by its name quickly and accurately.
Find the price of a product by its name quickly and accurately.
| Product | Price |
|---|---|
| Apple | 1.20 |
| Banana | 0.50 |
| Carrot | 0.30 |
| Date | 1.50 |
| Eggplant | 0.80 |
=XLOOKUP(B8, A2:A6, B2:B6, "Not found")+----------------------+------------------+ | Product List | | | +--------------+ | | | | Product |Price| | | | | Apple | 1.20| | | | | Banana | 0.50| | | | | Carrot | 0.30| | | | | Date | 1.50| | | | | Eggplant| 0.80| | | | +--------------+ | | +----------------------+------------------+ | Enter Product Name: B8 | | Price Found: B9 | +----------------------------------------+
User types a product name in cell B8. The XLOOKUP formula in B9 updates automatically to show the price of that product. If the product is not in the list, it shows "Not found". This lets the user quickly check prices without searching manually.
If you type "Date" in cell B8, what price appears in B9? (Answer: 1.50)
If you type "Orange" in B8, what appears? (Answer: Not found)