Excel VLOOKUP Function (original) (raw)

Last Updated : 5 Jun, 2026

VLOOKUP in Excel quickly finds a value in the first column of a table and returns related data from another column. It speeds up data lookup, links information across sheets, and simplifies working with large datasets.

Working of VLOOKUP

VLOOKUP searches vertically down the first column of a table for a specific value and returns a corresponding value from another column.

Common Use Cases

Syntax of VLOOKUP

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

**Note: If you don’t specify range_lookup, Excel automatically assumes TRUE.

Steps of Using VLOOKUP

We can use VLOOKUP with practical examples.

Step 1: Preparing our Data

Excel VLOOKUP Function

Prepare your Data

**Note: Having the lookup column as the first column ensures VLOOKUP works correctly. Incorrect table organization can lead to errors or incorrect results.

Step 2: Enter the VLOOKUP Formula

Select a cell where we want the price to appear when we type a product ID.

Enter-the-VLOOKUP-Formula

Enter the VLOOKUP Formula

Step 3: Define the Lookup Value

Enter the value we want to search for in the formula:

Define-the-Lookup-Value

Define the Lookup Value

Step 4: Specify the Table Array

We define the range where VLOOKUP searches for our data, ensuring it includes all relevant columns. This step is crucial for accurate results, as it tells Excel exactly where to look. Let’s set it up carefully to match our table structure.

Specify-the-Table-Array

Specify the Table Array

Step 5: Indicate the Column Index Number

We choose the column from which VLOOKUP retrieves our data, a critical decision for accurate results. This number tells Excel where to pull the information once a match is found. Let’s select it with precision to match our table layout.

**Purpose of col_index_num:

The col_index_num in a VLOOKUP formula specifies which column in the table_array to pull the data from, once a match is found for the lookup_value in the first column of that array.

**Importance of the Column Index Number:

In the range A1:C4:

The column index number (3) tells Excel to return data from the third column (Prices) of the table when a match is found in the first column. This ensures VLOOKUP retrieves the correct information.

Indicate-the-Column-Index-Number

Indicate the Column Index Number

Step 6: Choose the Range Lookup Type

The range_lookup decides how VLOOKUP matches data:

Using FALSE ensures accuracy, retrieving the exact corresponding value and avoiding errors from approximate matches.

Choose-the-Range-Lookup-Type

Choose the Range Lookup Type

Step 7: Complete and Execute the Formula

We finalize our VLOOKUP formula and see the results come to life in our spreadsheet. This step confirms our setup works, delivering the data we need. Let’s execute it with confidence.

**1. Press Enter: Our complete formula in cell D2 should look like this:

=VLOOKUP(A2, A1:C4, 3, FALSE)

**2.**View the Result: After pressing Enter, cell D2 should display $1, which is the price of the product with ID 001.

Complete-and-Execute-the-Formula

Complete and Execute the Formula

VLOOKUP Between Two Excel Spreadsheets

Using the VLOOKUP function to connect data between two Excel sheets within the same workbook is an efficient way to improve efficiency and smooth our workflow. Here’s an easy step-by-step guide to help us use VLOOKUP across two sheets.

Example****:**

Imagine we have an Excel workbook with two sheets.

Sheet1 ("Employee Info") contains a list of employee IDs and their names.

Employee ID Employee Name
101 John Doe
102 Jane Smith
103 Emily White

Sheet2 ("Contact Details") contains a list of employee IDs and their corresponding email addresses.

Employee ID Email
101 john.doe@email.com
102 jane.smith@email.com
103 emily.white@email.com

Goal

Use VLOOKUP to display employee email addresses in Sheet1 based on their IDs.

Step 1: Set Up VLOOKUP in Sheet1

Navigate to Sheet1 ("Employee Info") and click on cell C2 (right next to the first Employee ID).

Set-Up-VLOOKUP-in-Sheet1

Set Up VLOOKUP in Sheet1

Step 2: Enter the VLOOKUP Formula

Type in the following formula in cell C2 of Sheet1:

**Syntax:

=VLOOKUP(A2, Sheet2!A:B, 2, FALSE)

Here’s a simple explanation of each part of the formula:

Enter-the-VLOOKUP-Formula-in-Sheet1

Enter the VLOOKUP Formula

Step 3: Apply and Copy the Formula

We bring our VLOOKUP formula to life and extend it across our data, ensuring all rows update correctly. This step links our sheets seamlessly, saving us time. Let’s apply it with care.

Execute-and-Extend-the-Formula

Execute and Extend the Formula

Step 4: Verify the Results

VLOOKUP Between Two Workbooks

VLOOKUP is a prominent tool that can pull data from one workbook to another, making it easy to consolidate and analyze information stored in separate files. Here’s a step-by-step guide on how to use VLOOKUP across two Excel workbooks.

Example

image

Prepare your Data in Sheet1

image

Prepare your Data in Sheet2

Goal

Step 1: Open Both Workbooks

We begin by accessing the files we need to link, setting the foundation for our VLOOKUP. This ensures all data is ready for seamless integration across workbooks. Let’s open them with purpose.

Step 2: Set Up VLOOKUP in Workbook1

We prepare our primary workbook to apply VLOOKUP, starting with the right cell. This step positions us to link data accurately from the second file. Let’s set it up carefully.

Set-Up-VLOOKUP-in-Workbook1

Set Up VLOOKUP in Workbook1

Step 3: Enter the VLOOKUP Formula

Type in the following formula in cell C2 of "Sales Data.xlsx":

=VLOOKUP(A2, '[Employee Sales.xlsx]Sheet1'!$A$1:$B$3, 2, FALSE)

**Understanding the VLOOKUP Formula:

Enter-the-VLOOKUP-Formula-in-Sales-Data-Workbook

Enter the VLOOKUP Formula in Sales Data Workbook

Step 4: Execute and Extend the Formula

Press Enter to execute the formula in cell C2. If correctly entered, cell C2 will now display "John Doe", corresponding to Transaction ID T001.

To apply the same formula to the other transactions:

Execute-and-Extend-the-Formula

Execute and Extend the Formula

Step 5: Verify the Results

Check that the correct employee names appear next to the corresponding transaction IDs in "Sales Data.xlsx".