Skip to content

ACCA Applied Knowledge · Management Accounting · Spreadsheets

A product table has product codes in A2:A5 (P1, P2, P3, P4) and unit costs in B2:B5 ($4, $7, $9, $12). Which formula returns the unit cost for product code P3 held in cell D1, ensuring an exact match is required?

The correct formula is =VLOOKUP(D1,A2:B5,2,FALSE). It looks down the first column for P3, returns the entry from the second column (the unit cost), and the FALSE argument requires an exact match rather than an approximate one.

  1. A=VLOOKUP(D1,A2:B5,2,TRUE)
  2. B=VLOOKUP(D1,A2:B5,1,FALSE)
  3. C=VLOOKUP(D1,A2:B5,2,FALSE)Correct
  4. D=HLOOKUP(D1,A2:B5,2,FALSE)

Explanation

VLOOKUP searches the first column of the range for the code and returns a value from the column number given, here column 2 holding the costs. FALSE forces an exact match. Column 1 would return the code itself, TRUE gives an approximate match, and HLOOKUP searches across rows rather than down columns.

Did you get it right without looking?

One question tells you little. A timed set on Spreadsheets shows your real accuracy, how long you take and where you lose marks.

More Spreadsheets questions