VLOOKUP is among Microsoft Excel's most widely used functions. It searches the first column of a table for a specified value, then returns the corresponding entry from another column in that row.

"VLOOKUP" means Vertical Lookup, referring to the function's top-to-bottom search through a column.

Suppose an employee database stores IDs, names, departments, and salaries. To get someone's salary from their ID, use VLOOKUP. It finds the matching record and returns the salary automatically instead of forcing you to check each row by hand.

VLOOKUP becomes particularly handy in large spreadsheets, especially when customer records, product details, sales figures, or inventory information are involved. It cuts down on manual searching and speeds up routine data analysis.

This guide explains VLOOKUP, breaks down its formula, and shows how to use it with practical examples. You'll also learn to search across worksheets and fix common errors.

What Is the VLOOKUP Formula in Excel?

VLOOKUP searches the first column of a chosen Excel table, then returns a value from another column in the matching row.

Its basic syntax is:

=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
VLOOKUP formula explained with lookup value, table array, column index number, and exact match arguments in Excel.

The arguments specify the value Excel should look for, the table it should search, the column containing the result, and whether the match must be exact or may be approximate.

Understanding the VLOOKUP Arguments

Argument Meaning Example
lookup_value The value Excel should find. Employee ID 102
table_array The cells Excel searches for the lookup data. A2:D10
col_index_num The number of the column that supplies the result, counted from the range's first column. 4
range_lookup Tells Excel to look for an exact match or an approximate one. FALSE or TRUE

1. Lookup Value

Excel uses lookup_value as the item it searches for. This may be a number, text, date, or reference to a cell.

For instance, when you search for an employee's details by employee ID, that ID is the lookup_value.

2. Table Array

Excel searches the range you provide as the table_array. That range must contain both the lookup column and the column from which Excel should return the result.

For instance, if the employee database occupies cells A2:D10, enter A2:D10 as the table_array.

Important: VLOOKUP checks only the leftmost column in the selected table_array. The lookup-value column must sit to the left of the column containing the answer.

3. Column Index Number

The col_index_num tells Excel where to retrieve the result. Excel counts from the first column of the selected table_array, rather than using the worksheet's letter labels.

For example, if you select the range A2:D10, column A corresponds to 1, B to 2, C to 3, and D to 4. To retrieve information from column D, enter 4 as the column index number.

4. Range Lookup

The range_lookup argument tells Excel which kind of match to find.

  • FALSE: Searches for an exact match, which is usually the right choice for a specific value such as an employee ID or product code.
  • TRUE: Searches for an approximate match and returns the closest suitable result. For reliable results, the first column in the lookup range must be sorted in ascending order.

When you need one exact record, begin by setting the last VLOOKUP argument to FALSE.

How to Use VLOOKUP in Excel: Step-by-Step Guide

You know the formula now. Let's see it in action with a practical example.

Step-by-step VLOOKUP example in Excel showing how to find an employee's salary using employee ID 102 and the formula =VLOOKUP(F2,A2:D6,4,FALSE).

Imagine a company database with employee IDs, names, departments, and monthly salaries. The task is simple: use an employee ID to find that person's salary.

Step 1: Create an Employee Dataset

Use this sample employee data in Excel:

Employee ID Employee Name Department Monthly Salary
101 Sarah Ahmed Marketing 4500
102 James Miller Finance 5200
103 Olivia Brown Human Resources 4800
104 Daniel Smith IT 6000
105 Emma Wilson Sales 5500

The table occupies cells A1:D6, with the column headings in row 1.

Step 2: Enter the Employee ID

Select an empty cell, such as F2. Type the employee ID you want to look up there.

Enter 102 for this example. Excel will use that value to locate the corresponding employee record.

Step 3: Add the VLOOKUP formula

Select an empty cell, such as G2, and type:

=VLOOKUP(F2,A2:D6,4,FALSE)

Here, F2 contains the employee ID to search for. Excel checks the employee database in A2:D6, then returns the value from the range's fourth column, the Monthly Salary. FALSE tells Excel to find an exact match for the employee ID.

Step 4: Press Enter to View the Result

Press Enter after typing the formula. Excel checks the first column of the selected range for employee ID 102, then returns the matching salary.

Result: 5200
James Miller's record is found, and his monthly salary appears without any manual search through the spreadsheet.

Step 5: Apply the Formula to Other Employees

To search for a different employee, enter that person's ID in cell F2. The result updates automatically.

Change 102 to 104, for instance, and the formula returns 6000 because employee 104 is Daniel Smith.

That makes VLOOKUP a practical choice for repeatedly pulling data from a large dataset.

Practical VLOOKUP Examples in Excel

In everyday spreadsheets, VLOOKUP helps users find records, pull product information, and examine business data.

Example 1: Find an Employee's Name from an ID

Assume the employee records look like this:

Employee ID Employee Name Department
101 Sarah Ahmed Marketing
102 James Miller Finance
103 Olivia Brown HR

Enter the employee ID in cell E2, then use:

=VLOOKUP(E2,A2:C4,2,FALSE)

With 102 in E2, Excel returns James Miller. HR teams can use this lookup to find employee details quickly instead of searching a long list by hand.

Example 2: Find Product Prices Using Product IDs

A product database may store each item's ID alongside its name, category, and price. Enter a product ID, and VLOOKUP can pull back the matching details.

Product ID Product Name Category Price
P101 Laptop Electronics 900
P102 Wireless Mouse Accessories 25
P103 Keyboard Accessories 45
P104 Monitor Electronics 250

With the product ID in F2, use:

=VLOOKUP(F2,A2:D5,4,FALSE)

When F2 contains P103, Excel returns 45, the keyboard's price. This works well for checking inventory, preparing product catalogs, processing orders, or compiling sales reports.

Example 3: Retrieve Student Grades

Teachers can look up a student's grade by entering the student ID. In the table below, VLOOKUP searches the ID column and returns the matching grade.

Student ID Student Name Subject Grade
201 Michael Mathematics A
202 Emily Science B
203 David English A

Use this formula to find a grade from the ID entered in F2:

=VLOOKUP(F2,A2:D4,4,FALSE)

With 202 in F2, the formula returns B.

Example 4: Find Sales Information

Sales teams can also pull details from a shared sales dataset. A sales manager, for instance, might use VLOOKUP to find the region assigned to a particular sales representative.

Sales ID Representative Region Sales Target
S101 John North 10000
S102 Mary South 12000
S103 Alex West 15000

To return a representative's region from their Sales ID, enter:

=VLOOKUP(F2,A2:D4,3,FALSE)

When F2 contains S102, the result is South. VLOOKUP makes it easier to retrieve related business information from a table.

How to Use VLOOKUP Between Different Excel Sheets

The lookup table and the cell showing the result can sit on separate worksheets. Within the same Excel workbook, VLOOKUP can retrieve data from another sheet.

Suppose your workbook has two worksheets:

  • Sheet1 holds the employee IDs you need to look up.
  • EmployeeData contains those IDs along with each employee's name, department, and salary.

If the database occupies cells A2:D100 on EmployeeData, enter this formula in Sheet1:

=VLOOKUP(A2,EmployeeData!A2:D100,4,FALSE)

The formula works as follows:

  • A2 is the employee ID to find on Sheet1.
  • EmployeeData! points Excel to the lookup range on the EmployeeData worksheet.
  • A2:D100 refers to the range that holds the employee information.
  • The number 4 tells VLOOKUP to return data from the fourth column, while FALSE requires an exact match.

When a worksheet name includes spaces, put the name inside single quotation marks. For example:

=VLOOKUP(A2,'Employee Data'!A2:D100,4,FALSE)

This approach works well when an organization keeps employee, customer, product, sales, or inventory records on separate worksheets.

Understanding Exact Match vs. Approximate Match in VLOOKUP

One of the most important parts of the VLOOKUP formula is the range_lookup argument. It determines whether Excel should look for an exact match or an approximate match. You can control this behavior by using FALSE or TRUE as the fourth argument in your formula.

