VLOOKUP vs XLOOKUP — which should you learn first?
Learn exact-match VLOOKUP for exams and legacy files, then graduate to XLOOKUP for cleaner everyday models—with side-by-side formulas and practice links.
If you only have time for one modern lookup, learn XLOOKUP. If you are preparing for assessments or inheriting older workbooks, learn exact-match VLOOKUP too. Most strong candidates can explain both in one minute and write either under pressure.
Side-by-side on the same task
Price list in A2:C100 (Code, Name, Price). Order code in E2. Return price in F2.
VLOOKUP (exact):
=VLOOKUP(E2, $A$2:$C$100, 3, FALSE)
XLOOKUP:
=XLOOKUP(E2, $A$2:$A$100, $C$2:$C$100)
Same business result. Different failure modes.
Why VLOOKUP still shows up
VLOOKUP is everywhere in textbooks, interview screens, and decade-old templates. Recruiters still ask for it by name. The danger is not VLOOKUP itself—it is:
- Omitting
FALSE/0(approximate match on unsorted IDs) - Hard-coded column indexes that break when someone inserts a column
- No left lookup without rearranging the sheet
Rule of thumb: always write FALSE for IDs and names unless you intentionally want approximate bands (grades, tax brackets).
Practice set: VLOOKUP practice exercises · Guide: VLOOKUP · Lesson: VLOOKUP practice
Why XLOOKUP feels better day to day
XLOOKUP separates the lookup column from the return column, so you can look left, survive inserted columns, and default to exact match. The optional if_not_found argument returns a friendly message without blanketing IFERROR over real mistakes.
Look left (name → code) example:
=XLOOKUP(E2, $B$2:$B$100, $A$2:$A$100, "Not found")
Practice set: XLOOKUP practice exercises · Guide: XLOOKUP · Lesson: XLOOKUP practice
Decision cheat sheet
- Microsoft 365 / Excel 2021+ on your machine → default to XLOOKUP.
- Shared file must open in Excel 2019 or earlier → INDEX/MATCH or exact VLOOKUP.
- Interview explicitly says “use VLOOKUP” → exact match with
FALSEand locked$ranges; then mention you’d use XLOOKUP in production. - Band / threshold lookup → approximate VLOOKUP (
TRUE) or XLOOKUP withmatch_mode-1on a sorted threshold column—not on employee IDs.
Three interview lines worth memorizing
- “I’d use XLOOKUP when available because exact match is default and I can look left.”
- “If I write VLOOKUP, I always pass
FALSEfor IDs and lock the table with$before fill-down.” - “
#N/Ameans no match—I check presence, data types, and spaces before I rewrite the range.”
More Q&A: Excel interview questions (with practice)
A practical learning path
- Drill exact VLOOKUP until
#N/Ano longer surprises you — VLOOKUP exercises. - Rebuild the same tasks with XLOOKUP — XLOOKUP exercises.
- Keep INDEX / MATCH as a compatibility tool — or compare them head-to-head in XLOOKUP vs INDEX MATCH.
- Clean keys before either lookup — text cleanup before lookups.
When the pattern feels boring, you are ready for the screen share.