In short
VLOOKUP searches for a value in the first column of a table in Excel and returns a value from the same row. The formula has four arguments. For exact matches, set the last argument to FALSE. In newer Excel versions, XLOOKUP is the more flexible alternative.
Purpose: VLOOKUP pulls values from a second table into your list.
Lookup column: The lookup value must be in the first column of the range.
FALSE as the last argument ensures an exact match.
#N/A usually means the value is missing from the lookup column.
XLOOKUP fixes most weaknesses but is missing in older versions.
What does VLOOKUP do?
VLOOKUP searches for a value in the first column of a range. Then it returns the content of another column from the same row. The "V" stands for vertical. So Excel searches the table from top to bottom.
A typical office case: you have an order list with item numbers and a separate price list. Instead of typing every price, VLOOKUP fetches it automatically. If a price changes, the order list updates with it.
According to Microsoft's help on the VLOOKUP function, the function is available in Excel for Microsoft 365 and on the web. Versions 2016 to 2024 also support it. So it works in older office installations too.
What is the syntax?
The formula has three required arguments and one optional argument. Microsoft describes it like this:
=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
Argument | Meaning | Example |
|---|---|---|
lookup_value | the value Excel searches for | A2 |
table_array | the range with the lookup column and the result column | Prices!A2:C4 |
col_index_num | number of the result column, counted from the first column of the table_array | 3 |
range_lookup | FALSE for an exact match, TRUE for an approximate match | FALSE |
The column index counts within the table_array. If the table_array starts in column C, column C has the number 1. This is the most common mix-up for beginners (even pros trip up here now and then). heise online offers another independent explanation with screenshots.
What does an example look like?
The following example pulls prices from a price list into an order. The price list is on the worksheet "Prices" and contains sample data:
A | B | C | |
|---|---|---|---|
1 | Item number | Description | Price |
2 | A-100 | Printer paper A4 | €4.90 |
3 | A-200 | Black toner | €39.00 |
4 | A-300 | Wide binder | €2.50 |
This is how you build the formula step by step:
On the "Order" sheet, enter the item number A-200 in cell A2.
Click cell B2 and type =VLOOKUP(.
Click A2. This is your lookup value.
On the "Prices" sheet, select the range A2 to C4.
On Windows, press F4. Excel adds dollar signs and locks the range.
Enter 3 as the column index, because the price is in the third column.
Finish with FALSE and a closing parenthesis. Press Enter.
The result is €39.00. The finished formula looks like this:
=VLOOKUP(A2,Prices!A2:C4,3,FALSE)
If you drag the formula down, Excel finds the matching price for each row. Without dollar signs, the table_array shifts when you copy. The lower rows then miss matches.
Exact or approximate match?
The fourth argument decides how strictly Excel compares. With FALSE or 0, Excel only looks for the exact value. With TRUE or 1, Excel takes the next smaller value. According to Microsoft, this approximate match requires a first column sorted in ascending order.
If you leave out the argument, Excel assumes TRUE. This is a trap. With unsorted item numbers, the formula may then return a wrong price without an error message. For lookup tables with numbers or names, FALSE therefore always belongs at the end.
The approximate match still has its place. It suits tiers, such as discount levels by order value. The table shows sample data:
Order value from | Discount |
|---|---|
€0 | 0 % |
€500 | 3 % |
€1,000 | 5 % |
For an order value of €750, TRUE finds the €500 row and returns a 3 percent discount.
Why does Excel show #N/A?
#N/A means "not available". Excel did not find the lookup value in the first column. In its guide to the #N/A error, Microsoft lists several typical causes:
Value missing: The item number is not in the price list.
Data type differs: One list stores 100 as a number, the other as text.
Spaces get in the way: An invisible space prevents the match. The TRIM function removes it.
Match mode does not fit: TRUE with unsorted data returns errors or wrong values.
If a value is expected to be missing, catch the error. IFERROR then shows your own text instead of #N/A:
=IFERROR(VLOOKUP(A2,Prices!A2:C4,3,FALSE),"not listed")
Only use IFERROR once the formula is definitely correct. Otherwise it hides real errors. Also watch out for duplicate entries in the lookup column. VLOOKUP then only returns the first match. Our article on how to find and remove duplicates in Excel shows how to track down such duplicates.
When is XLOOKUP better?
XLOOKUP is the successor to VLOOKUP and usually the better choice. Microsoft itself recommends trying the new function on the VLOOKUP help page. The differences at a glance:
Feature | VLOOKUP | XLOOKUP |
|---|---|---|
Position of the lookup column | must be on the left | anywhere |
Default match | approximate (TRUE) | exact |
Result column | by column number | as its own range |
Text if not found | only with IFERROR | its own argument |
Availability | also Excel 2016 and 2019 | Excel 2021, 2024 and Microsoft 365 |
The Microsoft help on XLOOKUP gives this syntax:
=XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode])
If colleagues still use Excel 2016 or 2019, VLOOKUP remains the safe choice. According to a note on the same help page, XLOOKUP is missing in these versions. A formula with XLOOKUP shows an error there. A detailed guide follows in our article XLOOKUP in Excel: the modern alternative to VLOOKUP.
Your next step
Open a list where you transfer values by hand today. Build a first VLOOKUP formula there with FALSE at the end and drag it down. Then combine the lookup field with a selection list so nobody mistypes item numbers. You find the guide in the article Create a drop-down list in Excel (it takes less than five minutes).
Frequently asked questions
What does the V in VLOOKUP mean?
The V stands for vertical. Excel searches a column from top to bottom. The counterpart HLOOKUP searches horizontally in a row.
Can VLOOKUP search to the left?
No. The lookup column must be the first column of the table_array. Only XLOOKUP or the combination of INDEX and MATCH reaches results to the left of it.
Does VLOOKUP work across several worksheets?
Yes. The table_array can be on another sheet, as in the example above. If your team edits the files together, a fixed storage location helps. Our article SharePoint explained simply covers how libraries and permissions work.
Why does VLOOKUP return a wrong value?
Usually FALSE is missing as the last argument. Then Excel searches approximately and misses with unsorted data. Also check the column index and duplicate entries.
VLOOKUP or pivot table?
They solve different tasks. VLOOKUP fetches individual values from another table. A pivot table summarizes large amounts of data. Read more in the article Pivot table in Excel: analyze data in minutes.