VLOOKUP finds a value in the first column of a table and returns a value from another column in the same row. To use it, type =VLOOKUP(lookup_value, table_array, col_index_num, FALSE) into a cell, where lookup_value is what you want to find, table_array is the range containing your data, col_index_num is the column number to return (counting from the first column of the range), and FALSE forces an exact match. That single formula is the core of almost every VLOOKUP task; the rest of this guide covers how to build it correctly, what breaks it, and how to fix it.
What You'll Need
- Microsoft Excel (desktop, web, or mobile). Menu labels can differ slightly by version, device, and region.
- A table of data with the lookup column on the left and the return column to its right.
- Basic familiarity with cell references (e.g., A2, B2:D100).
Step-by-Step
- Organize your data. Place the column you will search in the leftmost position of your table range. VLOOKUP only looks to the right; it cannot return a value from a column to the left of the lookup column. If your data is arranged differently, either rearrange it or use INDEX/MATCH or XLOOKUP instead.
- Select the cell for the result. Click the cell where you want the returned value to appear.
- Start the formula. Type
=VLOOKUP(and Excel will show the argument names as a tooltip. - Enter the lookup value. This is the value you want to find, such as a product ID or employee name. You can type it directly (e.g.,
"A100") or reference a cell (e.g.,A2). Referencing a cell is more flexible because you can change the value without editing the formula. - Enter the table array. Select the range that contains your data, including the lookup column and the return column. For example,
B2:D100. Use absolute references (e.g.,$B$2:$D$100) if you plan to copy the formula down or across, so the range does not shift. - Enter the column index number. Count the columns in your table array from the left, starting at 1. If your table array is B2:D100 and you want a value from column D, the index is 3 (B=1, C=2, D=3).
- Enter the range lookup argument. Type
FALSE(or0) for an exact match. UseTRUEonly when your data is sorted ascending and you need an approximate match, such as for tax brackets or grade thresholds. For most everyday lookups, use FALSE. - Close the parenthesis and press Enter. Excel returns the matching value or an error if no match is found.
- Copy the formula if needed. Drag the fill handle down to apply the formula to other rows. If you used absolute references for the table array, the range stays fixed while the lookup value changes per row.
Common Mistakes
- Lookup column not on the left. VLOOKUP cannot look left. If the return column is to the left of the lookup column, you will get incorrect results or errors. Rearrange your data or switch to INDEX/MATCH or XLOOKUP.
- Forgetting FALSE for exact match. Omitting the fourth argument defaults to TRUE (approximate match), which can return wrong values if the data is not sorted. Always specify FALSE for exact matches.
- Mismatched data types. Numbers stored as text (e.g., "1001" vs 1001) will not match. Check formatting and use VALUE or TEXT functions to convert if necessary.
- Incorrect column index. Counting columns from the worksheet instead of from the table array leads to wrong results. Count from the first column of your table_array.
- Relative references when copying. If the table array shifts when you copy the formula, you will get wrong results or #REF! errors. Use absolute references (e.g.,
$A$2:$D$100). - Hidden or filtered rows. VLOOKUP includes hidden rows in its search. If you need to exclude them, consider using FILTER or other functions.
Tips
- Use a named range for your table array to make formulas easier to read and maintain. Select the range, then type a name in the Name Box (left of the formula bar) and press Enter.
- Wrap VLOOKUP in IFERROR to display a friendly message instead of #N/A:
=IFERROR(VLOOKUP(...), "Not found"). - For lookups to the left or more flexibility, consider INDEX/MATCH or XLOOKUP (available in Excel for Microsoft 365 and Excel 2021 and later). XLOOKUP is not available in older versions.
- Keep your data clean: remove leading/trailing spaces with TRIM, and ensure consistent formatting.
- Use Excel Tables (Insert > Table) so ranges expand automatically when you add data.
Troubleshooting
If VLOOKUP returns #N/A, the lookup value was not found. Check for typos, extra spaces, or mismatched data types. Use =TRIM(A2) to clean text, and verify that numbers are not stored as text (a green triangle in the cell often indicates this). If you see #REF!, the column index number is greater than the number of columns in your table array. If you get a wrong result, ensure the fourth argument is FALSE and that the lookup column is the first column in your range. If the formula returns the lookup value itself, the column index is 1. If you get #VALUE!, an argument is the wrong type—check that the column index is a number. For persistent issues, use the Evaluate Formula tool (Formulas > Evaluate Formula) to step through the calculation.
Frequently Asked Questions
Can VLOOKUP look to the left?
No. VLOOKUP only searches the first column of the table array and returns values from columns to the right. Use INDEX/MATCH or XLOOKUP for left lookups.
What does the fourth argument do?
It controls match type: FALSE (or 0) for exact match, TRUE (or 1) for approximate match. Use FALSE for most tasks.
Why do I get #N/A even though the value exists?
Common causes are extra spaces, numbers stored as text, or the value being outside the table array. Check formatting and use TRIM or VALUE to clean data.
Can I use VLOOKUP across multiple sheets?
Yes. Reference the sheet name in the table array, e.g., Sheet2!$A$2:$D$100. If the sheet name contains spaces, enclose it in single quotes: 'Sheet 2'!$A$2:$D$100.
Is VLOOKUP case-sensitive?
No. VLOOKUP is not case-sensitive. For case-sensitive lookups, use INDEX/MATCH with EXACT or XLOOKUP with a case-sensitive option if available.
What is the maximum column index I can use?
The column index must be between 1 and the total number of columns in your table array. If you specify a number larger than the array width, you get #REF!.