Lookupmedium
VLOOKUP()
Vertical lookup. Searches the first column of a range and returns a value from a specified column.
Syntax
fx
=VLOOKUP(search_key, range, index, [is_sorted])
Arguments
Try it
F2
→
14,200
Sample data · sales.csv
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Company | Region | Quarter | Revenue |
| 2 | Acme Co | West | Q1 | 18,400 |
| 3 | Acme Co | West | Q2 | 22,100 |
| 4 | Acme Co | West | Q3 | 31,700 |
| 5 | Acme Co | West | Q4 | 48,200 |
| 6 | Globex | East | Q1 | 14,200 |
| 7 | Globex | East | Q2 | 19,800 |
| 8 | Globex | East | Q3 | 23,400 |
Common pitfalls
- The lookup column must be the first column of
range. To search a column to the right of the result, useXLOOKUPorINDEX/MATCH. - Pass
FALSE(or0) as the fourth arg unless your data is sorted ascending. Approximate match silently returns the wrong row. - If the lookup value isn't found you'll get
#N/A. Wrap inIFERRORto substitute a default.
Related formulas
Used by
XLOOKUP()
The modern replacement for VLOOKUP. Searches any column, returns from any column.
INDEX()
Returns the content of a cell at a given row and column in a range.
MATCH()
Returns the relative position of a value in a range.
IFNA()
Returns the first argument unless it is the #N/A error, in which case returns the second.