VLOOKUP Different Worksheet: Step-by-Step Guide
In this article
To perform a VLOOKUP from a different worksheet, you use the formula =VLOOKUP(lookup_value, 'SheetName'!range, col_index_num, [range_lookup]). The key is to include the sheet name followed by an exclamation point before the cell range, which tells Excel to look outside the current active sheet for the data. This allows you to keep your raw data on one tab and your summary or reporting dashboard on another, keeping your workbook organized and professional.
What You'll Need
- A Microsoft Excel workbook with at least two separate worksheets (tabs).
- A unique identifier (Primary Key) that exists in both worksheets, such as an ID number, Email address, or SKU.
- The data on the source sheet (where the information is stored) must be organized so that the unique identifier is in the leftmost column of the range you select.
Step-by-Step
- Prepare Your Source Data: Navigate to the worksheet that contains the information you want to retrieve. Ensure that the column containing the value you are searching for (the lookup value) is the very first column of your data range. VLOOKUP cannot look to the left of the lookup column.
- Select the Destination Cell: Go to the worksheet where you want the result to appear. Click on the cell where you want the VLOOKUP to populate.
- Start the Formula: Type
=VLOOKUP(into the cell. - Select the Lookup Value: Click on the cell in your current worksheet that contains the value you want to search for. For example, if you are looking up an employee's name based on their ID, click the cell containing the ID. Type a comma (
,) to move to the next argument. - Reference the Different Worksheet: While the formula is still open, click the tab of the other worksheet at the bottom of your screen. This automatically tells Excel to switch the reference to that sheet.
- Highlight the Table Array: Click and drag to select the range of cells that contains both the lookup column and the column containing the data you want to return. You will notice that Excel writes the reference as
'SheetName'!A2:D100. Type a comma (,) to proceed. - Specify the Column Index Number: Count the columns in your selected range, starting from the leftmost column as 1. If the data you want to retrieve is in the third column of your selection, type
3. Type another comma (,). - Set the Range Lookup: For an exact match, type
FALSEor0. This ensures Excel only returns a value if it finds an identical match to your lookup value. Type a closing parenthesis). - Execute and Fill: Press Enter. Excel will automatically jump you back to the destination worksheet. If the result is correct, hover over the bottom-right corner of the cell (the fill handle) and drag it down to apply the formula to the rest of your list.
Common Mistakes
One of the most frequent errors is forgetting to lock the table array. When you drag a VLOOKUP formula down, Excel uses relative referencing, meaning the range shifts down one row for every row you move. To prevent this, you must use absolute references. Instead of 'Sheet2'!A2:D100, you should use 'Sheet2'!$A$2:$D$100. You can do this quickly by pressing the F4 key immediately after selecting the range.
Another common mistake is including the header row in the table array but then counting the columns incorrectly. Remember that the column index number refers to the position within the selected range, not the column letter of the spreadsheet. If your range starts at column C, then column C is index 1, column D is index 2, and so on.
Users also frequently forget the FALSE argument at the end of the formula. By default, if you leave the fourth argument blank, Excel assumes TRUE (approximate match). This can lead to wildly inaccurate results if your data is not sorted in ascending order, as Excel will return the closest value it finds rather than the exact one.
Tips
To make your VLOOKUPs more resilient, convert your source data into an official Excel Table (Ctrl + T). When you reference a Table, Excel uses structured references (like Table1[#All]) instead of cell ranges. The benefit is that Tables are dynamic; if you add new rows of data to the source sheet, the VLOOKUP will automatically include them without you having to update the range in every formula.
If your sheet names contain spaces (e.g., "Sales Data" instead of "SalesData"), Excel requires single quotes around the sheet name in the formula: 'Sales Data'!A1:B10. If you select the range by clicking the tab, Excel adds these automatically, but if you are typing the formula manually, forgetting these quotes will result in a formula error.
For those working with very large datasets, consider using the INDEX and MATCH combination or the newer XLOOKUP function if available in your version of Excel. These methods are often faster and more flexible because they allow you to look up values to the left of the identifier column, which VLOOKUP cannot do.
Troubleshooting
If you see a #N/A error, it means Excel cannot find the lookup value in the first column of your specified range. First, check for leading or trailing spaces in your cells. A cell containing "ID123 " will not match a cell containing "ID123". You can use the =TRIM() function to clean your data.
If you see a #REF! error, it usually means your column index number is larger than the number of columns in your selected range. For example, if you selected a range from A to C (3 columns) but told Excel to return data from column 4, it will trigger this error. Double-check your range selection and your index number.
If the formula returns the wrong value, check the fourth argument. Ensure it is set to FALSE. If it is set to TRUE and your source data is not sorted alphabetically or numerically, Excel will return an incorrect result based on the closest match it finds before giving up.
If the formula returns a #VALUE! error, check that your formula syntax is correct. This often happens if you have typed a comma in the wrong place or if the sheet name is misspelled and not enclosed in quotes.
Frequently Asked Questions
Can I VLOOKUP from a different workbook entirely?
Yes. The process is nearly identical. Instead of just a sheet name, the formula will include the file name in square brackets, such as '[DataFile.xlsx]Sheet1'!$A$2:$B$100. Note that if the source workbook is closed, the formula will show the full file path on your computer.
Why is my VLOOKUP returning a 0 instead of a blank?
VLOOKUP returns a 0 if it finds a match but the cell it is pulling from is empty. To fix this, you can wrap your formula in an IF statement: =IF(VLOOKUP(...)="", "", VLOOKUP(...)), which tells Excel to return a blank string instead of a zero.
Does the lookup value have to be in the first column?
Yes, for the standard VLOOKUP function, the identifier must be in the leftmost column of the range you select. If your identifier is in the middle of the data, you must either move the column or use the INDEX and MATCH functions.
Can I look up multiple values at once?
VLOOKUP only returns one value per formula. To retrieve multiple pieces of information (like an address, phone number, and email for one ID), you need to write separate VLOOKUP formulas for each, changing only the column index number for each specific piece of data.
Will VLOOKUP work if the data is on a hidden sheet?
Yes, VLOOKUP works perfectly fine with hidden sheets. This is a common way to hide complex raw data or sensitive lookup tables from the end-user while still allowing the summary sheet to function.
What is the difference between VLOOKUP and XLOOKUP?
XLOOKUP is a modern replacement that doesn't require the lookup value to be in the first column, defaults to an exact match, and can return multiple columns at once. However, VLOOKUP is still widely used for compatibility with older versions of Excel.