Dashboard Mode - INDEX and MATCH combination
Goal
Find the price of a product by its name using INDEX and MATCH formulas combined.
Find the price of a product by its name using INDEX and MATCH formulas combined.
| Product | Category | Price |
|---|---|---|
| Apple | Fruit | 1.20 |
| Banana | Fruit | 0.80 |
| Carrot | Vegetable | 0.50 |
| Broccoli | Vegetable | 1.00 |
| Milk | Dairy | 1.50 |
=INDEX(C2:C6, MATCH(G2, A2:A6, 0)) to find the price of the product typed in G2.+----------------------+------------------+ | Product Name Input | [ G2: "Banana" ] | +----------------------+------------------+ | Price Result | [ G3: 0.80 ] | +----------------------+------------------+
User types a product name in cell G2. The formula in G3 updates automatically to show the price of that product. If the product name is not found, the formula returns an error.
If you change the product name in G2 to "Milk", what value appears in G3?
Answer: 1.50