XLOOKUP vs VLOOKUP: Why You Should Switch in Excel Today
If you work with lookup tables in Excel, XLOOKUP is one of the most useful formulas you can learn. It was introduced by Microsoft in 2019 as the modern replacement for VLOOKUP and HLOOKUP—so if you haven't come across it yet, that's completely understandable, especially if you learned Excel before then.
If you haven't read my earlier post on HLOOKUP and VLOOKUP, I'd recommend starting there and coming back to this one afterward—this post builds on that foundation.
HLOOKUP vs. VLOOKUP vs. XLOOKUP
- HLOOKUP—use this when your reference table is laid out horizontally
- VLOOKUP—use this when your reference table is laid out vertically
- XLOOKUP—works in either direction and fixes several long-standing annoyances with the older two formulas
Why is XLOOKUP better, not just newer?
- It can look to the left of the lookup column, which VLOOKUP can't do.
- It doesn't break if you insert or delete a column in the middle of your data
- You can specify a custom "not found" value instead of a bare #N/A error.
=XLOOKUP(A7, A2:A5, B2:C5)
- A7—the cell containing the name you're searching for.
- A2:A5—the range where Excel should look for that name. ("John")
- B2:C5—the range containing the values you want returned (age and height)
If you only need one value, narrow the return range to a single column:
=XLOOKUP(A7, A2:A5, C2:C5)
This returns just 199.
Why this matters for your daily work
This is a simple formula, but it's genuinely useful if you work with data regularly—as an accountant, paralegal, secretary, analyst, or in any role where you're pulling information out of large tables. Imagine a spreadsheet of 1,000 client records: scanning it manually for one name would take forever. XLOOKUP does it instantly.
Even with AI tools making spreadsheet work easier, it's still worth understanding how the underlying formulas work. I've seen students copy formulas as templates without understanding their structure—and then get stuck the moment their data doesn't match the example exactly. Take the time to understand why a formula is built the way it is, and you'll be able to adapt it to any situation, not just the one in the tutorial.
I'll keep sharing practical formulas like this one. Feel free to check back weekly for something new.
Have a great day!
*The top image is a screenshot of the XLOOKUP formula table.
Comments
Post a Comment