Yes, you can use VLOOKUP to pull data from another sheet in the same workbook. The formula is =VLOOKUP(lookup_value, 'SheetName'!range, col_index, FALSE) — the key is adding the sheet name followed by an exclamation mark before the range. For example, to find a product price stored on a sheet named “Prices,” you would write =VLOOKUP(A2, Prices!A:B, 2, FALSE). This works in Excel for Microsoft 365, Excel 2021, and older versions, and the same syntax applies in Google Sheets.
Understanding VLOOKUP Basics
VLOOKUP (Vertical Lookup) searches for a value in the first column of a range and returns a value from a specified column in the same row. Its syntax is =VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup]). The lookup_value is what you’re searching for (e.g., a product ID). The table_array is the range where you search, and it must include the lookup column and the return column. col_index_num is the column number in that range (counting from the left) from which to return a value. range_lookup is optional: use FALSE for an exact match (recommended) or TRUE for an approximate match (requires sorted data).
How to Reference Another Sheet in VLOOKUP
To reference a range on another sheet, type the sheet name followed by an exclamation mark before the range. If the sheet name contains spaces or special characters, enclose it in single quotes. For example:
- Sheet named Prices:
=VLOOKUP(A2, Prices!A:B, 2, FALSE) - Sheet named Product Data:
=VLOOKUP(A2, 'Product Data'!A:B, 2, FALSE)
If you’re entering the formula manually, you can also click on the other sheet’s tab while selecting the range — Excel will insert the correct reference automatically. On Mac, the process is identical; the formula bar and sheet tabs work the same way.
Step-by-Step: Writing a Cross-Sheet VLOOKUP
Suppose you have a sales sheet with product IDs in column A, and you want to pull the corresponding prices from a sheet named “PriceList” where column A has IDs and column B has prices.
- Click on the cell where you want the price to appear (e.g., B2 on the sales sheet).
- Type
=VLOOKUP(. - Click on the cell containing the lookup value (e.g., A2).
- Type a comma, then click on the “PriceList” tab and select columns A and B (or type
PriceList!A:B). - Type a comma, then
2(the column number of the price), then, FALSE. - Close the parenthesis and press Enter.
The formula should look like =VLOOKUP(A2, PriceList!A:B, 2, FALSE). If the sheet name has spaces, Excel will add single quotes automatically when you click the tab.
Common Errors and How to Fix Them
Several errors can occur when using VLOOKUP across sheets:
- #N/A – The lookup value isn’t found in the first column of the range. Check for extra spaces, different data types (text vs. number), or that the lookup column is truly the first column in the range.
- #REF! – The column index number is greater than the number of columns in the range. If your range is
A:B, column index 2 is fine, but 3 would error. - #VALUE! – The lookup value or table array is invalid, often due to a missing comma or incorrect range.
- Wrong results with TRUE – If you use
TRUE(approximate match) and the first column isn’t sorted ascending, you’ll get incorrect matches. Always useFALSEfor exact matches unless you have a sorted list and need the nearest match.
Also, if you see “#NAME?” it usually means the sheet name is misspelled or missing quotes when needed.
VLOOKUP vs. XLOOKUP for Cross-Sheet Lookups
XLOOKUP (available in Excel 2021 and Microsoft 365) is a modern alternative that is often easier to use. Unlike VLOOKUP, XLOOKUP can look to the left, doesn’t require the lookup column to be the first in the range, and has a built-in “if not found” argument. The syntax is =XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found]). For example, =XLOOKUP(A2, PriceList!A:A, PriceList!B:B, "Not found"). XLOOKUP also works across sheets the same way — just reference the sheet with an exclamation mark. For users on older Excel versions, VLOOKUP remains necessary, but if you have Microsoft 365, XLOOKUP is generally recommended for its flexibility and fewer error cases.
Using VLOOKUP with Multiple Sheets (INDIRECT)
Sometimes you need to look up data from one of several sheets based on a sheet name stored in a cell. You can use the INDIRECT function to build the sheet reference dynamically. For instance, if cell C1 contains the sheet name (e.g., “Jan”), you can write =VLOOKUP(A2, INDIRECT("'"&C1&"'!A:B"), 2, FALSE). This formula constructs the string 'Jan'!A:B and INDIRECT converts it to a real range. Note that INDIRECT is volatile (recalculates every time the workbook changes) and can slow down large workbooks. Also, if the sheet name has spaces, the single quotes are essential.
Frequently Asked Questions
Can I use VLOOKUP to reference a sheet in another workbook?
Yes, but you need to include the workbook name in square brackets, like =VLOOKUP(A2, '[SalesData.xlsx]Sheet1'!A:B, 2, FALSE). The other workbook must be open in the same Excel instance, or you must include the full file path. If the workbook is closed, you’ll need the full path, e.g., ='C:\Data\[SalesData.xlsx]Sheet1'!A:B. This is fragile if the file moves, so it’s often better to use Power Query or copy the data.
What if my sheet name has spaces or special characters?
Enclose the sheet name in single quotes, like 'My Sheet'!A:B. Excel does this automatically when you click the tab while selecting the range. If you type it manually, don’t forget the quotes.
Does VLOOKUP work if the sheets are in different orders?
Yes, the sheet order doesn’t matter. VLOOKUP only cares about the range you specify and the lookup value. As long as the lookup column is the first column in the range, it works regardless of where the sheet is located in the workbook.
Can I use VLOOKUP to return a value from a column to the left of the lookup column?
No, VLOOKUP can only return values to the right of the lookup column. If you need to return a value to the left, use INDEX/MATCH or XLOOKUP. For example, =INDEX(Sheet1!A:A, MATCH(D2, Sheet1!B:B, 0)) returns a value from column A where column B matches D2.
Why is my VLOOKUP returning the wrong value even though the lookup value exists?
This usually happens when range_lookup is set to TRUE or omitted, and the first column isn’t sorted. Even if the value exists, approximate match can return the next largest value. Always use FALSE for exact matches. Also check for hidden spaces or non-printable characters in the lookup column — use =TRIM(A2) or =CLEAN(A2) to clean the data.
Is there a way to make VLOOKUP case-sensitive?
No, VLOOKUP is not case-sensitive. If you need case-sensitive matching, use the EXACT function combined with an array formula or use XLOOKUP with a helper column. For example, you can create a helper column with =EXACT(A2, lookup_value) and then use a formula like =INDEX(return_range, MATCH(TRUE, exact_range, 0)).
Alternatives to VLOOKUP for Cross-Sheet References
Besides XLOOKUP and INDEX/MATCH, you can also use Power Query to merge tables from different sheets without formulas. Power Query is available in Excel 2016 and later; it allows you to combine data from multiple sheets into a single table, which is useful for large datasets. Another option is to use a simple direct cell reference if you just need a single value, like =PriceList!B2. However, that doesn’t search; it just pulls a specific cell. For dynamic lookups, VLOOKUP, XLOOKUP, or INDEX/MATCH are the standard tools.
Related
- SQL Server COUNT DISTINCT: Syntax, Examples, and Pitfalls
- How to Select a Cell in Excel: Quick Steps
- What Are Shortcut Keys? Full Guide
Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.
More in Formulas & functions
- Excel Formula for Extracting Text from a CellTo extract a set number of characters in Excel, use =LEFT(A2,3) when the text is in A2 and…
- Excel MATCH with Multiple Duplicates: How to HandleTo find the position of a value when duplicates exist, the MATCH function returns the first match by…
- Excel DATEDIF Age Formula: Calculate Years, Months, DaysTo calculate someone’s age in completed years in Excel, use =DATEDIF(A2,TODAY(),"Y"), with the date of birth in A2.…
- Subtotal Formula for Serial Number?The direct answer: there is no single built-in Excel formula that automatically generates serial numbers for subtotals. Instead,…
- SUMIFS Excel Less Than: Criteria and ExamplesTo sum values in Excel only when a related value is less than a limit, use SUMIFS with…
- Round in Excel to a Whole Number: Formula and ExamplesTo round a number to the nearest whole number in Excel, use ROUND with 0 as the number…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.