Skip to main content

VLOOKUP() from Another Sheet: A How-to in Excel

See how to use VLOOKUP() to pull data from another sheet in your Excel workbook. Build confidence with practical examples and troubleshooting techniques.
Nov 11, 2024  · 5 min read

Have you ever spent hours manually searching through spreadsheets to find matching data? I've been there, and it's frustrating. That's why I'll show you how VLOOKUP() changed that way I work with Excel — and how it can do the same for you.

In this guide, you will understand how to use VLOOKUP() to search and retrieve data, whether in different sheets of your workbook or even in entirely separate Excel files. However, if you're not familiar with Excel functions at all, start with our Introduction to Excel course to get familiar with the basics.

The Quick Answer: How to Use VLOOKUP() from Another Sheet

Here's the fastest way to use VLOOKUP() to find data in another sheet:

=VLOOKUP(lookup_value, Sheet2!range, col_index, [range_lookup])

The key is in the second argument, where you reference the range in another sheet. You have to add the sheet name followed by an exclamation mark before your range, like this: SheetName!A2:D100

For example, if you're looking up a customer ID in the Customers sheet, you would use this syntax:

=VLOOKUP(A2, Customers!A2:D100, 2, FALSE)

And if your sheet name contains spaces, simply wrap it in single quotes like this:

=VLOOKUP(A2, 'Customer Data'!A2:D100, 2, FALSE)

Why We Use VLOOKUP() from Another Sheet 

VLOOKUP(), as you may know, lets you search for a value in a table and pull back a related value from a specified column. I say column because the ‘V’ in VLOOKUP() means ‘vertical’. VLOOKUP() is great because it mean, when you update information in one place, the information in another place is also updated. That is, updates happen automatically everywhere they're referenced.

Now, I use VLOOKUP() across different sheets because I store different types of information in different places. This sounds obvious but has an implication: It gives me a specific sheet that I could use for manual data entry, and it also, therefore, eliminates errors that can creep in. By knowing how to use VLOOKUP() from another sheet, I am better able to maintain clean datasets without redundant details. I can work faster, and I make fewer mistakes.

A Closer Look at VLOOKUP() from Another Sheet

The first step in using VLOOKUP() across sheets is figuring out what information you'll use to connect the data. We call this the lookup value or common field. It's the data that exists in both sheets and helps Excel match things up, and you must format it consistently in both sheets. Minor formatting differences, like hidden spaces or inconsistent data types, can give an #N/A error.

So, before you start writing your VLOOKUP() formula, make sure the lookup value exists in both sheets, the data types, like text or numbers, are consistent, and there are no hidden spaces or trailing characters.

Breaking down the VLOOKUP() formula

When writing a VLOOKUP() that pulls data from another sheet, the main adjustment is in the table_array parameter. You must add the sheet name followed by an exclamation mark (!) before your range. 

Let's say you have two sheets: Employee Data (where the data is stored) and Salary Data (where you want to display the salaries of each employee based on lookup value).

Sheet 1 named as Employee Data in Excel

Employee Data sheet. Image by Author

Sheet 2 named as Salary Data in Excel

Salary Data sheet. Image by Author

