How to Create a VLOOKUP in Excel: A Complete Guide

VLOOKUP is one of Excel's most powerful and widely used functions — and also one of the most misunderstood. Whether you're matching customer IDs to names, pulling prices from a product list, or combining data from two sheets, VLOOKUP does the heavy lifting. Here's exactly how it works and how to build one from scratch.

What Is VLOOKUP?

VLOOKUP stands for Vertical Lookup. It searches down the first column of a defined range, finds a matching value, and returns data from another column in the same row.

Think of it like a lookup table at a restaurant: you find your table number (the search value), then look across to see who's seated there (the return value).

The function lives in the Formulas > Lookup & Reference category, and it works across all modern versions of Excel — desktop, Microsoft 365, and Excel for the web.

The VLOOKUP Syntax Explained

Breaking down each argument:

ArgumentWhat It Means
lookup_valueThe value you're searching for
table_arrayThe range of cells containing your data
col_index_numWhich column number to return the result from
[range_lookup]TRUE for approximate match, FALSE for exact match

The fourth argument trips people up most often. Use FALSE for exact matches (the most common use case). Use TRUE only when working with sorted numerical ranges, like tax brackets or grade scales.

Step-by-Step: Building Your First VLOOKUP

Step 1 — Set Up Your Data

VLOOKUP always searches the leftmost column of your table array. Your lookup column must be on the left side of the data you want to retrieve. If it isn't, you'll need to restructure your table or use a different function like INDEX/MATCH.

For this example:

  • Column A: Employee ID
  • Column B: Employee Name
  • Column C: Department

Step 2 — Choose Where to Write the Formula

Click into an empty cell where you want the result to appear. This is often on a separate sheet or in a summary table.

Step 3 — Enter the Formula

What this does:

  • Looks for the value in A2 (your lookup value)
  • Searches within Sheet2, columns A through C, rows 2–100 (your table array)
  • Returns the value from column 2 of that range (Employee Name)
  • Uses FALSE for an exact match

Step 4 — Lock the Table Array with Absolute References

Notice the dollar signs in $A$2:$C$100. These are absolute cell references, and they're critical. Without them, when you copy the formula down to other rows, Excel will shift the table range — breaking your results.

Press F4 after selecting your range to toggle absolute references on automatically.

Step 5 — Copy the Formula Down

Once the formula works in one cell, drag the fill handle (the small square at the cell's bottom-right corner) downward to apply it to the rest of your rows.

Common VLOOKUP Errors and What They Mean 🔍

ErrorLikely Cause
#N/ANo match found — check for typos, extra spaces, or mismatched data types
#REF!Column index number exceeds the width of your table array
#VALUE!Non-numeric value used where a number is expected
Wrong resultForgot to use FALSE for exact match; approximate match returned nearest value

The #N/A error is the most common. A number stored as text won't match the same number stored as a true number — even if they look identical on screen. Use TRIM() or VALUE() to clean your data if mismatches persist.

Factors That Affect How VLOOKUP Performs for You

VLOOKUP behaves consistently as a function, but your results will vary significantly based on:

Data structure — If your lookup column isn't the leftmost column, VLOOKUP simply won't work as expected. Reorganizing or switching to INDEX/MATCH becomes necessary.

Data cleanliness — Trailing spaces, inconsistent capitalization, and mixed data types are the leading causes of unexpected #N/A errors. VLOOKUP is case-insensitive, but it is not forgiving of formatting inconsistencies.

Dataset size — On very large datasets (tens of thousands of rows), VLOOKUP can slow down a workbook noticeably, especially when used across multiple columns. Excel 365 users have access to XLOOKUP, a more efficient and flexible successor that searches in any direction and handles errors more gracefully.

Excel version — XLOOKUP, introduced in Microsoft 365 and Excel 2021, handles many of VLOOKUP's limitations natively. If you're on an older version, VLOOKUP or INDEX/MATCH remain your primary tools.

Skill level and use case — A basic one-sheet lookup is straightforward to build in minutes. Cross-workbook VLOOKUPs, nested VLOOKUPs, or dynamic column references add layers of complexity that require a firmer grasp of Excel's reference system.

VLOOKUP vs. Its Alternatives

FunctionBest ForLimitation
VLOOKUPSimple right-side lookupsLookup column must be leftmost
INDEX/MATCHFlexible, any-direction lookupsSlightly more complex syntax
XLOOKUPModern replacement for bothOnly available in Excel 2021+ / Microsoft 365

Whether VLOOKUP is the right tool — or whether INDEX/MATCH or XLOOKUP better fits your workflow — depends on your Excel version, how your data is structured, and how much flexibility you need from the lookup itself.