How to Use VLOOKUP in Excel: Step-by-Step

Formulas & functions · Updated November 23, 2026

VLOOKUP is Excel’s classic lookup function that searches for a value in the first column of a table and returns a corresponding value from another column in the same row. It’s ideal for pulling prices, names, or statuses from a list. The basic syntax is =VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup]). For example, =VLOOKUP("Apple", A2:C10, 2, FALSE) searches for “Apple” in A2:A10 and returns the value in column B of that row. This guide walks you through a real example, common mistakes, and fixes.

What You’ll Need

  • Microsoft Excel (Microsoft 365, Excel 2021, 2019, or 2016; steps are similar on Mac and Excel for the web unless noted).
  • A worksheet with two ranges: the lookup table (where you search) and a place to put the formula.
  • Your lookup value must be in the first column of the table you search. If not, VLOOKUP won’t work—use INDEX/MATCH or XLOOKUP instead.

Step-by-Step

We’ll use a product list: cells A2:C10 contain Product (column A), Price (column B), and Stock (column C). You want to find the price of a product typed into cell E2.

  1. Prepare your data. Ensure the lookup column (Product) is the leftmost column of the table range. The table can have headers, but they are not required.
  2. Select the cell for the result. Click cell F2 (or any empty cell) where you want the price to appear.
  3. Start the formula. Type =VLOOKUP(. Excel will show a tooltip with the arguments.
  4. Add the lookup value. Click cell E2 (which contains the product name you’re searching for), or type E2. You can also type a literal value like "Apple" (with quotes).
  5. Add the table array. Type a comma, then select the range A2:C10. This is the entire table, including the lookup column and the column you want to return. Use absolute references ($A$2:$C$10) if you plan to copy the formula down.
  6. Add the column index number. Type a comma, then enter 2 because Price is the second column in the range A2:C10. If you wanted Stock, you’d use 3.
  7. Set the range lookup. Type a comma, then enter FALSE for an exact match. This is almost always what you want. (If you enter TRUE or omit it, VLOOKUP assumes approximate match, which can return wrong results if your data isn’t sorted.)
  8. Close and press Enter. Type a closing parenthesis ) and press Enter. The formula =VLOOKUP(E2, A2:C10, 2, FALSE) returns the price of the product in E2.
  9. Copy the formula down (optional). To apply to multiple lookup values in E2:E10, drag the fill handle (the small square at the bottom-right of the cell) down. If the table range isn’t absolute, it will shift—so use $A$2:$C$10.

If you’re using Excel for the web or Mac, the steps are identical. The only difference is that on Mac, you use Command instead of Ctrl for shortcuts, but no formula changes.

Common Mistakes

  • Lookup value not in the first column. VLOOKUP can only search the leftmost column of the table range. If your ID is in column B and names in column A, VLOOKUP will fail. Use =INDEX(A:A, MATCH(D2, B:B, 0)) instead.
  • Using approximate match by mistake. If you omit the fourth argument or type TRUE, VLOOKUP assumes your data is sorted and returns the closest match. For exact IDs or names, always use FALSE.
  • Wrong column index number. Counting columns incorrectly is common. Double-check: column A=1, B=2, C=3, etc., within the table array.
  • Not using absolute references when copying. If you copy the formula down and the table range shifts, you’ll get errors. Use $ to lock the range.
  • Leading or trailing spaces. If the lookup value has extra spaces (e.g., “Apple ” instead of “Apple”), VLOOKUP won’t match. Use =TRIM() on the data.

Tips

  • Use XLOOKUP instead if you have Excel 2021 or Microsoft 365. XLOOKUP is more flexible: it can search any column, return from any column, and handle errors easily. The syntax is =XLOOKUP(lookup_value, lookup_array, return_array).
  • Sort your data for approximate match. If you genuinely need an approximate match (e.g., tax brackets), sort the lookup column ascending, and use TRUE or omit the last argument.
  • Wrap with IFERROR for clean output. Use =IFERROR(VLOOKUP(E2, A2:C10, 2, FALSE), "Not found") to avoid ugly #N/A errors.
  • Use named ranges. Select A2:C10, go to Formulas > Define Name, and name it “ProductTable”. Then use =VLOOKUP(E2, ProductTable, 2, FALSE)—easier to read.
  • Check for duplicates. VLOOKUP returns the first match. If your lookup column has duplicate values, you’ll get the first one. Use UNIQUE or remove duplicates first.

Troubleshooting

#N/A error: This means the lookup value isn’t found. Check for typos, extra spaces, or number formatting (text vs. number). Use =TRIM() and ensure both columns are the same data type.

#REF! error: The column index number is larger than the number of columns in the table array. For example, if your range is A2:C10 (3 columns) and you ask for 4, you get #REF!. Adjust the index.

#VALUE! error: Often caused by a non-numeric column index or a range that isn’t valid. Make sure the col_index_num is a number, not text.

Returns wrong value but no error: This usually happens with approximate match (TRUE) on unsorted data. Change to FALSE.

Formula works but returns blank: If the cell appears blank, the lookup value might be an empty string. Check the source cell. Also, if the return column contains empty cells, VLOOKUP returns 0 (not blank). Use =IF(VLOOKUP(...)="", "", VLOOKUP(...)) if needed.

Slow on large data: VLOOKUP is slower than XLOOKUP or INDEX/MATCH on huge datasets. Consider converting your data to an Excel Table (Ctrl+T) and using structured references, or switch to XLOOKUP.

Frequently Asked Questions

Q: Can VLOOKUP search from right to left?
No. VLOOKUP only looks to the right. To search from the right, use INDEX/MATCH or XLOOKUP.

Q: What’s the difference between TRUE and FALSE in VLOOKUP?
FALSE requires an exact match. TRUE finds the closest match that is less than or equal to the lookup value, and requires the first column to be sorted in ascending order.

Q: How do I return a value from a column to the left of the lookup column?
You can’t with VLOOKUP. Use =INDEX(A:A, MATCH(D2, B:B, 0)) to return from column A when searching column B.

Q: Why does VLOOKUP return #N/A even though the value exists?
Check for extra spaces, non-printing characters, or number stored as text. Use =TRIM() and =CLEAN(), and ensure both columns are formatted the same (e.g., both numbers).

Q: Can VLOOKUP handle case-sensitive matches?
No, VLOOKUP is not case-sensitive. For case-sensitive lookup, use =INDEX(return_range, MATCH(TRUE, EXACT(lookup_range, lookup_value), 0)) entered as an array formula (Ctrl+Shift+Enter in older Excel).

Q: Is VLOOKUP better than XLOOKUP?
For new workbooks, XLOOKUP is better: it’s simpler, faster, and more flexible. VLOOKUP remains useful for compatibility with older files or when you need to work in versions before Excel 2021.

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.