Master VLOOKUP in Excel: A Beginner's Complete Guide
March 16, 2026
VLOOKUP is one of the most widely used functions in Excel. The “V” stands for Vertical, meaning it searches down a column to find a value, then returns data from the same row in a different column.
What Is VLOOKUP?
Think of it as telling Excel: “Find this value in a table, and bring back the value from column N of that row.”
Common use cases:
- Look up an employee name by their ID
- Find a product price by its SKU
- Retrieve a student’s grade by their student number
Basic Syntax
=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
| Parameter | Description | Example |
|---|---|---|
| lookup_value | The value to search for | "A001" or a cell reference like F1 |
| table_array | The range containing your data | A1:D100 or A:D |
| col_index_num | Which column to return (counted from the left of the range) | 2 for the second column |
| range_lookup | FALSE = exact match, TRUE = approximate | Almost always use FALSE |
Practical Example
Suppose you have this employee list:
| A (ID) | B (Name) | C (Dept) | D (Salary) |
|---|---|---|---|
| A001 | Alice Johnson | Engineering | 85,000 |
| A002 | Bob Smith | Marketing | 72,000 |
| A003 | Carol Davis | Sales | 78,000 |
To find the name for ID “A002” entered in cell F1:
=VLOOKUP(F1, A:D, 2, FALSE)
F1— the lookup value (A002)A:D— the table range2— return the 2nd column (Name)FALSE— exact match only
Result: Bob Smith
Common Errors and Fixes
#N/A Error
The lookup value was not found in the first column of the range.
Fix: Wrap with IFERROR to show a friendly message:
=IFERROR(VLOOKUP(F1, A:D, 2, FALSE), "Not found")
#REF! Error
The column index number exceeds the number of columns in the range. For example, if your range is A:C (3 columns) but you entered 4 as the column index.
#N/A Even Though the Value Exists
Hidden spaces in your data can cause false mismatches. Use TRIM to strip them:
=VLOOKUP(TRIM(F1), A:D, 2, FALSE)
Also check for number-vs-text mismatches. If the lookup column stores numbers as text, convert with VALUE() or use -- (double unary) to coerce.
Limitations of VLOOKUP
- Cannot look left — The lookup value must be in the first column of the range.
- Returns only the first match — If there are duplicates, you only get the first one.
- Fragile column index — Inserting columns into the range shifts results unless you update the index manually.
Upgrade to XLOOKUP
If you have Excel 2021 or Microsoft 365, XLOOKUP is the modern replacement for VLOOKUP.
=XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found])
Why XLOOKUP Is Better
| Feature | VLOOKUP | XLOOKUP |
|---|---|---|
| Search direction | Right only | Any direction |
| Error handling | Needs IFERROR | Built-in if_not_found |
| Column insertions | Breaks easily | Uses direct range references |
| Supported versions | All versions | Excel 2021+ / 365 |
XLOOKUP Example
=XLOOKUP(F1, A:A, B:B, "Not found")
This searches column A for the value in F1 and returns the corresponding value from column B. If not found, it returns “Not found” — no IFERROR needed.
Quick Reference Cheat Sheet
| Task | Formula |
|---|---|
| Basic lookup | =VLOOKUP(F1, A:D, 2, FALSE) |
| With error handling | =IFERROR(VLOOKUP(F1, A:D, 2, FALSE), "N/A") |
| Trim spaces | =VLOOKUP(TRIM(F1), A:D, 2, FALSE) |
| XLOOKUP equivalent | =XLOOKUP(F1, A:A, B:B, "N/A") |
Key Takeaways
Start with VLOOKUP to build your foundation — it works in every version of Excel and is the most commonly referenced lookup function. Once comfortable, transition to XLOOKUP for cleaner, more flexible formulas. Whichever you choose, mastering lookups is one of the most valuable Excel skills you can develop.