VLOOKUP in Google Sheets from Another Tab
In this article
To use VLOOKUP in Google Sheets from a different tab, reference the tab name followed by an exclamation mark and the range, like =VLOOKUP(A2, 'OtherTab'!A:B, 2, FALSE). This pulls matching data from the specified sheet without merging or copying anything.
Why VLOOKUP Across Tabs Is Useful
Keeping related data on separate tabs is a common way to organize a spreadsheet—one tab for raw data, another for reports, and another for calculations. VLOOKUP lets you bring values from those other tabs into your current view, so you don’t have to duplicate data or manually search for matches. For example, you might have a tab called Products with product IDs in column A and prices in column B, and a separate Orders tab where you need to show each product’s price next to the ordered ID. Instead of typing prices by hand, VLOOKUP does it automatically.
How VLOOKUP Works in Google Sheets
VLOOKUP stands for “vertical lookup.” It searches for a key value in the first column of a range and returns a value from a column to the right in the same row. The syntax is:
=VLOOKUP(search_key, range, index, [is_sorted])
- search_key – the value you’re looking for (e.g., a product ID).
- range – the table you’re searching, including the first column with the keys and the columns you want to return.
- index – the column number in the range to return (1 is the first column, 2 is the second, etc.).
- is_sorted – use
FALSEfor an exact match (most common), orTRUEfor an approximate match (requires sorted data).
When the range is on another tab, you simply include the tab name in the range argument. If the tab name has spaces or starts with a number, wrap it in single quotes, like 'Sales Data'!A:C.
Step-by-Step: VLOOKUP from Another Tab
- Open your Google Sheets file and go to the tab where you want the formula to appear.
- Click the cell where you want the result.
- Type
=VLOOKUP(. - Click the cell that contains the search key (e.g., A2 in your current tab).
- Type a comma, then switch to the other tab by clicking its tab name at the bottom.
- Select the range that contains the lookup table (e.g., A:B). You can also type it manually, like
'OtherTab'!A:B. - Type a comma, then enter the column number (e.g., 2 for the second column).
- Type a comma, then enter
FALSEfor an exact match. - Close the parenthesis and press Enter.
Example: =VLOOKUP(A2, 'Inventory'!A:B, 2, FALSE) will look for the value in A2 of your current tab, find it in column A of the Inventory tab, and return the corresponding value from column B.
Common Problems and How to Fix Them
Most VLOOKUP errors come from a few simple mistakes. Here are the most frequent ones:
- #N/A error – The search key isn’t found. Check for extra spaces, different data types (text vs. number), or that the search key actually exists in the first column of the range.
- #REF! error – The index number is greater than the number of columns in the range. If your range is A:B, index 2 is fine, but index 3 would fail.
- Wrong results – If you used
TRUEfor is_sorted but your data isn’t sorted, you may get incorrect matches. UseFALSEfor exact matches. - Tab name with spaces – If you don’t wrap the tab name in single quotes, Google Sheets will show a parse error. Always quote names like
'My Tab'!A:B.
VLOOKUP vs. Other Lookup Functions
VLOOKUP is the classic choice, but Google Sheets also offers XLOOKUP and INDEX/MATCH. XLOOKUP is more flexible because it can search to the left, return multiple columns, and handle errors more gracefully. INDEX/MATCH is another alternative that gives you full control over column positions. For most simple lookups across tabs, VLOOKUP is perfectly fine. But if you need to look up values to the left of the search column, you’ll need one of the alternatives.
Tips for Reliable VLOOKUP Formulas
- Use absolute references – If you copy the formula down, lock the range with dollar signs, like
'Inventory'!$A:$B, so the range doesn’t shift. - Keep data types consistent – Make sure the search key and the first column values are both numbers or both text. Sometimes numbers stored as text cause mismatches.
- Sort data if using approximate match – If you use
TRUE, the first column must be sorted in ascending order, or you’ll get wrong results. - Use IFERROR to handle missing values – Wrap your formula in
=IFERROR(VLOOKUP(...), "Not Found")to display a friendly message instead of #N/A.
Frequently Asked Questions
Can I use VLOOKUP across different Google Sheets files?
Yes, but you need to use the IMPORTRANGE function first to bring the data into your current file, or reference the other file with its URL in the formula. The syntax is =VLOOKUP(A2, IMPORTRANGE("spreadsheet_url", "Sheet1!A:B"), 2, FALSE). You’ll need to grant access to the external sheet the first time.
Why does my VLOOKUP return #N/A even though the value exists?
This usually happens because of a mismatch in data type (e.g., one is text and the other is number), extra spaces in the cells, or the search key isn’t in the first column of the range. Use =TRIM() to remove spaces, or convert both to the same type.
Can I use VLOOKUP to return a value from a column to the left of the search column?
No, VLOOKUP only returns values to the right. For leftward lookups, use INDEX/MATCH or XLOOKUP.
Is it better to use VLOOKUP or XLOOKUP in Google Sheets?
XLOOKUP is more powerful and easier to use in many cases, but VLOOKUP is still widely supported and works fine for simple rightward lookups. If you’re comfortable with VLOOKUP, there’s no urgent need to switch.
How do I copy a VLOOKUP formula down a column without changing the range?
Use absolute references with dollar signs, like $A$1:$B$100, so the range stays fixed while the search key changes (e.g., A2, A3, A4).