Module 7 · Lookup · Part names and prices

Kofi Mensah works at the counter of Kestrel Auto Parts

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.

Loading the spreadsheet…

Module 7 · Lookup

Part names and prices

Kofi Mensah, works at the counter of Kestrel Auto Parts
Kofi Mensah works at the counter of Kestrel Auto Parts

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

  1. 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

    1. Select the cell for the result.
    2. Type =VLOOKUP(
    3. Click the value to find. Type a comma.
    4. Type the table, for example H:J. The value to find must be in its first column. Type a comma.
    5. Type the number of the column to give back. Count from the first column of the table. Type a comma.
    6. Type FALSE for an exact match. Type a closing bracket.
    7. Press Enter.

    =VLOOKUP(C5,H:J,3,FALSE)

    Task: Find the price for order #2042. Put it in cell F6.

  2. 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

    1. Click cell E5.
    2. Type =VLOOKUP(C5,H:J,
    3. Type 2,FALSE and a closing bracket.
    4. Press Enter.
    5. 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.