VLOOKUP searches the first column of a range for a value you supply, then returns a value from a column you specify in the same row. For a reliable exact match, set the fourth argument to FALSE. Most wrong results come from three habits: leaving the match type on its default, hardcoding a column number that breaks when someone inserts a column, and assuming the first match is the only match.
The function works the same way in Excel and Google Sheets. The rest of this guide covers how it works, how to build a formula, how to choose between VLOOKUP and its alternatives, and where it fails.
Terms and Overview
1.1 What VLOOKUP Does
VLOOKUP reads a table from left to right. It takes the value in the leftmost column, finds the row where that value appears, and returns the value from another column in that row. The name stands for “vertical lookup”, because it searches down a column rather than across a row.
It is built for a specific shape of data: a key column on the left, and the information you want to the right of it. A product code sits in column A, and the price sits in column C. If your data is laid out differently, VLOOKUP cannot reach the answer without help.
1.2 Glossary of Terms
- Lookup value: The item you are searching for, such as a product code, employee number or date. It is usually a cell reference.
- Table array: The range that contains both the lookup column and the return column, such as
A2:C50. - Col_index_num: The position of the return column inside the table array, counted from the left. The lookup column is 1.
- Range_lookup: The fourth argument, which sets the match type. FALSE (or 0) requests an exact match. TRUE (or 1, or omitted) requests an approximate match.
- Exact match: A lookup that returns a row only when the value is identical to the lookup value.
- Approximate match: A lookup that returns the largest value that is less than or equal to the lookup value. It requires the lookup column to be sorted in ascending order.
- #N/A: The error shown when no matching row is found under an exact match.
- #REF!: The error shown when the column index is larger than the number of columns in the table array.

Skip the setup
Binsight Inventory Spreadsheet
Stock in, stock out and reorder alerts that turn red before you run out. Uses lookups and conditional formatting.
Syntax and Arguments
2.1 Argument Reference
The full syntax is:
=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
Each argument does one job:
- lookup_value is the cell or value to search for. Point to a cell, such as
A2, rather than typing the value into the formula. That way the formula can be copied down the sheet. - table_array is the range to search. Anchor it with dollar signs, such as
$A$2:$C$50, so the range does not shift when you copy the formula. - col_index_num is a whole number. A value of 1 returns the lookup column itself, 2 returns the next column to the right, and so on. A value of 3 is the most common when the answer is two columns away from the key.
- range_lookup should be FALSE for almost every business lookup. Omitting it is the single most frequent source of silent errors.
2.2 Separators and Regional Settings
Google Sheets uses commas between arguments in all locales. Excel uses commas in English-language settings, but many European installations use semicolons. If you copy a formula and see an error straight away, check the list separator in your system settings before you debug the formula itself.
Worked Example: Price Lookup
3.1 The Source Data
Suppose you run a small shop and keep a price list on a sheet called Prices. The data sits in rows 2 to 7, with headings in row 1:
| Column | Heading | Example entry |
|---|---|---|
| A | SKU | KT-204 |
| B | Product | Kettle |
| C | Unit price (GBP) | 24.99 |
The other rows are TS-110 (Toaster, 31.50), BL-330 (Blender, 46.00), MX-512 (Mixer, 58.75), IR-077 (Iron, 27.20) and FN-049 (Fan, 19.95).
On a second sheet called Orders, column A holds the SKU that a customer ordered, and column B holds the quantity.
3.2 Writing the Formula
In Orders!C2, enter:
=VLOOKUP(A2,Prices!$A$2:$C$7,3,FALSE)
The formula takes the SKU in A2, searches the first column of the price list, and returns the value from the third column, which is the unit price. The FALSE argument forces an exact match. If A2 contains KT-204, the result is 24.99.
3.3 Copying the Formula and Fixing References
Copy the formula down to C3 and C4. Because the table array uses absolute references ($A$2:$C$7), each copy searches the same range. The lookup value (A2) is relative, so it moves to A3 and A4 as expected.
Then add a line total in column D. Enter =B2*C2 and copy it down. This keeps the workflow to one lookup per row, with the arithmetic kept separate from the search.
3.4 Testing the Result
Test the formula with three cases before you trust it:
- A valid SKU that is in the list, such as
BL-330. The expected result is 46.00. - A SKU with a typo, such as
KT-240. The result is #N/A, which is correct, because the code does not exist. - A SKU with a trailing space, such as
KT-204(note the space). The result is also #N/A, even though the code looks correct. Module 6 explains why.
To handle the missing-code case cleanly, wrap the formula in IFNA:
=IFNA(VLOOKUP(A2,Prices!$A$2:$C$7,3,FALSE),"Not in price list")
IFNA only catches the #N/A error, so other problems, such as a broken range, still show up.
Approximate Match for Bands and Tiers
4.1 When TRUE Is the Correct Setting
Approximate match is useful when you need to place a number into a band. Examples include tax brackets, commission tiers, shipping weight categories and age-based pricing. In these cases you do not want an exact hit. You want the band that the number falls into.
The lookup column must be sorted in ascending order. VLOOKUP assumes the order and uses a shortcut that stops early, so unsorted data gives wrong answers without any warning.
4.2 Commission Tier Example
Suppose a sales team earns commission on monthly sales. The rate table sits in E2:F4:
| Monthly sales from (GBP) | Commission rate |
|---|---|
| 0 | 2.0% |
| 10,000 | 3.0% |
| 25,000 | 4.5% |
Enter the monthly sales in B2, then use:
=VLOOKUP(B2,$E$2:$F$4,2,TRUE)
A salesperson with 18,400 in sales falls in the 10,000 band, so the formula returns 0.03. Commission is then =B2*C2, which gives 552.00. A salesperson with 9,999.99 falls in the 0 band and receives 2.0%. The boundary matters, so check the first value in each band against the rules you were given.

