Skip to the page

Excel · Trade-off

XLOOKUP, VLOOKUP or INDEX-MATCH

The interviewer asks

You need to pull each employee's department from a master sheet into a 50,000-row file. Would you use VLOOKUP, INDEX-MATCH or XLOOKUP? Which differences actually matter?

Then

Follow-ups the interviewer asks next

  1. What does VLOOKUP's last argument do, and what happens if you leave it out?
  2. Someone inserts a column in the master sheet. Which formulas break?
  3. The client's laptop has Excel 2019. Which formula fails there?
  4. How do you look up on two conditions, like employee id and month?
  5. The file has become slow. What helps?

The answer

What a strong answer covers

  • VLOOKUP: looks only to the right of the key column, uses a column number (breaks or quietly shifts when columns are inserted), and defaults to approximate match; without FALSE (or 0) it can return a wrong value with no error.
  • INDEX-MATCH: any direction, safe when columns are inserted, works in every version; MATCH(…, 0) for an exact match.
  • XLOOKUP: exact match by default, left or right, an if_not_found argument instead of wrapping in IFERROR, search from last to first (the latest entry), can return several columns. It's in Microsoft 365, Excel 2021 and 2024, not in 2019 or 2016, where the file shows #NAME?.
  • Two conditions: XLOOKUP(1, (A2:A100=id)*(B2:B100=month), C2:C100), a helper key column, or FILTER.
  • Speed: lookups over whole columns are slow; uses Excel Tables or exact ranges, binary search on sorted data (XLOOKUP's search mode 2), or does the join in Power Query.

The red pen

Common traps

Avoid:VLOOKUP without the exact-match argument; IFERROR around everything, which hides real mismatches.

Practise this out loud

Say your answer out loud to an AI interviewer that follows up, and get a score for it.

Practise by voice

Practise questions like this out loud

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview