To VLOOKUP across two worksheets, you reference the other sheet’s table array in the formula, like =VLOOKUP(A2,Sheet2!$A$2:$B$100,2,FALSE). This pulls matching data from a different sheet in the same workbook, and the same syntax works for Google Sheets.
Why VLOOKUP Between Sheets Is Different
VLOOKUP is one of Excel’s most used lookup functions because it searches a table vertically for a key and returns a value from a column to the right. When your data lives on a separate worksheet, the only real difference is how you write the table array argument: you must include the sheet name followed by an exclamation mark. For example, Sheet2!$A$2:$B$100 tells Excel to look in Sheet2, cells A2 through B100. The exclamation mark separates the sheet reference from the cell range. If the sheet name contains spaces (like “Sales Data”), you must wrap it in single quotes: 'Sales Data'!$A$2:$B$100.
How to VLOOKUP Across Two Worksheets (Step-by-Step)
Assume you have a workbook with two sheets: “Employees” (with employee IDs in column A and names in column B) and “Sales” (with employee IDs in column A and sales amounts in column B). You want to add the employee name next to each sales record.
- Go to the “Sales” sheet and click cell C2 (where you want the name).
- Type
=VLOOKUP(. - Click cell A2 (the employee ID on the Sales sheet) to use as the lookup value.
- Type a comma, then click the “Employees” sheet tab and select the range A2:B100. Excel will insert
Employees!A2:B100. Press F4 to make it absolute:Employees!$A$2:$B$100. - Type a comma, then
2(the column number in the range that contains the name). - Type a comma, then
FALSEfor an exact match, and close the parenthesis:=VLOOKUP(A2,Employees!$A$2:$B$100,2,FALSE). - Press Enter. Drag the fill handle down to copy the formula to other rows.
On a Mac, the steps are identical; the F4 key may be replaced by Command+T to toggle absolute references. In Excel for the web, F4 works in most browsers, but you can also type the dollar signs manually.
Choosing Between VLOOKUP, INDEX/MATCH, and XLOOKUP
VLOOKUP has limitations: it can only return values to the right of the lookup column, and it breaks if you insert a column in the table array. For these reasons, many users switch to INDEX/MATCH or XLOOKUP. XLOOKUP is available in Excel 2021 and Microsoft 365, and it simplifies cross-sheet lookups: =XLOOKUP(A2,Employees!$A$2:$A$100,Employees!$B$2:$B$100). This is more flexible because you specify the return range separately. INDEX/MATCH works in all versions: =INDEX(Employees!$B$2:$B$100,MATCH(A2,Employees!$A$2:$A$100,0)). For most new workbooks, XLOOKUP is the easiest to write and read, but VLOOKUP remains common in older files and is perfectly fine for simple lookups.
Common Problems and How to Fix Them
- #N/A error: The lookup value isn’t found in the other sheet’s first column. Check for extra spaces, different data types (text vs. number), or that the range includes the correct rows.
- #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, column index 3 is invalid.
- Incorrect results with TRUE (approximate match): If you use TRUE or omit the fourth argument, VLOOKUP assumes the first column is sorted ascending. If it isn’t, you’ll get wrong matches. Always use FALSE for exact matches unless you specifically need an approximate match.
- Sheet name with spaces: Wrap the sheet name in single quotes:
='My Sheet'!$A$2:$B$100. - Lookup column not first: VLOOKUP only searches the first column of the table array. If your ID is in column B, you must reorder the range so the ID is first, or use INDEX/MATCH/XLOOKUP.
VLOOKUP Across Two Separate Workbooks
If your data is in a different file (not just a different sheet), the formula includes the workbook name in square brackets, like =VLOOKUP(A2,'[SalesData.xlsx]Sheet1'!$A$2:$B$100,2,FALSE). Both files must be open for the formula to update dynamically. If you close the source workbook, the formula still works but shows the last calculated values. For a more stable link, consider using Power Query to import the data, especially for large datasets.
Performance and Accuracy Tips
VLOOKUP with FALSE performs an exact match by scanning the first column from top to bottom. On large datasets (tens of thousands of rows), this can slow down your workbook. To improve performance, use XLOOKUP (which is optimized) or INDEX/MATCH. Also, keep your table array as small as possible—don’t reference entire columns like Sheet2!A:B if you only need 100 rows. For accuracy, ensure your lookup values are consistent: use the TRIM function to remove extra spaces, and use the TEXT function to convert numbers to text if needed. If you’re working with financial data, always verify the results manually for a few rows before relying on the formula.
Frequently Asked Questions
Can VLOOKUP pull data from a sheet that is not in the same workbook?
Yes, but you must include the workbook name in the formula, like ='[OtherWorkbook.xlsx]Sheet1'!$A$2:$B$100. Both files need to be open for the link to update automatically. If you close the source, the formula retains the last values.
Why is my VLOOKUP returning #N/A even though the value exists?
This usually happens when the lookup value is text but the source column contains numbers (or vice versa), or when there are invisible spaces. Use =VLOOKUP(TEXT(A2,"0"),Sheet2!$A$2:$B$100,2,FALSE) to convert, or clean the data with TRIM and CLEAN.
How do I use VLOOKUP with a sheet name that has a space?
Wrap the sheet name in single quotes: =VLOOKUP(A2,'My Data'!$A$2:$B$100,2,FALSE). The quotes are required only when the name contains spaces or special characters.
Is there a way to VLOOKUP from multiple sheets at once?
VLOOKUP itself cannot search multiple sheets. You can use IFERROR with multiple VLOOKUPs: =IFERROR(VLOOKUP(A2,Sheet1!$A$2:$B$100,2,FALSE),IFERROR(VLOOKUP(A2,Sheet2!$A$2:$B$100,2,FALSE),"Not found")). For a cleaner solution, use Power Query to combine sheets into one table.
Does VLOOKUP work in Google Sheets the same way?
Yes, the syntax is identical. The only difference is that Google Sheets automatically adds the sheet name with a single quote if it contains spaces. Also, Google Sheets has a similar XLOOKUP function (available to all users) that works the same as Excel’s.
Alternatives to VLOOKUP for Cross-Sheet Lookups
If VLOOKUP feels limiting, consider these alternatives:
- XLOOKUP: Available in Excel 2021/365 and Google Sheets. Simpler syntax, can return values to the left, and has built-in error handling.
- INDEX/MATCH: Works in all Excel versions. More flexible than VLOOKUP but longer to write.
- Power Query: Best for merging large datasets from multiple sheets or files without formulas. You can load each sheet as a query, merge them on a key column, and load the result back to a worksheet.
- PivotTable: If you just need to summarize data, a PivotTable with multiple ranges (using the PivotTable Wizard) can combine data without formulas.
Choose the method that fits your Excel version and your comfort level. For most everyday lookups, VLOOKUP or XLOOKUP is sufficient.
Related
- BigQuery Convert String to Number: CAST & SAFE_CAST
- SQL % Operator in Strings: LIKE Wildcards Explained
- Power Automate Split On Setting Explained
Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.
More in Formulas & functions
- VLOOKUP vs INDEX MATCH: Which to Use?For most lookup tasks in Excel, INDEX MATCH is the more flexible and reliable choice, but VLOOKUP is…
- BMI Formula in Excel: Calculate and Interpret ResultsTo calculate BMI in Excel, divide weight in kilograms by height in metres squared. If weight is in…
- Calculate Age in Excel With a Birthday Date FormulaTo calculate someone’s age in completed years in Excel, enter their birthday as a real date in A2,…
- How to Merge Two Sheets in Excel with VLOOKUP FormulasTo merge information from two Excel sheets by a shared ID, add a column to the sheet you…
- VLOOKUP and Conditional Formatting: How to Use ThemVLOOKUP and conditional formatting can be combined so that cells change color based on values retrieved from another…
- Excel Text Filter Options: A Practical GuideExcel’s text filters let you show rows whose text matches a condition: choose options such as Equals, Begins…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.