Sample Data
This table lists products and their prices. We want to find the price of a product typed in D2 using INDEX-MATCH.
| Cell | Value |
|---|---|
| A1 | Product |
| B1 | Price |
| A2 | Apple |
| B2 | 1.2 |
| A3 | Banana |
| B3 | 0.5 |
| A4 | Cherry |
| B4 | 2.0 |
| D1 | Lookup Product |
| D2 | Banana |
| E1 | Price Found |
This table lists products and their prices. We want to find the price of a product typed in D2 using INDEX-MATCH.
| Cell | Value |
|---|---|
| A1 | Product |
| B1 | Price |
| A2 | Apple |
| B2 | 1.2 |
| A3 | Banana |
| B3 | 0.5 |
| A4 | Cherry |
| B4 | 2.0 |
| D1 | Lookup Product |
| D2 | Banana |
| E1 | Price Found |
=INDEX(B2:B4, MATCH(D2, A2:A4, 0))A B C D E 1 |Product | Price | |Lookup |Price | | | |Product |Found 2 |Apple | 1.2 | |Banana | 3 |Banana | 0.5 | | | 4 |Cherry | 2.0 | | | Arrows: D2 --> MATCH lookup in A2:A4 MATCH result (2) --> INDEX row number in B2:B4 INDEX returns value to E2
A B C D E 1 |Product | Price | |Lookup |Price | | | |Product |Found 2 |Apple | 1.2 | |Banana | 0.5 3 |Banana | 0.5 | | | 4 |Cherry | 2.0 | | |
INDEX-MATCH over VLOOKUP in Excel?INDEX and MATCH together to find a value in Excel?A B 1 Fruit Price 2 Apple 3 3 Banana 2 4 Cherry 5What is the result of the formula
=INDEX(B2:B4, MATCH("Banana", A2:A4, 0))?=INDEX(B2:B5, MATCH("Orange", A2:A5, 0)) but it returns #N/A. What is the most likely reason?Product (A2:A6), Category (B2:B6), and Price (C2:C6). How would you use INDEX-MATCH to find the price of the first product in the "Fruit" category?Pass the test and this pattern moves unknown