Management & CommerceModerateMBA Placement · Business Analyst · Excel test

A2:A7 hold product codes P7, P3, P7, P9, P7, P3 (oldest to newest) and B2:B7 hold prices 120, 80, 135, 60, 150, 95. What does =XLOOKUP("P7", A2:A7, B2:B7, "none", 0, -1) return?

  1. A. 150
  2. B. 120
  3. C. 135
  4. D. none

Correct answer: A. 150

search_mode −1 searches from the last row upward, so it returns the latest P7 price: 150. The default (1) would return the first match, 120. Match mode 0 is an exact match, so 'none' appears only if P7 is absent.

More Operations, Supply Chain & Business Analytics questions

Exams that ask this topic