Succeeded by XLOOKUP
Use XLOOKUP, unless the file has to work in older Excel.
VLOOKUP has had a long career and it still works. But since Excel 2021 there is a successor that does the same job with less counting and fewer silent mistakes: XLOOKUP.
Which one should I use?
Why XLOOKUP is better
- It looks to the left too. No more moving columns so the key sits on the far left.
- No column number to count. You point at the column you want back, so inserting a column does not break the formula.
- Exact match is the default. Forget the FALSE at the end of VLOOKUP and it returns a wrong value without a warning; XLOOKUP does not.
- A built-in message for missing values, without wrapping the formula in IFERROR.
- It can search from the bottom up, to find the latest posting.
VLOOKUP (every version)
=VLOOKUP(E2,A2:C6, 3, FALSE)
=VLOOKUP(E2;A2:C6; 3; FALSE)
VLOOKUP VERT.ZOEKENOlder vertical lookup; XLOOKUP replaces it.Read more about VLOOKUPPress Escape to close
lookup_valueThe value to find in the first column of the table.Press Escape to close
table_arrayThe table; the lookup column must be its first column.Press Escape to close
col_index_numWhich column of the table holds the answer, counting from 1.Press Escape to close
range_lookup (optional)FALSE for an exact match; TRUE or omitted for approximate.Press Escape to close
XLOOKUP (Excel 2021 and Microsoft 365)
=XLOOKUP(E2,A2:A6, C2:C6)
=XLOOKUP(E2;A2:A6; C2:C6)
XLOOKUP X.ZOEKENFinds a value and returns the matching item from another range.Read more about XLOOKUPPress Escape to close
lookup_valueThe value you are looking for.Press Escape to close
lookup_arrayThe one column or row to search in.Press Escape to close
return_arrayThe range the answer comes from.Press Escape to close
Need VLOOKUP for an older file?
The full VLOOKUP page has the syntax, the arguments, the common mistakes and four worked examples, for files that have to work in Excel 2019 or older.
Open the full VLOOKUP page