Practice problems / Lookup & Reference

Look up unit price by SKU (VLOOKUP)

Easy Lookup & Reference
Description
Hints 0/4
Solutions 2
–
Test case
1
2
3
Reset
Submit
fx
A
B
C
D
E
F
G
1
2
3
4
5
6
7
8
9
10
Loading interactive spreadsheet...
Preparing grid cells and formula calculation engine
○ Ready Enter formula in highlighted cells, then click Submit.

The problem

Problem statement

You run a small warehouse. The price list on the left has every SKU, but the order sheet on the right still needs unit prices. Fill the Unit price cells F2:F4 so each order row pulls the price for its SKU from the price list in A2:C6.

G2:G6 is copy-filled, so lock the lookup range with $ — and force an exact match instead of relying on the default.

Problem data

Show the sheet as a table (selectable, copyable)
The exercise data, as a table
ABCEF
1 SKUProductUnit priceOrder SKUUnit price
2 SKU-101Keyboard199SKU-103
3 SKU-102Mouse89SKU-101
4 SKU-103Monitor899SKU-105
5 SKU-104Laptop stand149
6 SKU-105USB hub259

Notes

VLOOKUP always searches the first column of the table. The FALSE argument forces an exact match — without it, VLOOKUP may return a nearby value. Column index 3 means the third column of the table range, not column C of the sheet.

How to approach

Your answer goes in F2:F4. On submit we re-run your formula against 3 different sets of input, so a hardcoded number will fail — the formula has to follow the cells.

  1. Target cells are F2:F4 — start in F2, then fill down
  2. In F2, lookup_value is E2 and table_array is A2:C6
  3. The price lives in the 3rd column of the table, so col_index_num is 3
  4. Use FALSE as range_lookup to force an exact match

Official solutions

Show 2 solutions — try it yourself first

Approach 1: Standard VLOOKUP exact match

=VLOOKUP(E2, A2:C6, 3, FALSE)

VLOOKUP searches A2:C6's first column for the SKU in E2, then returns the value from the 3rd column of that range. FALSE forces an exact match. Enter this in F2 first.

Approach 2: VLOOKUP with locked table ($)

=VLOOKUP(E2, $A$2:$C$6, 3, FALSE)

Locking the table with $ keeps A2:C6 fixed when you fill F2 down through F4. The relative E2 becomes E3, E4 so each order row looks up its own SKU.

Function guide

Related practice

FAQ

How do I look up a price with VLOOKUP?

Use =VLOOKUP(E2, A2:C6, 3, FALSE) when E2 holds the SKU, A2:C6 the price table, and the price sits in the 3rd column. Fill down for the other order rows.

Why does VLOOKUP need FALSE at the end?

FALSE forces an exact match. With TRUE (or omitted), VLOOKUP returns an approximate match and can silently return the wrong row when the lookup value is text.

What does the 3 in VLOOKUP mean?

It is the column index within the table range, counted from the first column of A2:C6 — not column number 3 of the worksheet. If the price column moves inside the range, update the index.