Choosing the correct match type is essential because it affects the result Excel returns. Let's understand how both options work.

1. Exact Match (FALSE)

When you use FALSE, VLOOKUP searches for an exact match to the lookup value. If Excel cannot find the specified value in the first column of the selected table range, it returns a #N/A error.

Exact match is generally the best option when searching for unique or specific information, such as:

  • Employee IDs and employee records
  • Product IDs and inventory details
  • Student roll numbers and grades
  • Order numbers and customer information

Example: If you want to find the salary of an employee with ID 102, use:

=VLOOKUP(102,A2:D6,4,FALSE)

Excel searches for employee ID 102 in the first column of the selected range and returns the corresponding salary from the fourth column. If the employee's ID exists in the dataset, Excel returns the matching salary.

2. Approximate Match (TRUE)

When you use TRUE, VLOOKUP searches for an exact match or, if one is not available, the closest smaller value. For this type of lookup, the first column of your selected table range should be sorted in ascending order to get reliable results.

Approximate matching is useful when working with ranges or categories rather than unique identifiers, such as:

  • Assigning grades based on score ranges
  • Calculating commission rates based on sales targets
  • Finding tax rates based on income brackets
  • Applying discounts based on purchase amounts

Example: Suppose a grading table contains minimum score thresholds. You can use:

=VLOOKUP(85,A2:B6,2,TRUE)

Excel finds the largest score threshold that is less than or equal to 85 and returns the corresponding grade. For example, if 80 is the closest lower threshold, Excel returns the grade assigned to 80.

Exact Match vs. Approximate Match: Key Differences

Feature Exact Match (FALSE) Approximate Match (TRUE)
Matching behavior Looks for the exact lookup value Finds an exact match or closest smaller value
Sorting requirement No ascending sort required First column should be sorted in ascending order
Best for IDs, names, and order numbers Grades, commissions, and value ranges
If no suitable match exists Returns #N/A Returns #N/A if no eligible value is found

Which option should you use? If you are looking up a specific employee ID, product code, or order number, use FALSE to avoid returning information for a different record. Use TRUE when your data is organized into numerical or categorical ranges and you need an approximate result.

How to Use VLOOKUP with Multiple Criteria

A standard VLOOKUP uses one lookup value, but some datasets require a match based on multiple conditions. For instance, a company might store employee records using each person's name and department. Since two employees can have the same name, a name-only search could pull up the wrong record.

A simple fix is to add a helper column that joins both search criteria.

Step 1: Create a Helper Column

Suppose the employee data looks like this:

Employee Name Department Salary
John Marketing 4500
John Finance 5200
Sarah HR 4800

Insert a helper column before Employee Name, then combine the employee's name with the department using:

=B2&"|"&C2

This joins the employee name and department into one lookup key, such as John|Marketing or John|Finance.

Step 2: Create the Lookup Value

When the name appears in F2 and the department in G2, build the matching key with:

=F2&"|"&G2

Step 3: Apply VLOOKUP

If the helper column is A, Employee Name is B, Department is C, and Salary is D, enter:

=VLOOKUP(F2&"|"&G2,A2:D4,4,FALSE)

Excel then matches the combined name-and-department key and returns the corresponding salary.

This approach helps when a dataset repeats names, product categories, locations, or other values, so one condition alone cannot identify the correct record.

How to Use VLOOKUP with Wildcards

Wildcards let you search for text without entering the full value. VLOOKUP supports two common wildcard characters in text searches.

  • Asterisk (*): Stands for any number of characters.
  • Question mark (?): Matches exactly one character.

Suppose your product list includes names, but the only part you remember is that a name starts with "Lap". Use:

=VLOOKUP("Lap*",A2:B10,2,FALSE)

The formula looks for text beginning with "Lap" and returns the matching entry from the second column.

A question mark also works when one character in the value is unknown. For instance, "C?t" matches both Cat and Cot.

Wildcards help find entries in product names, customer records, or other text-based data when part of the information is missing.

