Module 7 · Lookup · Price by size and brand

Kofi Mensah works at the counter of Kestrel Auto Parts

Wiper blades come in five sizes and three brands. The price table has the sizes down and the brands across. Kofi needs the price where a row and a column meet.

Loading the spreadsheet…

Module 7 · Lookup

Price by size and brand

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

Wiper blades come in five sizes and three brands. The price table has the sizes down and the brands across. Kofi needs the price where a row and a column meet.

Steps

  1. Find a value by row and column with INDEX

    INDEX gives back the value at a row and a column of a range. =INDEX(I5:K9,3,2) is row 3, column 2.

    How to do it

    1. Select the cell for the result.
    2. Type =INDEX( and the range with the values. Type a comma.
    3. Type the row number, the column number and a closing bracket.
    4. Press Enter.

    =INDEX($I$5:$K$9,3,2)

    Task: Order #4102 is a 16 inch Kestrel blade. Find its price with INDEX in cell E6.

  2. Find the row and the column with MATCH

    MATCH can find the row number and the column number for INDEX. Then you count nothing.

    How to do it

    1. Click cell E5.
    2. Type =INDEX($I$5:$K$9,
    3. Type a MATCH for the row number and a comma.
    4. Type a MATCH for the column number. Close both brackets.
    5. Press Enter.

    =INDEX($I$5:$K$9,MATCH(C5,$H$5:$H$9,0),MATCH(D5,$I$4:$K$4,0))

    Task: Find the prices for all other orders with the same formula. Fill in E6:E10.