Skip to content

Docs · guide

How to use VLOOKUP in Excel: four arguments and the default

By Alberto Gulotta · Updated

How to use VLOOKUP in Excel: type =VLOOKUP( and give it the value to find, the range whose first column holds that value, the number of the column to return, and FALSE for an exact match. Microsoft makes the fourth argument an approximate match, TRUE, when it is left out, and its page opens by suggesting XLOOKUP instead.

VLOOKUP on the pages that document it
WhatWhat the page printsPage read
Syntax VLOOKUP (lookup_value, table_array, col_index_num, [range_lookup]) VLOOKUP function
The value to find Must be in the first column of table_array VLOOKUP function
Fourth argument left out Approximate match, 1/TRUE VLOOKUP function
Applies To Excel for Microsoft 365 and for Mac, Excel 2024 and 2021 and their editions for Mac, Excel 2019, Excel 2016 VLOOKUP function
The tip at the top Try XLOOKUP VLOOKUP function
Google Sheets VLOOKUP(search_key, range, index, [is_sorted]); TRUE when is_sorted is left out Google Docs Editors Help, VLOOKUP
  1. Select the cell for the answer and type =VLOOKUP(. Microsoft’s Example 1 is a picture; its description gives the formula and the result, and it looks up the name Fontana.
  2. Give the value to look up. That is lookup_value, a value or a reference to a cell: in Example 1, B3, and the value VLOOKUP looks for is Fontana.
  3. Give the range, starting at the column that holds that value. That is table_array: in Example 1, B2:E7, whose first column is B. Microsoft’s check: if the lookup value is in cell C2, the range should start with C.
  4. Give the column number and FALSE, and close the bracket. col_index_num counts from 1 at the left of the range, so 2 is column C; FALSE asks for an exact match. The formula is =VLOOKUP(B3,B2:E7,2,FALSE), and Microsoft gives the result as Olivier, from column C.
Drawn four-step flow of VLOOKUP from Microsoft’s Example 1: =VLOOKUP(, B3, B2:E7, 2 and FALSE, then Olivier
Four steps and the result: Microsoft’s Example 1, with FALSE for an exact match. Based on the Microsoft Support page VLOOKUP function, Example 1 as its image description gives it, read in full on October 7, 2026.

The four arguments

The syntax line. Microsoft prints VLOOKUP (lookup_value, table_array, col_index_num, [range_lookup]); the fourth, in square brackets, is optional. Its plain-language version names the same four things: the value to look up, where to look for it, the number of the column holding the value to return, and an approximate or exact match, 1/TRUE or 0/FALSE.

lookup_value, required. The value you want to look up, as a value or as a reference to a cell. It must be in the first column of the range given as table_array: if table_array spans B2:D7, the value must be in column B.

table_array, required. The range in which VLOOKUP searches for the lookup value and the return value, so it has to include both. Microsoft says a named range or a table can be used, and names in place of cell references.

col_index_num, required. The column number that contains the return value, starting with 1 for the left-most column of table_array. Microsoft’s getting-started list: with B2:D11 as the range, B is the first column, C the second, and so on. A number greater than the columns in the range gives #REF!.

range_lookup, optional. 1 or TRUE for an approximate match, 0 or FALSE for an exact one; Microsoft’s examples are =VLOOKUP(90,A1:B100,2,TRUE) and =VLOOKUP("Smith",A1:B100,2,FALSE). Left out, it is approximate: “This is the default method if you don't specify one.”

Exact and approximate match

What approximate means. On Microsoft’s VLOOKUP page, 1/TRUE assumes the first column is sorted, numerically or alphabetically, and searches for the closest value. The sample data on Microsoft’s page about VLOOKUP, INDEX and MATCH shows it: =VLOOKUP(1,A2:C10,2) has no fourth argument, finds the largest value less than or equal to 1 in column A, 0.946, and returns 2.17 from column B. Google’s page describes its approximate search: down the first column until a larger value, then back one row.

When it goes wrong. The Common Problems table on the VLOOKUP page: with TRUE or nothing, and a first column that is not sorted, the return value might be something you do not expect; sort the column or use FALSE. Microsoft’s page on the #N/A error has a fruit list in which TRUE gives #N/A for Banana, which is not in the list, and the wrong price for Pear; with FALSE, Pear gets its price and Banana is still #N/A.

Exact match. 0/FALSE searches for the exact value in the first column and gives #N/A when it is not there. With FALSE and a text value, Microsoft adds, the lookup value can carry wildcards, ? for one character and * for any sequence, with ~ in front of a real question mark or asterisk: =VLOOKUP("Fontan?",B2:E7,2,FALSE).

What the pages advise. Microsoft’s pages do not say it in the same words. The page on the table_array argument: “Most of the time, use False.” The page on VLOOKUP, INDEX and MATCH says that leaving the fourth argument blank, or entering TRUE, “gives you more flexibility”, and its own first example is approximate. The VLOOKUP page gives both values, and its Common Problems row offers sorting or FALSE. Google’s page recommends FALSE: “Use FALSE for is_sorted due to its consistent behaviour whether or not the search key column is sorted.”

Drawn table of five VLOOKUP formulas on Microsoft’s sample data, the match each one uses, and the result
Four of the five formulas use an approximate match; the results are the ones Microsoft prints. Based on the Microsoft Support page Look up values with VLOOKUP, INDEX, or MATCH, read in full on October 7, 2026.

When VLOOKUP returns an error

Microsoft’s table, error by error. #N/A: with TRUE, a lookup value smaller than the smallest in the first column; with FALSE, no exact match. #REF!: col_index_num greater than the number of columns in table_array. #NAME?: usually quotes missing in the formula; Microsoft’s example puts the name in quotes, =VLOOKUP("Fontana",B2:E7,2,FALSE). #SPILL!: usually a whole column used as the lookup value, as in =VLOOKUP(A:A,A:C,2,FALSE); Microsoft’s two fixes are the @ operator, =VLOOKUP(@A:A,A:C,2,FALSE), or a single cell, A2.

#VALUE!, in two wordings. The VLOOKUP page’s row says the error comes when table_array is less than 1. Microsoft’s page on #VALUE! in VLOOKUP puts it on col_index_num: text, or a number below the minimum of 1. By our reading the first row means the column number. That page adds a second cause, a lookup value longer than 255 characters, and gives two ways out: a shorter value, or INDEX and MATCH.

#N/A when the value seems to be there. Microsoft’s #N/A page lists, among its causes, a number looked up in data stored as text, and extra spaces, with TRIM inside the formula, =VLOOKUP(D2,TRIM(A2:B7),2,FALSE). The page’s note confirms it with Ctrl+Shift+Enter as a legacy array formula, or with Enter in a current version of Microsoft 365 on the Insiders Fast channel; Microsoft’s #VALUE! page names Enter in a current version of Microsoft 365, with no channel. The VLOOKUP page’s best practices name leading and trailing spaces, straight and curly quotation marks used inconsistently, and nonprinting characters, after which VLOOKUP might return an unexpected value; for trailing spaces they suggest CLEAN or TRIM. The guide to remove spaces in Excel has the space that TRIM alone leaves.

Something other than #N/A. IFNA(value, value_if_na) returns the second argument when the first is #N/A; Microsoft’s example tests a VLOOKUP that does not find Seattle and shows “Not found” in its place. Put together by this guide from Example 1: =IFNA(VLOOKUP(B3,B2:E7,2,FALSE),"Not found"). The #N/A page gives IFERROR for the same job, as =IFERROR(FORMULA(),0).

Drawn table of the errors a VLOOKUP can show, from a wrong value to #SPILL!, with the cause Microsoft gives
Six rows from Microsoft’s Common Problems table; the #VALUE! row follows Microsoft’s #VALUE! page. Based on the Microsoft Support pages VLOOKUP function and How to correct a #VALUE! error in the VLOOKUP function, read in full on October 7, 2026.

The first column, and a lookup to the left

Microsoft’s tip. “The secret to VLOOKUP is to organize your data so that the value you look up (Fruit) is to the left of the return value (Amount) you want to find.” The page on VLOOKUP, INDEX and MATCH says VLOOKUP can only look up a value from left to right, and that a sheet not built that way should use INDEX and MATCH instead.

INDEX and MATCH, in Microsoft’s example. The city to find, Chicago, is not in the leftmost column: MATCH finds it in B1:B11, in row 4, and INDEX returns the population from the fourth column, D. Microsoft’s XLOOKUP page has an example in which the column searched is to the right of the column returned, and says there that VLOOKUP can only look from left to right. If the value you know is to the right of the one you want, by our reading the columns have to move, or another function has to do the lookup.

A number in the formula. In Microsoft’s examples col_index_num is a number typed into the formula. Neither Microsoft’s VLOOKUP page nor Google’s says what a typed 2 does when a column is inserted inside the range; by our reading it stays 2, and the formula returns whatever column is then second. Microsoft’s XLOOKUP page sets VLOOKUP’s single table array and column number against XLOOKUP’s two arrays, and gives =VLOOKUP(F2,B2:D11,3,FALSE) as the VLOOKUP form of its Example 1.

Copying the formula, and a range on another sheet

Absolute references. The VLOOKUP page’s best practices: absolute references let a formula be filled down and still look at the same lookup range. The row is headed “Use absolute references for range_lookup”; the sentence under it is about the lookup range, which by our reading is table_array. Microsoft’s page on the table_array argument says that a function you are going to copy needs absolute references.

The dollar signs and F4. Microsoft’s page on references: a cell reference is relative by default and changes when the formula is copied; a dollar sign before the column and the row fixes it, and F4 switches between the types. Its table, for a formula copied two cells down and two to the right: $A$1 stays $A$1, A$1 becomes C$1, $A1 becomes $A3, and A1 becomes C3. Example 1 with the range fixed, put together by this guide: =VLOOKUP(B3,$B$2:$E$7,2,FALSE). The guide on how to copy a formula in Excel has Ctrl+D on Windows and Cmd+D on a Mac.

A range on another sheet. The sheet name goes before the range. Microsoft’s VLOOKUP page: =VLOOKUP(A2,'Client Details'!A:F,3,FALSE). Its page on the table_array argument writes the range as Sheet2 and a cell range, and adds: “Make sure you place an exclamation point after the sheet name.” A:F refers to whole columns; by our reading, with a whole column as the lookup value as well, the #SPILL! row above applies.

VLOOKUP and XLOOKUP

The tip at the top. Microsoft’s VLOOKUP page opens by suggesting XLOOKUP, an improved version of VLOOKUP that works in any direction and returns exact matches by default. The same suggestion, in nearly the same words, heads four more of Microsoft’s pages on VLOOKUP: the two quick reference cards, the page on the table_array argument, and the page on VLOOKUP, INDEX and MATCH, which names XMATCH as well.

Where the two differ. VLOOKUP’s default match is approximate and XLOOKUP’s is exact; VLOOKUP returns a value from the first column of its range or from a column to its right; VLOOKUP takes a column number where XLOOKUP takes a range to return. The guide to XLOOKUP in Excel has its six arguments.

Versions. VLOOKUP’s Applies To line names Excel 2016 and Excel 2019, and a note on Microsoft’s XLOOKUP page says XLOOKUP is not available in either, though that page’s Applies To line names both; by our reading, a workbook for those two versions needs another lookup, such as VLOOKUP, or INDEX and MATCH. VLOOKUP’s Applies To line does not name Excel for the web, iPad, iPhone or Android, while the Applies To line of Microsoft’s page on the #N/A error, which has VLOOKUP among its examples, names all four, the web as Excel Web App. This guide has not checked VLOOKUP there.

VLOOKUP in Google Sheets

The same order, other names. Google prints =VLOOKUP(search_key, range, index, [is_sorted]). FALSE is an exact match and TRUE an approximate one, the default when is_sorted is left out; Google recommends FALSE, and recommends writing is_sorted every time, for readability. index starts at 1 and can be at most the number of columns in the range.

Google’s examples. =VLOOKUP("Orange", B4:D8, 3, FALSE) returns $1.01, and =VLOOKUP(G3, B4:D8, 2, FALSE) the quantity of oranges, 5. With an approximate match, an ID of 102 that is not in the list returns the row of 101, the closest value below it. A helper column, =C4&D4, joins first name and surname so that one VLOOKUP can match on both.

Errors and the first match. Google replaces #N/A with =IFNA(VLOOKUP(G3, B4:D8, 3, FALSE),"NOT FOUND"), and points to IFERROR for other errors such as #REF!. It says VLOOKUP returns only the first match when a search key appears more than once; Microsoft’s VLOOKUP page does not say which match it returns. The guide to removing duplicates in Excel has the tools that find repeated values. In Sheets, Google’s page strips the spaces with Data › Data cleanup › Trim whitespace.

VLOOKUP for BigQuery. The same page has a VLOOKUP for BigQuery that takes a search column and a result column in place of a range and an index, and points to XLOOKUP for more flexible queries there.

Drawn table of the four VLOOKUP argument names in Excel and in Google Sheets, place by place
The same order on both pages, and TRUE when the fourth argument is left out. Based on the Microsoft Support page and the Google Docs Editors Help page on VLOOKUP, read in full on October 7, 2026.

Where to start

Six ways in.

“Just give me the formula.”
Four steps — the formula step by step
“What does each argument do?”
Four arguments — the four arguments
“TRUE or FALSE?”
Exact and approximate — exact and approximate match
“It shows #N/A or #REF!.”
Microsoft’s table — when it returns an error
“The range is on another sheet.”
Sheet name first — copying and other sheets
“I am in Google Sheets.”
Same order, other names — in google sheets

Other lookups and conditions

The newer lookup, finding data in a sheet without a formula, and choosing a value by condition.

The data under the lookup

Spaces, repeated values and column order in the first column, and what copying does to the references.

Questions people also ask

How do I use VLOOKUP with a formula in Excel?

Type =VLOOKUP( in the cell for the answer, then the value to find, the range whose first column holds it, the number of the column to return, and FALSE for an exact match. Microsoft’s Example 1 is =VLOOKUP(B3,B2:E7,2,FALSE): it finds Fontana in column B and returns Olivier from column C.

How do I use VLOOKUP to find matches from another sheet?

Write the sheet name before the range, with an exclamation point after it. Microsoft’s example is =VLOOKUP(A2,'Client Details'!A:F,3,FALSE). Microsoft’s page on table_array says a function you are going to copy needs absolute references, which its page on references writes with dollar signs.

How to explain VLOOKUP to dummies?

Microsoft’s own plain version has four parts: the value to look up, where to look for it, the number of the column holding the value to return, and an approximate or exact match, 1/TRUE or 0/FALSE. The value to find must be in the first column of the range.

How to use VLOOKUP formula in sheet?

In Google Sheets the formula is =VLOOKUP(search_key, range, index, [is_sorted]). Google’s example =VLOOKUP("Orange", B4:D8, 3, FALSE) returns $1.01. Google recommends FALSE for is_sorted; left out, it is TRUE, an approximate match that needs the first column sorted in ascending order.

Not covered here. It does not cover HLOOKUP, or INDEX and MATCH beyond Microsoft’s example, and it does not open the two PDF reference cards that Microsoft’s quick reference pages link to.

The examples are Microsoft’s and Google’s, the two formulas marked as put together by this guide are ours, and so are the readings marked as ours.

Step 4 of 21 in a spreadsheet from start to finish

Twenty-one guides in one order: data into a sheet, cleaning, lookups and counts, charts, layout, controls, locking, and recovering an unsaved file.

Before this
How to alphabetize in Excel, without scrambling your rows
After this
How to calculate percentage in Excel, and the format trap

Getting an answer out of a spreadsheet

Four guides on getting an answer from a sheet: a lookup, a pivot table, removing duplicates and comparing two files.

The same job, in the other places it comes up
How to create a pivot table in Excel, starting with the data
How to remove duplicates in Excel, and what counts as one
How to compare two Excel files, with or without the tool

Sources

  1. Microsoft Support — VLOOKUP function: syntax, the four arguments, Example 1, Common Problems, Best practices and the Applies To line — support.microsoft.com, read October 7, 2026.
  2. Microsoft Support — Look up values with VLOOKUP, INDEX, or MATCH: the sample data and the Chicago example — support.microsoft.com, read October 7, 2026.
  3. Microsoft Support — Use the table_array argument in a lookup function — support.microsoft.com, read October 7, 2026.
  4. Microsoft Support — Switch between relative, absolute, and mixed references — support.microsoft.com, read October 7, 2026.
  5. Microsoft Support — How to correct a #N/A error — support.microsoft.com, read October 7, 2026.
  6. Microsoft Support — How to correct a #VALUE! error in the VLOOKUP function — support.microsoft.com, read October 7, 2026.
  7. Microsoft Support — IFNA function — support.microsoft.com, read October 7, 2026.
  8. Microsoft Support — XLOOKUP function: the note on Excel 2016 and Excel 2019, and the VLOOKUP form of Example 1 — support.microsoft.com, read October 7, 2026.
  9. Microsoft Support — Quick Reference Card: VLOOKUP refresher — support.microsoft.com, read October 7, 2026.
  10. Microsoft Support — Quick Reference Card: VLOOKUP troubleshooting tips — support.microsoft.com, read October 7, 2026.
  11. Google Docs Editors Help — VLOOKUP: syntax, is_sorted and its default, the examples, the first match and VLOOKUP for BigQuery — support.google.com, read October 7, 2026.

Written by Alberto Gulotta

Founder and editor of AI Tools Primer, writing from Palermo, Italy. Thirty-five years of taking computers apart, starting with a Commodore 64 — the long version is on the about page.

Something wrong on this page? Write to aitoolsprimer@gmail.com and it gets fixed.

Independence and limits

No affiliate links and no paid placements anywhere on this site. Nobody pays to appear here, and no company has seen this page before you did.

This is general information, not professional advice. Where a page touches money, health, safety or the law, it names its source and the date it was read — and your situation may still differ. See the privacy page and the cookie policy.