Common VLOOKUP Errors and How to Fix Them

VLOOKUP is fairly simple, but formulas can fail when they point to the wrong cells, cannot find a value, or compare incompatible data. Knowing what this error means makes formula troubleshooting easier and helps you get the right result.

Error Meaning Fix
#N/A Excel cannot find the value you asked it to look up. Verify the lookup value, clear any extra spaces, and make sure the value appears in the first column.
#REF! The column index refers to a column outside the selected range. Check the col_index_num and make sure it does not exceed the number of columns in the table_array.
#VALUE! An argument contains an invalid value, such as an invalid column index. Review the formula arguments and use a valid positive column index.
Incorrect result The formula may be relying on approximate matching instead of looking for an exact match. Set the match option to FALSE.
Wrong record returned Several entries in the first column may share the same lookup value. Remove the duplicate values or choose a more specific lookup key.

1. Fixing the #N/A Error

Excel returns #N/A when it cannot find the value you asked it to look up. The usual causes are simple: the value is missing from the first column, or extra spaces keep Excel from recognizing an otherwise matching value.

One value is text; the other is numeric. That mismatch prevents Excel from finding a match. The lookup range may also leave out the data you need, or the values may differ because of formatting or extra characters.

Even stray spaces in a customer ID can break an exact match. Clean the data before using VLOOKUP to avoid these errors.

If you often work with spreadsheets, knowing how to spot and delete duplicate records can save time and prevent messy results. WFI's guide to cleaning duplicate data in Excel explains practical techniques you can use.

2. Fixing the #REF! Error

Excel returns #REF! when the column index exceeds the number of columns in the lookup range.

Suppose table_array has four columns and the formula specifies 5 as the column index. There is no fifth column from which Excel can retrieve a value.

Check the selected range, then change the column index to a valid number.

3. Fixing Incorrect Results

An unexpected VLOOKUP result often comes from the final argument. Check whether the formula uses TRUE or FALSE.

For a precise search, such as an employee ID, product code, or customer number, use FALSE so Excel looks for an exact match.

VLOOKUP also stops at the first match. If the lookup column contains duplicates, the formula may return the first record instead of the one you meant.

VLOOKUP vs. XLOOKUP: How Do They Differ?

Both Excel functions retrieve values from a dataset, but XLOOKUP gives you more flexibility and avoids several of VLOOKUP's limits.

Feature VLOOKUP XLOOKUP
Search direction Looks through the first column of the selected range. Can search in different directions.
Return column Identifies the result with a column index number. Uses a separate range for the returned value.
Exact match Needs FALSE to find an exact match. Finds exact matches by default.
Column insertion When columns are added or rearranged, the index number may no longer point to the intended column. Keeping the lookup range separate from the return range makes the formula easier to adjust.
Availability Works in many older Excel versions. Works in Microsoft 365 and newer supported Excel versions.

Example: Using XLOOKUP

To retrieve an employee's salary from an employee ID, enter:

=XLOOKUP(F2,A2:A6,D2:D6,"Not Found")

Excel looks for the ID in A2:A6, then returns the corresponding salary from D2:D6. If there's no match, the cell displays "Not Found".

VLOOKUP remains useful because most existing spreadsheets support it. If your version of Excel includes XLOOKUP, that function offers a more flexible alternative.

Advantages of Using VLOOKUP in Excel

VLOOKUP makes it easier to find and pull information from organized data. Its main benefits include:

1. Saves Time

Rather than checking hundreds or thousands of rows by hand, you can retrieve the needed information with one formula. That helps when working with large employee databases, product lists, or customer records.

2. Reduces Manual Searching

Searching through a large spreadsheet by hand takes time and makes errors more likely. VLOOKUP finds the matching entry and returns the needed value automatically.

3. Supports Data Analysis

Analysts can use VLOOKUP to connect related tables and pull information into reports. For example, matching product IDs can link sales records to a table containing product details.

4. Works with Different Business Datasets

