VLOOKUP Formula Explained: Syntax, Examples & Fixes

Formulas & functions · Updated November 23, 2026

The core formula is =VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup]). In plain terms, it searches for a value in the first column of a table and returns a matching value from a column you specify to the right. For example, =VLOOKUP("A-101", A2:C10, 3, FALSE) looks for “A-101” in A2:A10 and returns the value from column C of the same row.

What VLOOKUP Actually Does

VLOOKUP stands for “Vertical Lookup.” It scans down the first column of a range (the table_array) until it finds the lookup_value, then moves horizontally to the column number you request (col_index_num) and returns that cell’s value. The function works only when the lookup column is to the left of the return column—it cannot look to its left. This is a common limitation that leads many users to switch to INDEX/MATCH or XLOOKUP.

Breaking Down the Arguments

  • lookup_value – The value to find. It can be a number, text, or a cell reference. For text, use quotes: "Product".
  • table_array – The range that contains both the lookup column and the return column. Example: A2:D100.
  • col_index_num – The column number in the table_array from which to return a value. Column A is 1, B is 2, etc.
  • range_lookup – Optional. Use FALSE for an exact match (recommended) or TRUE (or omit) for an approximate match, which requires the first column to be sorted.

Exact vs. Approximate Match: Which One to Use?

For most real-world tasks, use FALSE for an exact match. This ensures you get the row where the lookup value matches precisely, and it does not require sorting. The approximate match (TRUE) is designed for finding the closest match, like looking up a tax rate from a bracket table. In that case, the first column must be sorted in ascending order, and VLOOKUP returns the largest value that is less than or equal to the lookup value. Example: to find a tax rate for income 45,000 from a bracket table in A1:B10, =VLOOKUP(45000, A1:B10, 2, TRUE) returns the rate from the row where A is the largest value ≤ 45,000.

Common Errors and How to Fix Them

  • #N/A – The lookup value is not found. Check for typos, extra spaces, or that the lookup column is actually the first column of the table_array.
  • #REF! – The col_index_num is greater than the number of columns in table_array. Count columns in your range.
  • #VALUE! – col_index_num is less than 1 or not numeric.
  • Incorrect results with TRUE – The first column is not sorted ascending. Sort it or switch to FALSE.

VLOOKUP vs. INDEX/MATCH vs. XLOOKUP

VLOOKUP is simple but has limits: it cannot look to the left, it breaks if you insert a column in the table, and it only returns one value. INDEX/MATCH is more flexible: =INDEX(return_range, MATCH(lookup_value, lookup_range, 0)) can look left and is not affected by column inserts. XLOOKUP, available in Excel 2021 and Microsoft 365, is the modern replacement: =XLOOKUP(lookup_value, lookup_range, return_range) and it can return multiple values, handle errors, and search from the bottom. For new workbooks, XLOOKUP is often the best choice.

Real-World Example with Data

Assume you have a product list in A2:C10: A contains Product IDs, B contains Product Names, C contains Prices. To get the price for product “P-203”, enter:

=VLOOKUP("P-203", A2:C10, 3, FALSE)

This returns the price from column C for the row where A equals “P-203”. If the price is $25.00, the formula returns 25. If you want to copy the formula down a column, use a cell reference for the lookup value, e.g., =VLOOKUP(E2, A2:C10, 3, FALSE) where E2 contains the product ID.

Frequently Asked Questions

Why does VLOOKUP return #N/A even though the value exists? The most common cause is invisible characters or spaces. For example, if the lookup value is a number stored as text, or the table has trailing spaces, VLOOKUP won’t match. Use the TRIM function to clean data: =VLOOKUP(TRIM(A2), table, col, FALSE).

Can VLOOKUP return a value from a column to the left? No. VLOOKUP only looks right. Use INDEX/MATCH or XLOOKUP instead. For instance, =INDEX(A2:A10, MATCH(C2, B2:B10, 0)) finds a value in B and returns the corresponding value from A.

How do I use VLOOKUP with wildcards? Use the asterisk (*) and question mark (?) in the lookup_value when using FALSE. For example, =VLOOKUP("A*", A2:B10, 2, FALSE) finds the first value in A that starts with “A”. The tilde (~) escapes the wildcard if you need a literal asterisk.

Does VLOOKUP work in Google Sheets? Yes, the syntax is identical. In Google Sheets, you can also use XLOOKUP if you have the newer version. The behavior is the same, but Google Sheets may handle array formulas differently.

What does the fourth argument (range_lookup) do if I omit it? It defaults to TRUE (approximate match). This can cause unexpected results if your data isn’t sorted. Always specify FALSE for exact matches to avoid surprises.

Tips for Reliable VLOOKUP Usage

  • Always specify FALSE for exact matches—this prevents silent errors.
  • Use absolute references (like $A$2:$C$10) when copying the formula to avoid shifting the table range.
  • Keep the table_array small to improve performance, especially in large workbooks.
  • If you insert a column inside the table_array, the col_index_num will shift and return the wrong column. Consider using XLOOKUP or INDEX/MATCH to avoid this.

Related

Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.

More in Formulas & functions

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.