VLOOKUP Google Sheets Different Sheet: Step-by-Step Guide
In this article
To use VLOOKUP across different sheets in Google Sheets, you use the standard VLOOKUP formula but reference the second sheet's name followed by an exclamation point (e.g., 'Sheet2'!A:B) within the range argument. This allows you to pull data from a master table on one tab into a summary table on another based on a shared unique identifier.
What You'll Need
- A Google Spreadsheet with at least two separate tabs (sheets).
- A "Search Key" (a unique ID, email, or product code) that exists in both sheets.
- The data you want to retrieve must be to the right of the search key in the source sheet.
Step-by-Step
- Identify Your Search Key: Go to the sheet where you want the result to appear (the destination sheet). Identify the cell that contains the value you are looking for. For example, if you are looking up a price for "Product ID 101", the cell containing "101" is your search key. Let's assume this is cell A2.
- Start the Formula: In the cell where you want the result to be displayed, type
=VLOOKUP(. - Select the Search Key: Click on the cell containing your search key (A2) and then type a comma. Your formula should now look like
=VLOOKUP(A2,. - Reference the Different Sheet: Now you must define the range on the other sheet. You can do this in two ways:
- The Click Method: While the formula is still open, click the tab name at the bottom of the screen for the source sheet. Highlight the columns that contain your data. For example, click and drag from column A to column C. Google Sheets will automatically write the reference as
'Sheet2'!A:C. - The Manual Method: Type the name of the sheet in single quotes, followed by an exclamation point and the range. Example:
'Inventory List'!A:C. The single quotes are mandatory if your sheet name contains spaces.
=VLOOKUP(A2, 'Sheet2'!A:C,. - The Click Method: While the formula is still open, click the tab name at the bottom of the screen for the source sheet. Highlight the columns that contain your data. For example, click and drag from column A to column C. Google Sheets will automatically write the reference as
- Specify the Column Index Number: Count the columns in your selected range starting from the left. The search key column is always 1. If the data you want to retrieve is in the third column of that range, type
3. Type a comma after the number. Your formula is now=VLOOKUP(A2, 'Sheet2'!A:C, 3,. - Set the Sort Order (Exact Match): For almost all business and organizational tasks, you need an exact match. Type
FALSEor0. This tells Google Sheets not to return a close match if the exact ID isn't found. - Close and Execute: Close the parenthesis and press Enter. The final formula should look like
=VLOOKUP(A2, 'Sheet2'!A:C, 3, FALSE). - Apply to Other Rows: Click the small blue square in the bottom-right corner of the cell and drag it down to apply the VLOOKUP to the rest of your list.
Common Mistakes
One of the most frequent errors is placing the search key in a column that is not the first column of the selected range. VLOOKUP only looks for the search key in the leftmost column of the range you provide. If your ID is in Column B but your range starts at Column A, the formula will return an error or the wrong data. Always ensure your range begins with the column containing the unique identifier.
Another common mistake is forgetting the single quotes around sheet names that contain spaces. If your sheet is named Sales Data, writing Sales Data!A:C will cause a formula parse error. You must write 'Sales Data'!A:C. While Google Sheets often adds these automatically when you click, manual entry often overlooks this detail.
Users also frequently omit the FALSE or 0 argument at the end of the formula. By default, if left blank, VLOOKUP assumes TRUE (approximate match). This requires the first column of your source data to be sorted in ascending order. If your data is not sorted and you use TRUE, Google Sheets may return a value from a completely different row that it perceives as "close enough," leading to critical data inaccuracies.
Tips
To make your formulas more robust, use absolute references for your range. When you drag a VLOOKUP formula down, the range reference also shifts (e.g., A1:C10 becomes A2:C11). To prevent this, use dollar signs to lock the range: 'Sheet2'!$A$1:$C$100. This ensures that every row looks at the exact same table area on the second sheet.
If you find yourself managing very large datasets, consider using INDEX(MATCH()) or XLOOKUP. XLOOKUP is a newer, more flexible alternative that does not require the search key to be in the first column and defaults to an exact match, reducing the chance of the common errors mentioned above.
To handle cases where a search key might not exist in the source sheet, wrap your VLOOKUP in an IFERROR function. Instead of seeing a messy #N/A error, you can display a custom message. For example: =IFERROR(VLOOKUP(A2, 'Sheet2'!A:C, 3, FALSE), "Not Found"). This keeps your spreadsheet professional and easy to read.
Troubleshooting
If your VLOOKUP is returning #N/A, it means the formula is working, but it cannot find the search key. First, check for leading or trailing spaces in your cells. A cell containing "101 " (with a space) is not the same as "101". You can use the =TRIM() function to clean your data in both sheets.
Next, verify the data types. If the search key in Sheet 1 is formatted as "Text" but the key in Sheet 2 is formatted as a "Number", VLOOKUP will not recognize them as a match. Highlight the columns in both sheets and go to Format > Number > Plain Text to ensure they are consistent.
If you receive a #REF! error, it usually means your column index number is higher than the number of columns in your range. For example, if your range is A:B (2 columns) but you told the formula to pull data from column 3, it will fail. Expand your range to include the necessary column.
If you see a #ERROR! (Formula Parse Error), check your syntax. Ensure you have used commas to separate arguments and that your sheet names are correctly enclosed in single quotes if they contain spaces. Check that you haven't accidentally used a semicolon instead of a comma, which can happen depending on your regional spreadsheet settings.
Frequently Asked Questions
Can VLOOKUP pull data from a completely different file?
No, VLOOKUP only works within the same spreadsheet file. To pull data from a separate file, you must first use the IMPORTRANGE function to bring the data into a tab in your current file, and then run the VLOOKUP on that imported data.
Does the source sheet have to be sorted?
Only if you are using the TRUE (approximate match) setting. If you use FALSE or 0, the data can be in any order, and the formula will still find the exact match.
What happens if there are multiple matches for the search key?
VLOOKUP only returns the first match it finds, searching from the top of the range downward. If you need to find all matching instances, you should use the FILTER function instead.
Can I look up data to the left of the search key?
Standard VLOOKUP cannot look to the left; it only searches the first column and moves right. To look left, you can use XLOOKUP or a combination of INDEX and MATCH.
Will the VLOOKUP update automatically if I change data in the source sheet?
Yes, VLOOKUP is dynamic. Any changes made to the values in the source sheet will be reflected in the destination sheet immediately upon the next calculation.