VLOOKUP & XLOOKUP
Look up values across tables with VLOOKUP and the modern XLOOKUP — essential for joining data in Excel.
✅ What You Will Learn
VLOOKUP (Vertical Lookup) searches the leftmost column of a table for a value and returns data from a specified column to the right. It is one of the most-used functions in Excel and appears in virtually every analyst technical interview.
The function has four arguments: what to look for, where to look, which column to return, and whether to match exactly or approximately. The fourth argument should almost always be FALSE (exact match) — the default TRUE (approximate match) causes subtle bugs that are hard to detect.
XLOOKUP, introduced in Microsoft 365, fixes several VLOOKUP limitations. It can look left, search from the bottom up, return a range of columns, and has a built-in default for when no match is found. If you have Microsoft 365, use XLOOKUP. If you are on an older version, VLOOKUP remains essential.
📋 Products table (lookup source)
| Product ID | Product Name | Category | Price (₹) | Stock |
|---|---|---|---|---|
| P001 | Laptop Pro | Electronics | 52000 | 15 |
| P002 | Wireless Mouse | Accessories | 1200 | 200 |
| P003 | USB-C Hub | Accessories | 2800 | 85 |
| P004 | Monitor 24" | Electronics | 18500 | 30 |
| P005 | Mechanical Keyboard | Accessories | 4500 | 60 |
Syntax
Examples
📌 Key Points to Remember
- ✓VLOOKUP always searches the leftmost column of the table_array — restructure your table if the key is not on the left
- ✓Use FALSE as the fourth argument for exact matching — TRUE is only for numeric range lookups (like tax brackets)
- ✓XLOOKUP can return multiple columns at once and search from the bottom up
- ✓IFERROR wraps any function: =IFERROR(formula, "fallback value")
- ✓For very large datasets (100k+ rows), INDEX-MATCH is faster than VLOOKUP
🏢 Real-World Application
Operations analysts use VLOOKUP or XLOOKUP to merge order data with product master data — looking up product names, prices, and categories for each order ID. HR teams look up employee grade and designation from a master employee table to populate payroll sheets. This is Excel equivalent of a SQL JOIN.
⚠️ Common Mistakes to Avoid
❓ Frequently Asked Questions
Should I learn VLOOKUP or XLOOKUP?
Learn both. VLOOKUP is asked in almost every analyst interview and is on millions of existing spreadsheets. XLOOKUP is what you should use for new work if your Excel version supports it.
Why does VLOOKUP return the wrong value when data looks correct?
Almost always a data type issue — numbers stored as text, or extra spaces. Use TRIM() to remove spaces and VALUE() to convert text-numbers. You can also check by pressing Ctrl+1 on a cell and reading the Format tab.
Can VLOOKUP return multiple columns?
Standard VLOOKUP returns one column at a time. XLOOKUP can return a whole range. Alternatively, use multiple VLOOKUP formulas with different col_index values, or use INDEX-MATCH.
✏️ Practice Exercise
Create a two-sheet workbook. On Sheet1 (Products), put a table with Product ID, Name, Category, and Price for 8 products. On Sheet2 (Orders), put 10 order rows with a Product ID column. In the next columns on Sheet2, use VLOOKUP or XLOOKUP to pull the Name and Price for each order automatically from Sheet1.
Learn Excel with Live Trainer Guidance
These tutorials give you the foundations. Our live Excel course at EVIKA Academy, Noida teaches you to build real dashboards on actual business data — with a trainer who uses Excel professionally every day.