1
A1:L1 · Cell value

VLOOKUP.

D2
2

Updated · 2026-04-16 · ~10 min read

What is VLOOKUP?

VLOOKUP stands for Vertical Lookup. It is one of the most widely used spreadsheet functions in both Microsoft Excel and Google Sheets. VLOOKUP searches for a value in the first column of a table and returns a value from another column in the same row.

Think of it like looking up a contact in your phone. You search by name (the lookup value), and the phone returns the associated phone number (the value from another column). VLOOKUP works the same way — you provide a value to search for, tell it which table to look in, and specify which column holds the data you want back.

VLOOKUP is available in Microsoft Excel, Google Sheets, and Apple Numbers, making it one of the most portable formulas across spreadsheet platforms. Whether you are pulling product prices, matching employee records, or grading student scores, VLOOKUP is often the first formula people reach for.

VLOOKUP Syntax

The VLOOKUP function takes four arguments:

=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])

VLOOKUP Examples

Below are practical, real-world examples showing how VLOOKUP solves common spreadsheet tasks. Each example includes the natural language description you could type into FormulaAI, followed by the generated formula.

1. Look Up a Product Price by ID

You have a product catalog in columns A through C (Product ID, Product Name, Price). You want to find the price for the product ID entered in cell E1.

Description: "Find the price for the product ID in E1 from the catalog in A:C"

=VLOOKUP(E1, A:C, 3, FALSE)

This searches column A for the value in E1, then returns the corresponding value from column 3 (Price). The FALSE argument ensures an exact match — you want the exact product ID, not an approximate one.

2. Find an Employee's Department

Your HR spreadsheet has Employee ID in column A, Employee Name in column B, and Department in column C. You want to look up which department employee "E1042" belongs to.

Description: "Look up department for employee ID E1042 in the employee table A2:C200"

=VLOOKUP("E1042", A2:C200, 3, FALSE)

Here the lookup value is a text string "E1042" enclosed in quotes. The formula searches column A of the range A2:C200 and returns the value from column 3 (Department).

3. Match a Student's Letter Grade from a Score Table

You have a grading scale in cells F2:G6 where column F contains minimum scores (0, 60, 70, 80, 90) and column G contains letter grades (F, D, C, B, A). You want to convert a numeric score in cell B2 into a letter grade.

Description: "Convert the score in B2 to a letter grade using the grading table F2:G6"

=VLOOKUP(B2, F2:G6, 2, TRUE)

This is one of the best use cases for approximate match (TRUE). A score of 85 does not appear in the table, but VLOOKUP finds the largest value that is less than or equal to 85 (which is 80) and returns "B". Important: the first column of the lookup table must be sorted in ascending order for approximate match to work correctly.

4. Use VLOOKUP with Approximate Match for Tax Brackets

You have a tax bracket table in H2:I6 where column H contains income thresholds (0, 10000, 40000, 85000, 165000) and column I contains the corresponding tax rates (10%, 12%, 22%, 24%, 32%). You want to find the tax rate for an income in cell D2.

Description: "Find the tax rate for income in D2 using the tax bracket table H2:I6"

=VLOOKUP(D2, H2:I6, 2, TRUE)

An income of $55,000 falls between $40,000 and $85,000. VLOOKUP with approximate match returns the rate associated with $40,000 (22%), because $40,000 is the largest threshold that does not exceed $55,000. This pattern works perfectly for tiered pricing, commission brackets, shipping rates, and any scenario where values fall into ranges.

5. VLOOKUP with IFERROR to Handle Missing Values

When the lookup value does not exist in the table, VLOOKUP returns a #N/A error. You can wrap it in IFERROR to display a friendlier message instead.

Description: "Look up the price for the product in E1. Show 'Not found' if the product doesn't exist"

=IFERROR(VLOOKUP(E1, A:C, 3, FALSE), "Not found")

This is a common production pattern. The IFERROR wrapper catches any error from VLOOKUP and returns the text "Not found" instead of displaying a raw error in your spreadsheet.

Common VLOOKUP Errors

Even experienced spreadsheet users run into these VLOOKUP pitfalls. Understanding why they happen helps you troubleshoot faster.

#N/A Error

The most common VLOOKUP error. It means the lookup value was not found in the first column of the table array. Common causes include:

Wrong Column Index

The col_index_num is relative to the table_array, not the worksheet. If your table starts at column C, column C is index 1, column D is index 2, and so on. A common mistake is using the worksheet column number instead of the relative position within the table range.

Unsorted Data with Approximate Match

When using TRUE (approximate match), the first column of the table must be sorted in ascending order. If it is not sorted, VLOOKUP can return incorrect results without any error message, which makes this bug particularly hard to catch.

#REF! Error

This occurs when the col_index_num is larger than the number of columns in the table_array. For example, if your table has 3 columns but you specify col_index_num = 5, you will get a #REF! error. Double-check your range and column number.

VLOOKUP vs XLOOKUP vs INDEX MATCH

VLOOKUP is the classic lookup function, but newer alternatives offer more flexibility. Here is how they compare:

FeatureVLOOKUPXLOOKUPINDEX MATCH
Lookup directionLeft to right onlyAny directionAny direction
Default matchApproximateExactExact
Column insertion safeNo (breaks col_index)YesYes
Built-in error handlingNoYes (if_not_found)No
Platform supportAll platformsExcel 365 / SheetsAll platforms
Ease of useEasiestEasyModerate

When to use VLOOKUP: Quick lookups where the lookup column is the first column and you do not need to look left. VLOOKUP is the simplest syntax and is universally supported.

When to use XLOOKUP: When you need to look up values in any direction, want built-in error handling, or need a formula that does not break when columns are inserted. See our XLOOKUP guide for details.

When to use INDEX MATCH: The most flexible option for complex lookups, multiple criteria, or when you need the formula to be robust against structural changes. See our INDEX MATCH guide.

Platform Differences: Excel vs Google Sheets vs Apple Numbers

VLOOKUP works across all three major spreadsheet platforms, but there are subtle differences worth knowing:

Microsoft Excel

Google Sheets

Apple Numbers

FormulaAI automatically generates the correct syntax for your chosen platform, so you do not need to worry about these differences. Just select Excel, Google Sheets, or Apple Numbers before converting.

Related Guides

3
Try FormulaAI free → Next: XLOOKUP → Describe what you need · we write the VLOOKUP for you · $2.99/mo unlimited
‹ ›
LandingCompareHow it works
Guides
FAQSupport