Ready-made template
Paidmark Invoice and Estimate Kit
Invoices, estimates, receipts and a payment tracker that flags what’s overdue, all in one Excel file.
Choosing Between VLOOKUP and Alternatives
5.1 Comparison Matrix
The main options are VLOOKUP, XLOOKUP, INDEX with MATCH, and FILTER. The table compares them across the attributes that most often decide the choice.
| Attribute | VLOOKUP | XLOOKUP | INDEX with MATCH | FILTER |
|---|---|---|---|---|
| Search direction | Left to right only | Any direction | Any direction | Returns rows matching a condition |
| Default match type | Approximate, unless FALSE is given | Exact | Depends on MATCH argument, so set 0 | Not applicable |
| Survives column insertion | No, if the index number is hardcoded | Yes | Yes | Yes |
| Returns several rows | No | Can spill when given an array | Not directly | Yes |
| Available in Excel 2019 | Yes | No | Yes | No |
| Available in Excel 2021 or Excel 365 | Yes | Yes | Yes | Yes |
| Available in Google Sheets | Yes | Yes | Yes | Yes |
| Ease of reading for new users | High | High | Moderate | Moderate |
Check which version of Excel your colleagues use before you choose XLOOKUP or FILTER. A workbook built with them will show errors in Excel 2019.
5.2 Costs and Trade-Offs
Each option costs something different.
VLOOKUP is quick to write and understood by most people who work with spreadsheets. Its weaknesses are structural. It cannot look left, and its column index is a fixed number that does not update when the table changes. If someone inserts a column into the price list, every VLOOKUP that points to column 3 now returns the wrong field, and nothing signals the error.
XLOOKUP removes most of those weaknesses. It takes a separate return array, so the return column is referenced directly, and it defaults to exact matching. The trade-off is compatibility. A file that uses XLOOKUP will not calculate in Excel 2019 or earlier, which matters if the file is shared outside your team.
INDEX with MATCH is the older workaround that many experienced users still prefer. It works in every version and survives column changes. It is harder to read, though, and it asks the author to remember to set the MATCH type to 0.
FILTER returns all matching rows rather than a single value. It is useful for lists, but it is less suitable for a simple price lookup.
5.3 When VLOOKUP Is Still the Right Tool
VLOOKUP is a sound choice when the table is small, stable and fully within your control. A single-sheet lookup of around a few hundred rows, for a report that one person maintains, rarely justifies more complex syntax. It is also the natural choice when the file must work in an older version of Excel, or when the person reading the formula needs to understand it quickly.
Choose VLOOKUP for simplicity and familiarity. Choose XLOOKUP or INDEX with MATCH when the table changes shape, when the lookup must run in more than one direction, or when the file will be maintained for years.
Common Mistakes and How to Fix Them
6.1 Leaving the Match Type Blank
When the fourth argument is omitted, VLOOKUP performs an approximate match. On unsorted data, it returns a value that looks plausible but belongs to a different row. In the price example, searching for MX-512 in an unsorted list could return the price of the row above it.
Fix it by always entering FALSE for exact lookups. Make this a standard part of any template.
6.2 Hardcoding the Column Index
A formula that reads ,3,FALSE) depends on the return column being third from the left. Insert a column in front of the price, and the formula silently returns a different field.
Fix it by using MATCH to find the column number, for example MATCH("Unit price",Prices!$1:$1,0), or by switching to XLOOKUP or INDEX with MATCH. Where the table is stable, add a note beside the formula that records which column it expects.
6.3 Numbers Stored as Text
A product code such as 10452 may be stored as a number in one sheet and as text in another. VLOOKUP treats them as different values, so the result is #N/A even though the code appears to match.
Check the data with =ISTEXT(A2) and =ISNUMBER(A2). Fix the source column with Text to Columns, or wrap the lookup value in VALUE or TEXT so both sides match.
6.4 Leading and Trailing Spaces
Data copied from a web page, an export or a scanner often carries an invisible space. KT-204 (with a trailing space) does not equal KT-204.
Clean the data with TRIM. Use =VLOOKUP(TRIM(A2),...) for the lookup value, and run TRIM over the source column once if the list is large.
6.5 Duplicates
VLOOKUP returns the first matching row it finds. It does not warn you about duplicates. If a customer ID appears twice, one of the two records is effectively hidden.
Check for duplicates before building lookups. In Excel, use Conditional Formatting, or a COUNTIF helper column such as =COUNTIF($A$2:$A$500,A2). A value greater than 1 means the key is not unique.
6.6 Blank Results Showing as Zero
When the matched cell is empty, VLOOKUP returns 0. A missing phone number then appears as 0 in a report, which is misleading.
Fix it by testing the result: =IF(VLOOKUP(...)="","",VLOOKUP(...)), or by using a single lookup in a helper cell and testing that cell.
6.7 Hiding Errors with IFERROR
IFERROR replaces every error with a fallback value. That includes #N/A, but also #REF! and other faults you need to see. A broken range can therefore produce a column of plausible-looking blanks.
Prefer IFNA, which only catches #N/A. Use IFERROR only once the formula is known to be correct.
Decision Rules and Checklist
8.1 Decision Rules
Use these rules to decide quickly:
- If the table is small, stable and fully under your control, use VLOOKUP with FALSE.
- If the table will change shape or must run in any direction, use XLOOKUP in Excel 2021 or Excel 365, or Google Sheets, and INDEX with MATCH where older versions are involved.
- If you are placing numbers into bands, sort the table in ascending order and use TRUE.
- If the file goes to people who may use Excel 2019 or earlier, avoid XLOOKUP and FILTER.
8.2 Pre-Release Checklist
Before a lookup goes into a shared workbook, confirm the following:
- The fourth argument is FALSE for every exact lookup.
- The table array uses absolute references.
- The return column is not hardcoded, or the risk is recorded beside the formula.
- The lookup key is unique in the source table.
- Lookup values and source values share the same data type.
- Spaces are removed with TRIM where the data came from an export.
- A known-missing value returns the intended message, not a blank or zero.
- IFNA handles missing keys, and no IFERROR hides other faults.
- At least one valid lookup and one invalid lookup have been tested.
Run the checklist once for each new template. A lookup that passes it will keep returning the right value after the next person edits the sheet.