Sample Data
A simple product list with their prices in two columns: Product names in column A and prices in column B.
| Cell | Value |
|---|---|
| A1 | Product |
| B1 | Price |
| A2 | Apple |
| B2 | 1.20 |
| A3 | Banana |
| B3 | 0.50 |
| A4 | Cherry |
| B4 | 2.00 |
| A5 | Date |
| B5 | 3.00 |
A simple product list with their prices in two columns: Product names in column A and prices in column B.
| Cell | Value |
|---|---|
| A1 | Product |
| B1 | Price |
| A2 | Apple |
| B2 | 1.20 |
| A3 | Banana |
| B3 | 0.50 |
| A4 | Cherry |
| B4 | 2.00 |
| A5 | Date |
| B5 | 3.00 |
=INDEX(B2:B5, 3)A B 1 Product Price 2 Apple 1.20 3 Banana 0.50 4 Cherry 2.00 <-- INDEX range 5 Date 3.00
A B 1 Product Price 2 Apple 1.20 3 Banana 0.50 4 Cherry 2.00 5 Date 3.00 Result in formula cell: 2.00
INDEX function do?INDEX function in Excel?A1:C3 with values:1 2 3
4 5 6
7 8 9=INDEX(A1:C3, 2, 3)?=INDEX(A1:B2, 3, 1) if the range is only 2 rows tall?A1:C4 where column A is names, column B is ages, and column C is cities:John 25 NY
Mary 30 LA
Steve 22 SF
Anna 28 CHIINDEX to find the city of the person in row 3?Pass the test and this pattern moves unknown