VLOOKUP fits a wide range of business tasks. Teams use it to manage employee records, review sales figures, track products, organize customer information, analyze finances, and maintain academic or student records.

5. Easy to Learn and Apply

VLOOKUP becomes useful once you understand its four formula arguments. Beginners can start with simple exact-match searches, then move on to more advanced spreadsheet tasks.

Limitations of VLOOKUP in Excel

VLOOKUP is useful, but it can become restrictive when you work with more complex datasets.

  • Left-to-right limitation: The function searches the first column of the selected range and can return values only from columns positioned to its right.
  • Column index dependency: The formula relies on a numeric column index, so changes to the lookup table may require that index to be updated.
  • First matching result: If several rows contain the same lookup value, VLOOKUP returns only the first match.
  • Exact match requirements: With an exact-match search, the lookup value must match the data in the first column.
  • Large dataset considerations: A complex spreadsheet with numerous lookup formulas may need optimization to maintain performance.

For flexible lookups, users can turn to XLOOKUP or combine INDEX with MATCH, depending on their Excel version and the way their data is arranged.

Tips for Getting Better Results with VLOOKUP

A few simple habits can make VLOOKUP formulas more dependable and easier to maintain.

1. Use FALSE for exact matches

If you're looking up a particular ID, code, or name, set the final argument to FALSE. Excel will then return the record that matches exactly, rather than an approximate one.

2. Use Absolute References When Copying Formulas

When a VLOOKUP formula will be copied into other cells, fix the table range with dollar signs. For example:

=VLOOKUP(F2,$A$2:$D$100,4,FALSE)

With the range locked, it stays the same wherever you paste the formula. F2 can still adjust as the formula moves down the worksheet.

3. Keep Your Lookup Data Organized

Place the lookup column at the start of the selected table_array. Before using the formula, remove blank rows, make the values consistent, and check that lookup keys are not duplicated.

4. Use IFERROR When It Helps

To replace a confusing error with a plain-language message, wrap VLOOKUP in IFERROR. For example:

=IFERROR(VLOOKUP(F2,A2:D10,4,FALSE),"Employee Not Found")

When Excel fails to locate the employee ID, the cell shows "Employee Not Found" rather than an error.

5. Choose Clear Column Headings

Descriptive headings make the data easier to read and help prevent mistakes when you select the return column. That matters especially in business reports and large datasets.

An efficient spreadsheet setup saves time, too. WFI's Excel keyboard shortcuts guide offers practical commands for moving around a workbook and managing data with less effort.

How VLOOKUP Helps with Data Analysis

Analysis often draws on information spread across tables, worksheets, and business systems. Before analysts can spot patterns or produce useful insights, they first have to retrieve the relevant data, compare it, and put it in order.

VLOOKUP connects related records by matching a shared identifier, such as a customer ID or product code.

A data analyst might keep sales transactions in one spreadsheet and product details in another. VLOOKUP links the two, pulling the matching product name or category into each sales record.

That makes it easier to merge spreadsheet data, prepare reports, find customer or product details, check business records, and analyze sales alongside inventory.

Preparing data for charts and dashboards is the next step. Once the information has been gathered and organized, analysts can present their findings with Excel visualizations. WFI's guide to creating charts and graphs in Excel explains how.

Excel is only one option for modern data analysis. Depending on the job, professionals might turn to SQL, Python, Power BI, or AI-powered software for tasks such as preparing data, automating parts of the work, and finding useful insights. WFI's data analysis tools guide covers other technologies used in the field.

How to Build Your Data Analysis Skills

VLOOKUP offers a practical entry point for anyone who wants to work with spreadsheets and business data. Still, professional data analysis goes well beyond retrieving values in Excel.

A stronger foundation comes from building several core abilities:

1. Learn Excel and Spreadsheet Fundamentals

Begin with formulas and functions, then practice sorting, filtering, conditional formatting, data validation, PivotTables, and lookup functions. Apply each feature to realistic datasets so the techniques become familiar through use.

2. Understand Data Cleaning and Preparation