To transfer the salaries from the Employee Data sheet to the Salary Data sheet:

  1. Select the cell where you want the result.

  2. Start the VLOOKUP() formula: =VLOOKUP(

  3. Select lookup value: =VLOOKUP(A2,

  4. Reference the other sheet (this is the key part): =VLOOKUP(A2, Employee Data!A2:D4,

  5. Complete the formula (4 for specifying column, FALSE for exact match): =VLOOKUP(A2, 'Employee Data'!A2:D4, 4, FALSE)

When the above formula is applied, you'll get the following results:

data extracted from Employee Data sheeet and copied to Salary Data sheet in Excel

I would say that the most common mistake in a cross-sheet VLOOKUP() is incorrect sheet name references. So double-check this part of your formula if you ever face any issues in performing a cross-sheet VLOOKUP().

Example VLOOKUP() from another sheet

Let's see another example. I have two sheets — Flavors and Total Sale. In the Total Sale sheet, I want to record the total sales of all the ice cream flavors for a month.

The Flavors sheet looks like this:

Flavor sheet in Excel

Flavors sheet. Image by Author

The Total Sale sheet looks like this:

Total Sales sheet in Excel

Total Sale sheet. Image by Author

To get the total sales of the ice cream flavors from the Flavors sheet, I apply the following formula in cell B2 of the Total Sale sheet:

=VLOOKUP(A2,Flavors!A:E,5,FALSE)

This formula looks at the value in A2, searches for it in the Flavors sheet, and returns the result from the fifth column when it finds a match.

Fetched the total sales from one sheet and copied it to another sheet in Excel.

Total sales from one sheet to another. Image by Author

Troubleshooting Common Errors

Although it’d be easy to perform VLOOKUP() once you clearly understand how it works, you may encounter errors. Let’s see what are they and how to handle them:

#N/A errors

The dreaded #N/A error in VLOOKUP() can be frustrating, but it's usually fixable once you understand the cause. Here's how to spot and resolve:

  • Mismatched Data Types: Sometimes, your lookup value may be stored as text in one sheet and as a number in another. Excel sees these as different, even if they look the same to you.

  • Incorrect References: You may be looking in the wrong place – either the wrong sheet or the wrong range of cells. Double-check your sheet names and cell ranges. Make sure you've spelled the sheet name correctly and that your range includes all necessary data.

  • Exact Match Issues: If you're using FALSE for an exact match (usually recommended), your lookup value must match exactly what's in your table. So make sure there are no hidden spaces — you can even use the TRIM() function to remove them.

  • Lookup Value Not in the First Column: VLOOKUP() always looks for the lookup value in the first column of your range. So, make sure your lookup column is the leftmost column in your range.

  • Broken References: If the sheet you're referencing is renamed, deleted, or moved, formulas will break and give errors. To avoid this, keep your referenced sheets intact.

Handling issues with cross-sheet references

Check for consistent formatting before looking up data between sheets. To do so, you can use Excel's TEXT() or VALUE() functions. For example, you can use the TEXT() function within VLOOKUP() like this:

=VLOOKUP(TEXT(A2,"0"), Sheet2!B2:D10, 3, FALSE)

This will indicate to Excel that your lookup value should be treated as text, which can help if your other sheet stores things as text, too.

Otherwise, instead of showing #N/A errors, you can provide more user-friendly messages using the IF() formula. Here’s how:

For basic error handling: 

=IFERROR(VLOOKUP(A2, Sheet2!B:C, 2, FALSE), "Not Found")

For more detailed error handling: 

=IFERROR(VLOOKUP(A2, Sheet2!B:C, 2, FALSE), 
  "No match found for " & A2)

For nested error handling with different messages: 

=IF(ISBLANK(A2),"Please enter a value", IFERROR(VLOOKUP(A2, Sheet2!B:C, 2, FALSE),
"No match found"))

For more details on how to combine VLOOKUP() and IF(), read my detailed tutorial, How to Combine VLOOKUP() with IF() in Excel.

Final Thoughts

VLOOKUP() across sheets is one of Excel's most powerful features for anyone working with multiple datasets. Once you master the simple trick of adding the sheet name to your formula, you can pull data from anywhere in your workbook. While the errors may look frustrating at first, most VLOOKUP() issues come down to simple data mismatches that are easy to fix once you know what to look for.

The best way to get comfortable with a cross-sheet VLOOKUP() is to practice with your own data. Start with simple lookups between two sheets, then gradually add error handling as you build confidence. For more advanced Excel techniques, DataCamp offers a variety of Excel tutorials to help you advance your skills. Also, our Excel Fundamentals skill track always looks good on a resume.

Finally, if you are looking to understand more of the nuance around VLOOKUP(), check out my other VLOOKUP() tutorials:

Advance Your Career with Excel

Gain the skills to maximize Excel—no experience required.

Start Today for Free

Photo of Laiba Siddiqui
Author
Laiba Siddiqui
LinkedIn
Twitter

I'm a content strategist who loves simplifying complex topics. I’ve helped companies like Splunk, Hackernoon, and Tiiny Host create engaging and informative content for their audiences.

VLOOKUP FAQs

What is the difference between VLOOKUP() and HLOOKUP()?

VLOOKUP() searches for values in a vertical column, while HLOOKUP() searches horizontally across a row. For more on HLOOKUP(), read our tutorial, How to Use HLOOKUP() in Excel.

 

Can I nest VLOOKUP() functions?

Yes, to create more complex formulas, you can nest VLOOKUP() functions within other functions, like IF() or MATCH().

Is VLOOKUP() case-sensitive?

No, VLOOKUP() is not case-sensitive. It will treat abc and ABC as the same value.

Can I perform a VLOOKUP() on a closed workbook?

No, VLOOKUP() requires both the source and destination workbooks to be open to pull data.

Topics
Related

tutorial

Data Wrangling with VLOOKUP in Spreadsheets

In this tutorial, you will get an overview of how to use the VLOOKUP function and also a basic explanation of INDEX-MATCH.
Francisco Javier Carrera Arias's photo

Francisco Javier Carrera Arias

11 min

tutorial

How to Do a VLOOKUP() with Multiple Criteria

Master the art of using VLOOKUP() with multiple criteria in Excel. Explore advanced techniques like helper columns and the CHOOSE() function.
Laiba Siddiqui's photo

Laiba Siddiqui

10 min

tutorial

How to Use HLOOKUP in Excel

A beginner-friendly, comprehensive tutorial in mastering the HLOOKUP function in Microsoft Excel.
Arunn Thevapalan's photo

Arunn Thevapalan

6 min

tutorial

How to Combine VLOOKUP() with IF() in Excel

Combine VLOOKUP() with IF() for efficient data analysis, including conditional lookups, error handling, and dynamic column indexing.
Laiba Siddiqui's photo

Laiba Siddiqui

10 min

tutorial

XLOOKUP() vs. VLOOKUP(): A Comparison for Excel Users

XLOOKUP() searches in any direction, defaults to exact matches, and has built-in error handling, while VLOOKUP() only searches right and needs manual column indexing.
Laiba Siddiqui's photo

Laiba Siddiqui

11 min

tutorial

How to Use the XLOOKUP Excel Function with Multiple Criteria

This tutorial discusses the purpose and syntax of the XLOOKUP Excel function, its advantages concerning its predecessors, the two main ways of using XLOOKUP with multiple criteria including their pros and cons, extending functionality through the optional parameters, and the way of running a similar search in older Excel versions.
Elena Kosourova's photo

Elena Kosourova

0 min

See MoreSee More