Module 7 · Lookup · Shipping rates by weight

Kofi Mensah works at the counter of Kestrel Auto Parts

Kofi still has his cold. Today he ships eight parcels. The rate depends on the weight, and big orders get a discount. Kofi knew both tables by heart last week. Today he does not.

Loading the spreadsheet…

Module 7 · Lookup

Shipping rates by weight

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

Kofi still has his cold. Today he ships eight parcels. The rate depends on the weight, and big orders get a discount. Kofi knew both tables by heart last week. Today he does not.

Steps

  1. Find a rate in steps with TRUE

    With TRUE, VLOOKUP finds the largest value that is less than or equal to the value to find. Sort the first column from small to large.

    How to do it

    1. Select the cell for the result.
    2. Type =VLOOKUP( and the value to find. Type a comma.
    3. Type the locked table, the column number and a comma.
    4. Type TRUE for steps and a closing bracket.
    5. Press Enter.
    6. With TRUE, the first column of the table must be sorted from small to large.

    =VLOOKUP(D5,$I$5:$J$9,2,TRUE)

    Task: Find the shipping rate for the other parcels. Fill in E6:E12.

  2. Use the same method for discounts

    Steps are everywhere: rates, discounts, grades. The table needs only the start of each step.

    How to do it

    1. Click cell G5.
    2. Type =VLOOKUP(F5,$L$5:$M$8,2,TRUE)
    3. Press Enter.

    =VLOOKUP(F5,$L$5:$M$8,2,TRUE)

    Task: Find the discount for the other orders. Fill in G6:G12.