Lookups · About 5 minutes
Find a value with VLOOKUP
VLOOKUP finds a value in the first column of a table, then brings back something from the same row. It is one of the most asked-about formulas in interview tests.
It has four parts inside the parentheses: what to find, the table, which column to bring back (counting from 1 at the table's first column), and FALSE. Each part is called an argument.
=VLOOKUP( reads as "find B8 in the first column of A2:D6, and bring back column 4 from that row, exact match only". Without FALSE, VLOOKUP settles for a close match and can bring back the wrong row.
How VLOOKUP searches
Exercise 1 of 3 · Worked example
In B9, find the salary of the employee whose ID is in B8. Type =VLOOKUP( B8, A2:D6, 4, FALSE) and press Enter.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Emp ID | Name | Dept | Salary ($) |
| 2 | E103 | Priya Nair | Sales | 58,000 |
| 3 | E101 | Marcus Bell | Accounts | 64,000 |
| 4 | E105 | Fatima Shaikh | HR | 52,000 |
| 5 | E102 | Ravi Kumar | IT | 76,000 |
| 6 | E104 | Sarah Kim | Operations | 69,000 |
| 7 | ||||
| 8 | Emp ID | E104 | ||
| 9 | Salary ($) | (answer cell) |
Questions people ask
What does FALSE mean in VLOOKUP?
FALSE asks for an exact match. Without it, VLOOKUP can return a nearby row instead, which is wrong for IDs and names.
How do I VLOOKUP from another sheet?
Point the table part at the other sheet: =VLOOKUP(. If the sheet name has spaces, use quotes: 'Price list'!A2:C50.
Why does my VLOOKUP return #N/A?
The value wasn't found. Common causes: FALSE is missing, extra spaces, a number stored as text, or the value isn't in the table's first column.
Does VLOOKUP work in Google Sheets?
Yes, with the same four parts in the same order.
Should I learn VLOOKUP or XLOOKUP first?
VLOOKUP first: it's still in countless work files and tests. XLOOKUP is easier once you know what a lookup does, but Excel 2019 and older don't have it.