Module 7 · Lookup
Part names and prices

Kofi knows every part number by heart. But not today. He has a cold, and eight orders are waiting. The parts list is on the right. You help him find the names and the prices.
Steps
Find a price with VLOOKUP
VLOOKUP finds a value in the first column of a table. Then it gives back a value from the same row.
How to do it
- Select the cell for the result.
- Type =VLOOKUP(
- Click the value to find. Type a comma.
- Type the table, for example H:J. The value to find must be in its first column. Type a comma.
- Type the number of the column to give back. Count from the first column of the table. Type a comma.
- Type FALSE for an exact match. Type a closing bracket.
- Press Enter.
=VLOOKUP(C5,H:J,3,FALSE)Task: Find the price for order #2042. Put it in cell F6.
Give back a different column
The column number tells VLOOKUP which column to give back. Change the number to get a different value.
How to do it
- Click cell E5.
- Type =VLOOKUP(C5,H:J,
- Type 2,FALSE and a closing bracket.
- Press Enter.
- The value to find must be in the first column of the table. For a lookup to the left, use XLOOKUP or INDEX and MATCH.
=VLOOKUP(C5,H:J,2,FALSE)Task: Fill in the part names for all orders, down to cell E12.