DataGenius BI ← All Guides

Guide • Updated October 2026

VLOOKUP Explained in Plain English, With an Example

VLOOKUP has a reputation for being hard, but the idea is simple. Excel looks for something in the first column of a table, then reads across the same row and hands you back a value. It is like finding a student's roll number in a list and then reading across to their marks.

The formula in four parts

=VLOOKUP(lookup_value, table_array, col_index_num, FALSE)

A worked example

Say your orders sheet has a product ID in column A. A second sheet called Prices has IDs in column A, product names in B and prices in C. To pull the price into the orders sheet, type this in B2:

=VLOOKUP(A2, Prices!A:C, 3, FALSE)

Excel finds the ID from A2 in the first column of Prices, then returns the value from the third column of that row. Drag the formula down and every order gets its price.

Why you get #N/A

If you would rather show a friendly message than an error, wrap the formula in IFERROR:

=IFERROR(VLOOKUP(A2, Prices!A:C, 3, FALSE), "Not found")

Two limits of VLOOKUP

VLOOKUP can only return values from columns to the right of the search column. It can also break when someone inserts a column inside your table, because the column number no longer points where you expect.

XLOOKUP (Excel 365 and Excel 2021) fixes both by taking the lookup column and the return column separately:

=XLOOKUP(A2, Prices!A:A, Prices!C:C, "Not found")

INDEX with MATCH does the same job in every version of Excel and can look in any direction.

Where DataGenius BI fits

DataGenius BI does not look up values between two sheets, so you would still use Excel for that. What it helps with is the part that usually makes VLOOKUP fail: messy data. Upload your sheet, check the data quality score, and let the Data Cleaning Center trim stray spaces and remove duplicate rows before you run your formulas. Cleaner keys mean far fewer #N/A errors.

Common questions

Why do I get #N/A?

The lookup value is not in the first column of your range, or it differs by a space, a capital letter or text versus number. Clean both columns.

Should I use XLOOKUP instead?

If you have Excel 365 or Excel 2021, yes. XLOOKUP can look to the left and does not break when columns are added.

Does VLOOKUP find more than one match?

No, only the first one. For all matches, use FILTER or a pivot table.

Related guides

Got a messy Excel or CSV file?
Check its quality score and clean it in your browser. Free, no signup, and your file is never uploaded.
Try DataGenius BI