Management & CommerceHardBusiness analyst · Excel test
A sheet has employee IDs in A2:A100 and departments in C2:C100. In row 1, the headers are A1 'ID', B1 'Name', C1 'Dept'. Which formula returns the department of the ID in F1 and still works if a new column is later inserted between B and C?
- A. =INDEX(C2:C100, MATCH(F1, A2:A100, 0))
- B. =VLOOKUP(F1, A2:C100, 3, FALSE)
- C. =VLOOKUP(F1, A2:C100, 3, TRUE)
- D. =INDEX(A2:C100, MATCH(F1, A2:A100, 0), 3)
Correct answer: A. =INDEX(C2:C100, MATCH(F1, A2:A100, 0))
INDEX/MATCH refers to the return column directly, so the reference shifts automatically when a column is inserted. VLOOKUP and INDEX with a hard-coded column number 3 would then return the wrong column, and TRUE would also allow an approximate match.
Practise more Operations, Supply Chain & Business Analytics questionsOperations, Supply Chain & Business Analytics: notes and key points
More Operations, Supply Chain & Business Analytics questions
- An analyst uses =VLOOKUP("P-104", A2:B6, 2, TRUE) on a product list sorted as P-101, P-103, P-105, P-102, P-104 in A2:A6 (not in ascending…
- What does =XLOOKUP("Pune", A2:A10, B2:B10, "Not found") return if 'Pune' does not appear in A2:A10?
- A cash-flow model has an initial outlay of ₹1,000 at time 0 in B1 (entered as −1000) and inflows of ₹400, ₹400 and ₹400 at the end of…
- For an outlay of ₹1,000 now followed by inflows of ₹400 at the end of each of the next three years, at 10%, an analyst wrongly enters…
- A loan of ₹10,00,000 at 9% a year is repaid in 60 equal monthly instalments. Which formula correctly gives the instalment as a positive…
- An investor deposits ₹5,000 at the start of every month for 24 months at 12% a year compounded monthly. Which formula gives the value at…