0
0
Excelspreadsheet~10 mins

VLOOKUP function in Excel - Cell-by-Cell Formula Trace

Choose your learning style9 modes available
Sample Data

This table lists products with their IDs, names, and prices. We want to find the product name for the ID 102 using VLOOKUP.

CellValue
A1Product ID
B1Product Name
C1Price
A2101
B2Apple
C20.5
A3102
B3Banana
C30.3
A4103
B4Cherry
C40.2
E1Lookup ID
E2102
F1Result
Formula Trace
=VLOOKUP(E2, A2:C4, 2, FALSE)
Step 1: VLOOKUP(102, A2:C4, 2, FALSE)
Step 2: Find 102 in A3
Step 3: Return value from 2nd column in row 3
Cell Reference Map
    A       B         C       D       E       F
1 |Product ID|Product Name|Price |       |Lookup ID|Result
2 |   101   |   Apple   | 0.5   |       |   102   | 
3 |   102   |  Banana   | 0.3   |       |         | 
4 |   103   |  Cherry   | 0.2   |       |         | 

Formula in F2: =VLOOKUP(E2, A2:C4, 2, FALSE)
Arrow: E2 -> lookup value, A2:C4 -> table range, 2 -> column index
The formula uses E2 as the lookup value, searches in the range A2:C4, and returns the value from the 2nd column of the matching row.
Result
    A       B         C       D       E       F
1 |Product ID|Product Name|Price |       |Lookup ID|Result
2 |   101   |   Apple   | 0.5   |       |   102   | Banana
3 |   102   |  Banana   | 0.3   |       |         | 
4 |   103   |  Cherry   | 0.2   |       |         | 
The formula in cell F2 shows 'Banana' because it found the product name for ID 102.
Sheet Trace Quiz - 3 Questions
Test your understanding
What does the number 2 mean in the formula =VLOOKUP(E2, A2:C4, 2, FALSE)?
AIt tells VLOOKUP to look in the 2nd row of the table
BIt tells VLOOKUP to return the value from the 2nd column of the table range
CIt tells VLOOKUP to look for the number 2 in the table
DIt tells VLOOKUP to return the value from the 2nd cell in the sheet
Key Result
VLOOKUP(lookup_value, table_range, column_index, FALSE) finds exact match in first column and returns value from specified column.