The VLOOKUP guide
=VLOOKUP(D2, A2:B6, 2, FALSE) finds the product in D2 in the first column of A2:B6 and returns the price from column 2 of that row. FALSE means exact match only.
What VLOOKUP does
VLOOKUP finds a value in the first column of a table and returns something from the same row. =VLOOKUP(D2, A2:B6, 2, FALSE) means: find what's in D2 in the first column of A2:B6, and return the value from column 2 of that table.
Syntax
=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
- lookup_value: what you're looking for. Point at a cell, don't type it in.
- table_array: the table. The value you search for must be in its first column.
- col_index_num: which column of the table to return, counting from 1. Column 1 is the lookup column itself.
- range_lookup: use
FALSEfor an exact match. Almost always what you want.
Why FALSE matters
If you leave the last argument out, VLOOKUP does an approximate match. That's meant for sorted number bands like grade scales and tax brackets, which have their own challenge. On an unsorted list of names it can return the wrong row without any error, which is the worst kind of mistake. Write FALSE.
When VLOOKUP can't do it
VLOOKUP only returns columns to the right of the lookup column. To return a column on the left, use XLOOKUP (Excel 365 and 2021 or later) or INDEX and MATCH (every version).
Common mistakes
- #N/A: the value wasn't found. Check spelling and stray spaces. The #N/A mistake hunt walks through the usual causes.
- Typing the name into the formula.
=VLOOKUP("Cheese", …)only ever finds cheese. Point at D2 so it works for any product. - Counting the column number from the sheet. It counts from the first column of the table: in A2:B6, B is column 2.
- A table that moves when copied. Lock it as
$A$2:$B$6before filling the formula down.
FAQ
- How do I use VLOOKUP in Excel?
- Write =VLOOKUP(value, table, column number, FALSE). For example =VLOOKUP(D2,A2:B6,2,FALSE) finds D2 in column A and returns the matching value from column B.
- Why does VLOOKUP return #N/A?
- The lookup value was not found in the first column of the table. Check spelling, extra spaces and that you used FALSE for an exact match.
- What does FALSE mean in VLOOKUP?
- FALSE asks for an exact match. Without it, VLOOKUP assumes the first column is sorted and returns the closest smaller value, which is wrong for names and codes.
- Should I use VLOOKUP or XLOOKUP?
- If you have Excel 365 or 2021, XLOOKUP is simpler and safer. VLOOKUP works in every version, so it is still worth knowing for interviews and older files.
This task is in the timed office and admin and quick quiz practice tests. What Excel interview tests check








































































