To VLOOKUP between worksheets in Excel, use the same formula as a normal lookup but prefix the table array with the sheet name and an exclamation mark, like =VLOOKUP(A2,Sheet2!$A$2:$B$100,2,FALSE). This tells Excel to search for the lookup value in the range you specify on another sheet, and it works exactly the same as a lookup within the same sheet.
Why Use VLOOKUP Across Sheets?
VLOOKUP is one of Excel’s most-used functions because it lets you combine data from different tables without manual copying. When your data lives on separate worksheets—say, a customer list on one sheet and order totals on another—VLOOKUP lets you pull matching information into a single view. For example, you might have a product catalog on a sheet named “Products” and want to bring the price into a sales log on another sheet. Instead of retyping prices, you write one formula and copy it down.
The function works the same way across sheets as it does within one sheet: it searches the first column of a range for a value, then returns a value from a column you specify to the right. The only difference is how you reference the range—you add the sheet name followed by an exclamation mark.
How to Write a VLOOKUP Formula to Another Sheet
The syntax is =VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup]). When the table array is on another sheet, you include the sheet name and a bang (!) before the range. If the sheet name contains spaces or special characters, enclose it in single quotes, like ='Sales Data'!$A$2:$B$100.
Here is a step-by-step example:
- Assume you have a sheet named “Employees” with employee IDs in column A and names in column B (A2:B20).
- On another sheet, you have a list of IDs in A2:A10 and want to pull the names.
- In cell B2 of the second sheet, enter:
=VLOOKUP(A2,Employees!$A$2:$B$20,2,FALSE) - Press Enter, then copy the formula down for the other rows.
The formula returns the name for each ID. If an ID is not found, you’ll see #N/A, which you can handle with IFERROR if needed.
Using Named Ranges for Cleaner Formulas
If you use the same range repeatedly, or if the sheet name is long, consider defining a named range. Select the range on the source sheet, go to Formulas > Defined Names > Define Name, and give it a name like “ProductList”. Then your formula becomes =VLOOKUP(A2,ProductList,2,FALSE)—no sheet reference needed. Named ranges also make formulas easier to read and maintain, especially when sharing workbooks with others.
Common Mistakes and How to Fix Them
Several errors trip up users when VLOOKUPing across sheets:
- #N/A error: The lookup value isn’t in the first column of the table array, or the range is wrong. Double-check that the lookup column is the leftmost column in the range.
- #REF! error: The column index number is larger than the number of columns in the table array. For example, if your range is A:B and you ask for column 3, you get #REF!.
- Incorrect results with approximate match: If you use TRUE (or omit the last argument), VLOOKUP assumes the first column is sorted and returns the closest match. For exact matches, always use FALSE.
- Sheet name typos: If the sheet name is misspelled or missing the exclamation mark, Excel shows a #NAME? error.
To avoid these, use the formula builder or click on the other sheet while selecting the range—Excel inserts the correct reference automatically.
VLOOKUP vs. Other Lookup Functions
VLOOKUP is powerful but has limitations: it can only look to the right, and it requires the lookup column to be the first column in the range. Alternatives include:
- HLOOKUP: Searches horizontally across rows instead of columns. Useful when your data is laid out in rows.
- INDEX and MATCH: A more flexible combination. MATCH finds the position of the lookup value, and INDEX returns the value at that position. It can look left or right, and it doesn’t require sorting.
- XLOOKUP: Available in Excel 2021 and Microsoft 365. It simplifies everything:
=XLOOKUP(A2,Employees!$A$2:$A$20,Employees!$B$2:$B$20). It can return multiple values, handle errors natively, and works with unsorted data.
For most cross-sheet lookups, VLOOKUP is fine, but if you need to return a column to the left of the lookup column, switch to INDEX/MATCH or XLOOKUP.
Performance and Large Data Sets
VLOOKUP across sheets can slow down your workbook if you use it on thousands of rows, especially with approximate matches. To improve performance:
- Use exact match (FALSE) whenever possible—it’s faster.
- Limit the table array to the actual data range, not entire columns (e.g., use $A$2:$B$1000 instead of A:B).
- Consider using Power Query to merge tables if you’re doing a one-time data consolidation—it’s more efficient and doesn’t recalculate every time.
If you notice lag, try converting your data to an Excel Table (Ctrl+T) and using structured references, which can also make formulas more readable.
Frequently Asked Questions
Can I use VLOOKUP to pull data from a closed workbook?
Yes, but the formula will include the full file path, like =VLOOKUP(A2,'[Budget.xlsx]Sheet1'!$A$2:$B$10,2,FALSE). The workbook must be open for the formula to update; if it’s closed, Excel may return the last cached value or #REF!. For better stability, keep the source workbook open or use Power Query.
Why does my VLOOKUP return #N/A even though the value exists?
This usually happens because of leading/trailing spaces, non-printable characters, or the lookup value being stored as text while the source is numeric (or vice versa). Use the TRIM function to clean data, or convert both to the same data type.
How do I handle errors in VLOOKUP across sheets?
Wrap the formula in IFERROR: =IFERROR(VLOOKUP(A2,Sheet2!$A$2:$B$100,2,FALSE),"Not Found"). This displays a custom message instead of #N/A.
Can I VLOOKUP between sheets in Google Sheets?
Yes, the syntax is identical. In Google Sheets, you can also use =VLOOKUP(A2,Sheet2!$A$2:$B$100,2,FALSE). The main difference is that Google Sheets handles named ranges and array formulas slightly differently, but the core function works the same.
Is there a way to VLOOKUP from multiple sheets at once?
VLOOKUP alone can’t search multiple sheets. You can use IFERROR to chain multiple VLOOKUPs: =IFERROR(VLOOKUP(A2,Sheet1!$A$2:$B$10,2,FALSE),VLOOKUP(A2,Sheet2!$A$2:$B$10,2,FALSE)). Or, use XLOOKUP with a concatenated range if you’re on Microsoft 365.
Final Tips for Cross-Sheet Lookups
Always use absolute references (with $) for the table array so that copying the formula doesn’t shift the range. Test your formula on a small dataset first. And remember, if you need to return multiple columns, consider using INDEX/MATCH or XLOOKUP, which are more versatile. With these techniques, you’ll be pulling data across worksheets with confidence.
Related
- Switch Desktop Shortcut: How to Create & Use It
- Generate Random Number NumPy: How to Use np.random
- Data Entry Computer Skills: A Practical Guide
Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.
More in Formulas & functions
- DATEDIF Formula in Excel: Calculate Years and MonthsTo calculate completed years and the remaining whole months between two dates in Excel, use =DATEDIF(A2,B2,"y") for years…
- Convert Numbers to K in Excel: Formats and FormulasTo show numbers as thousands with a “k” in Excel, select the cells, press Ctrl+1, choose Number >…
- Excel COUNTIF Date in Cell? Formula & ExamplesTo count cells containing a specific date in Excel, use =COUNTIF(range, date) where date is a date entered…
- Excel Cell Comparison Formula: Examples and MethodsTo compare two cells in Excel, enter =A2=B2 in another cell, assuming the values you want to compare…
- Change Text Filter to Number Filter in Excel?To change a Text Filters menu to Number Filters in Excel, convert the values in that column from…
- CATIA Split Function: How It Cuts Parts and SurfacesIn CATIA, the Split function cuts a solid or surface with a selected plane or other cutting element…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.