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
INDEX function do in Google Sheets when combined with MATCH?INDEX and MATCH together to find a value in column B based on a lookup value in column A?A1:A4 = {"Cat", "Dog", "Bird", "Fish"}B1:B4 = {5, 3, 8, 2}=INDEX(B1:B4, MATCH("Bird", A1:A4, 0))?=INDEX(B1:B5, MATCH("Orange", A1:A5, 0)) but it returns an error. What is the most likely cause?A2:A10 and scores in B2:B10. You want to find the score of the name in D2, but if the name is not found, return "Not Found" instead of an error. Which formula correctly does this?Pass the test and this pattern moves unknown