Before analyzing data, learn to find missing values, eliminate duplicates, standardize formats, and arrange information properly. Reliable reports and calculations depend on clean datasets.

3. Develop SQL Skills

SQL lets professionals query, filter, combine, and examine data held in databases. The skill becomes especially useful when business data grows larger and more structured.

4. Explore Data Visualization

Charts and dashboards can make analytical findings much easier for business users to grasp, especially when they need to compare results, spot trends, or review performance indicators. Learn to present data clearly through static and interactive visuals.

5. Learn to Use AI in Data Analytics

AI now supports many parts of modern data analysis. Professionals should learn to use these tools responsibly: they can help examine datasets, suggest analytical approaches, handle selected repetitive tasks, and communicate results more efficiently.

WFI's Generative AI Data Analyst Self-Paced Program suits learners who want structured online study but need the freedom to set their own pace.

Those who want instructor guidance, practical projects, and career preparation can choose WFI's Generative AI Data Analyst Immersive Program. It runs online for 14 weeks on a part-time schedule, combining live instruction with hands-on work and career development.

Frequently Asked Questions About VLOOKUP in Excel

1. What is VLOOKUP in Excel used for?

VLOOKUP finds a value in the first column of a table, then pulls the matching information from another column in that row. It is often used with employee records, product lists, customer databases, sales reports, and similar spreadsheet work.

2. What is the basic syntax of VLOOKUP?

The syntax is =VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup]). It specifies the value to search for, the lookup range, the result column's number, and whether the match should be exact or approximate.

3. What is the difference between TRUE and FALSE in VLOOKUP?

With FALSE, VLOOKUP looks only for an exact match. TRUE allows an approximate match, but the first column in the lookup range must be sorted in ascending order.

4. Can VLOOKUP search in another worksheet?

Yes. VLOOKUP can pull data from another worksheet in the same workbook. Add that sheet's name to the table reference, as in =VLOOKUP(A2,EmployeeData!A2:D100,4,FALSE).

5. Why does VLOOKUP return #N/A?

Usually, #N/A means Excel did not find the lookup value. Make sure it appears in the first column of the selected range. Extra spaces, mismatched formatting, or a text value being compared with a number can also cause the error.

6. Can VLOOKUP return multiple results?

Standard VLOOKUP stops at the first match. To return several matching records, use FILTER if your Excel version supports it, or choose a method built for multiple results.

7. Can VLOOKUP search from right to left?

Not with standard VLOOKUP. It looks for the value in the first column of the selected range, then returns data from a column farther right. For a lookup in the opposite direction, use XLOOKUP or INDEX and MATCH.

8. Is VLOOKUP better than XLOOKUP?

Neither function wins in every case. VLOOKUP remains widely supported and works well in traditional spreadsheets, while XLOOKUP gives you more flexibility, can search in different directions, and keeps the lookup range separate from the return range.

9. Can I use VLOOKUP with multiple conditions?

Yes, though standard VLOOKUP handles only one lookup value. To work around that limit, create a helper column that joins the criteria into one lookup key, then use VLOOKUP to find the combined value.

10. Is VLOOKUP useful for data analysis?

Yes. Analysts use VLOOKUP to pull matching information from separate tables, which makes reporting datasets easier to prepare. It works especially well for linking sales records with customer, employee, or product details.

Conclusion

VLOOKUP helps you find information in an Excel table and return the related value from the same row. It works well with structured data such as employee records or sales reports, and learning it can make routine spreadsheet work faster.

Once you understand VLOOKUP's formula, its exact- and approximate-match settings, and the usual fixes for errors, you can apply it with greater confidence in everyday business and data-analysis work.

Still, VLOOKUP covers only one small part of data analytics. Stronger Excel and SQL skills, cleaner data, clearer visualizations, and familiarity with AI tools will make it easier to work with information.

Build practical data analytics skills on your own schedule with the Generative AI Data Analyst Self-Paced Program at WorkForce Institute.

For guided instruction, hands-on projects, and career preparation, choose the Generative AI Data Analyst Immersive Program.