Skip to content

ACCA Applied Knowledge · Management Accounting · Spreadsheets

A cost schedule lists product codes in A2:A9 and unit costs in B2:B9. Cell E2 holds the code P507. Which formula returns the unit cost for P507 even if the list is unsorted?

Use =VLOOKUP(E2,A2:B9,2,FALSE). The FALSE argument forces an exact match, which is required for unsorted data, and column index 2 returns the unit cost rather than the product code.

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

Explanation

An exact match (FALSE) is needed for unsorted data, and column index 2 returns the cost column. TRUE assumes sorted data and may return a wrong value. Index 1 would return the code itself, and HLOOKUP searches across a top row, not down a column.

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