VLOOKUP Example Between Two Sheets in Excel

In Microsoft Excel, the VLOOKUP function is generally used to look up a value in the leftmost column of a table and then return a value in the same row from a specified column. In this article, you’ll find how you can use this VLOOKUP function between two sheets in Excel and extract data from another worksheet with proper examples and illustrations.


VLOOKUP Between Two Sheets in Excel: 4 Examples

Example 1: Use of VLOOKUP Between Two Sheets in the Same Excel Workbook

In the following picture, Sheet1 is representing some specifications of a number of smartphone models.

Example 1: Use of VLOOKUP Between Two Sheets in Similar Excel Workbook

And here is Sheet2 where only two columns from the first sheet have been extracted. In the Price column, we’ll apply the VLOOKUP function to get the prices of all devices from Sheet1.

Example 1: Use of VLOOKUP Between Two Sheets in Similar Excel Workbook

The required formula in the first output Cell C5 in Sheet2 will be:

=VLOOKUP($B5,Sheet1!$B$5:$E$14,4,FALSE)

Example 1: Use of VLOOKUP Between Two Sheets in Similar Excel Workbook

After pressing Enter, you’ll get the price of the first smartphone device extracted from Sheet1.

Now you have to use Fill Handle to autofill the rest of the cells in Column C. And the final outlook should be as follows:

Example 1: Use of VLOOKUP Between Two Sheets in Similar Excel Workbook

Read More:How to Use VLOOKUP Formula in Excel with Multiple Sheets


Example 2: Use of VLOOKUP Between Two Sheets in Different Workbooks

Now we’ll use the VLOOKUP function to extract data from another worksheet in another workbook.

For example, the following primary data table is lying in a workbook named Book1.

Example 2: Use of VLOOKUP Between Two Sheets in Different Workbooks

And here is another workbook named Book2 that will represent the output data extracted from the first workbook.

Example 2: Use of VLOOKUP Between Two Sheets in Different Workbooks

In the second workbook, the required formula in the first output Cell C5 will be now:

=VLOOKUP(B5, [Book1.xlsx]Sheet1!$B$5:$E$14,4, FALSE)

Example 2: Use of VLOOKUP Between Two Sheets in Different Workbooks

After pressing Enter and auto-filling the rest of the cells in the Price column, you’ll get all the output data right away as shown in the picture below.

Example 2: Use of VLOOKUP Between Two Sheets in Different Workbooks

Note: While extracting data from a different workbook, you must remember that both workbooks have to be kept open. Otherwise, the mentioned formula won’t work out and will return a #N/A error.


Example 3: IFERROR with VLOOKUP across Two Worksheets in Excel

Sometimes the lookup value may not be found in the primary data table. In that case, we can use the IFERROR function to customize an error message and show the output when the formula returns.

For example, in the following picture, the smartphone device in Cell B5 is not available in Sheet1. So, in the output Cell C5, the VLOOKUP function should return an error value. But we’ll now replace the error value with a customized message “Not Found”.

So, the required formula in Cell C5 should be now:

=IFERROR(VLOOKUP(B5,Sheet1!B5:E14,4,FALSE),"Not Found")

Example 3: IFERROR with VLOOKUP across Two Worksheets in Excel

After pressing Enter and auto-filling the entire column, we’ll get the following outputs.

Example 3: IFERROR with VLOOKUP across Two Worksheets in Excel


Example 4: Combining INDIRECT with VLOOKUP for Two Sheets in Excel

The INDIRECT function returns a reference specified by a text string. By using this INDIRECT function inside, the VLOOKUP function will pull out data from a named range in any worksheet available in a workbook.

At first, we have to define a name for the selected range of cells B5:E14 in the Name Box. Let’s assume, we’re naming it ‘Specs’ as the data table is representing the specifications of the smartphone devices in a nutshell.

Example 4: Combining INDIRECT with VLOOKUP for Two Sheets in Excel

Now, in Sheet2, the required formula in the output Cell C5 will be:

=IFERROR(VLOOKUP(B5,INDIRECT("Specs"),4,FALSE),"Not Found")

Example 4: Combining INDIRECT with VLOOKUP for Two Sheets in Excel

After inputting the mentioned formula and dragging it down to the last cell, you’ll get similar results as found in the other three previous examples in this article.

Example 4: Combining INDIRECT with VLOOKUP for Two Sheets in Excel


Download Practice Workbook

You can download the Excel workbook that we’ve used to prepare this article.


Concluding Words

So, these are all four quick and simple formulas with the VLOOKUP function to draw out data from another worksheet. If you have any questions or feedback, please let me know in the comment section.


You May Also Like to Explore


<< Go Back to VLOOKUP Between Worksheets | Excel VLOOKUP Function | Excel Functions | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Nehad Ulfat
Nehad Ulfat

NEHAD ULFAT is an excellent marine engineer who loves working with Excel and diving into VBA programming. For him, programming is like a tool that saves time when dealing with data, files, and the internet. His skills go beyond the basics, including ABACUS, AutoCAD, Rhinoceros, Maxsurf, and Hydromax. He got his B.Sc in Naval Architecture & Marine Engineering from BUET but switched gears, working as a content developer.  In this role, he creates techy content all about Excel... Read Full Bio

2 Comments
  1. I need to lookup a meter number in column A from one table, find that same meter number in column A from another table and return the reading value in column B from the second table. If there is no match for the meter number, then return a blank for that cell. How do I do that? Here is a partial list of the tables. Help please

    Table 1 Table 2
    Meter Value Meter Value
    160404015 457 160404015 457
    160404016 737 160404016 737
    160404017 386
    160404019 734 160404019 737
    160404021 1551 160404021 1852

  2. Reply Avatar photo
    Rubayed Razib Suprov Aug 14, 2022 at 1:13 PM

    Use the following formula =IFERROR(VLOOKUP(B5,D5:E9,2,FALSE),””)
    Your given sample table is stored in column B: D. And this VLOOKUP function will look for the value of cell B5(table 1) in the first column on table 2, and then using that position, will return the meter reading from the E column. And it will return blank if there isn’t any meter reading.

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo