How to use VLOOKUP in Excel (with examples)
Watch alongside this article
Public YouTube resources matched to this article's topic, functions, and practice goal.

Excel VLOOKUP: Basics of VLOOKUP and HLOOKUP explained with examples
Leila Gharani
Open on YouTube (opens in a new tab)

How to Use the NEW & IMPROVED Excel XLOOKUP (with 5 Examples)
Leila Gharani
Open on YouTube (opens in a new tab)VLOOKUP looks for a value in the first column of a range and returns a value from another column in the same row. It’s one of the most-used functions in Excel, and also one of the most misunderstood.
The syntax
=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
- lookup_value — what you’re searching for
- table_array — the range to search (the lookup column must be first)
- col_index_num — which column of that range to return, counting from 1
- range_lookup —
FALSEfor an exact match (almost always what you want)
A worked example
Say prices live in A:B, with product names in column A and prices in
column B. To find the price of the product typed in D2:
=VLOOKUP(D2, A:B, 2, FALSE)
The 2 means “return the value from the second column of the range.”
FALSE forces an exact match.
Common errors
- #N/A — the value wasn’t found. Check for stray spaces or a mismatch between text and numbers.
- #REF! —
col_index_numis larger than the number of columns in the range. - Returning the wrong value — you left
range_lookupblank or set it toTRUE, which does an approximate match on unsorted data.
When to use XLOOKUP instead
If you have a modern version of Excel, XLOOKUP is more flexible: it can look
left, doesn’t break when you insert columns, and defaults to an exact match.
=XLOOKUP(D2, A:A, B:B)
Same result, fewer footguns.
Go deeper with this skill
Write formulas that are correct, readable, and resilient when the workbook changes. For this article, the goal is to practice: A plain-English guide to VLOOKUP: the syntax, a worked example, the most common errors, and when to use XLOOKUP instead.
Practice workbook setup
Create a small table with clean headers, sample edge cases, and expected outputs you can check manually.
Practice workflow
- Write the business rule in plain English before writing the formula.
- Build the formula in small pieces and test each piece.
- Use absolute references, table references, or named ranges intentionally.
- Test blanks, missing values, duplicate matches, and unexpected text.
Quality checks
- The formula returns the expected result for normal and edge-case rows.
- References point to stable ranges or tables.
- Someone else can understand the formula after reading the labels around it.
Common mistakes
- Fixing one row without testing the rest of the column.
- Using approximate match or partial criteria without meaning to.
- Letting hidden spaces or text numbers cause false mismatches.
Next actions
- Create three test rows that should return different outcomes.
- Compare the result with an alternate formula or manual filter.
Formula focus: test VLOOKUP(), XLOOKUP() with normal rows, blank inputs, and at least one edge case.

