Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Google Sheets VLOOKUP Across Tabs: How-To Guide

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

You can run a VLOOKUP against a different tab in Google Sheets by including the tab name and an exclamation mark before the range, like =VLOOKUP(A2, Sheet2!A:B, 2, FALSE). That one syntax change is all it takes; everything else about VLOOKUP stays the same. The steps below walk through the exact formula, how to build it without typos, and what to do when you get #N/A or #REF! errors.

What You'll Need

  • A Google Sheet with at least two tabs: one holding your lookup values (the tab you're typing in) and one holding the reference table (the tab you're looking up against).
  • The exact name of the reference tab, including any spaces or punctuation.
  • Your lookup column (the value you're searching for) must be the first column of the range you reference on the other tab.

Step-by-Step

  1. Open your main tab. Click the tab where you want the result to appear, for example a tab named Orders.
  2. Click the cell where the result should go. This is typically the first empty cell in a column next to your lookup values, such as B2.
  3. Type the start of the formula: =VLOOKUP(. Google Sheets will show a hint showing the expected arguments: search_key, range, index, [is_sorted].
  4. Enter the search key. Click the cell containing the value you want to look up, for example A2. The formula now reads =VLOOKUP(A2,.
  5. Switch to the reference tab. Click the tab that holds the data you're searching (for example Products). Google Sheets will automatically insert the tab name and an exclamation mark into the formula, giving something like =VLOOKUP(A2, Products!.
  6. Select the range. Drag across the columns you need on the reference tab. The first column of your selection must contain the values you're matching against. For example, select columns A through C if the product ID is in column A and the price is in column C. The formula becomes =VLOOKUP(A2, Products!A:C,.
  7. Add a comma and the column index. Count from the first column of your selected range. If the price is in the third column of your selection, type 3. The formula reads =VLOOKUP(A2, Products!A:C, 3,.
  8. Add FALSE for an exact match. Type FALSE (or 0) and close the parenthesis. The finished formula looks like =VLOOKUP(A2, Products!A:C, 3, FALSE). Using FALSE is important: with TRUE or a blank, Sheets assumes your first column is sorted and can return the wrong row.
  9. Press Enter. The result from the other tab should appear in the cell.
  10. Copy the formula down. Drag the small fill handle at the bottom-right corner of the cell, or copy the cell and paste it into the rows below. The search key reference (A2) will adjust to A3, A4 and so on, while the tab reference stays fixed.
  11. Lock the range if needed. If you plan to copy the formula to other sheets or move it around, wrap the range in absolute references, for example Products!$A:$C. Press F4 after selecting the range on desktop, or type the dollar signs manually. This prevents the range from shifting.

Common Mistakes

  • Forgetting the exclamation mark. A tab reference must be written as Sheet2!A:C, not Sheet2A:C. Sheets will throw a formula parse error.
  • Using a tab name with a space without quotes. If the tab is called Product List, the reference must be 'Product List'!A:C with single quotes around the name. Sheets usually adds these automatically when you click the tab, but typing by hand often misses them.
  • Looking up a column that isn't first. VLOOKUP only searches the leftmost column of the range you give it. If your lookup value is in column B of the reference tab, either start the range at B or use INDEX/MATCH or XLOOKUP instead.
  • Mismatched data types. If your lookup value is a number stored as text on one tab and a real number on the other, you'll get #N/A. Check with =ISNUMBER() or trim stray spaces with =TRIM().
  • Using TRUE or leaving the fourth argument blank. This enables approximate matching, which returns wrong results on unsorted data. Always use FALSE unless you specifically need a range lookup.
  • Hard-coding the column number incorrectly. The index counts from the first column of your selected range, not from column A of the sheet. If your range starts at column B and the answer is in column D, the index is 3, not 4.

Tips

  • Click the reference tab rather than typing its name. Sheets inserts the correct syntax, including quotes and the exclamation mark, which eliminates most errors.
  • Name your tabs simply, without spaces, to keep formulas readable: Products!A:C is easier to debug than 'Q3 Product List (final)'!A:C.
  • Use whole-column ranges like A:C for tables that grow, or a fixed range like $A$2:$C$100 if you want tighter control and faster recalculation on very large sheets.
  • Wrap the formula in IFERROR to replace #N/A with something readable: =IFERROR(VLOOKUP(A2, Products!A:C, 3, FALSE), "Not found").
  • If you need to look up to the left of your key column, switch to XLOOKUP, which handles any column direction and is available in Google Sheets.

Troubleshooting

#N/A error. The lookup value wasn't found in the first column of the range. Check for trailing spaces, case differences (VLOOKUP is not case-sensitive, so that's rarely the cause), or numbers stored as text. Try =TRIM(A2) on both sides to compare.

#REF! error. The column index is larger than the number of columns in your range, or the referenced tab was deleted or renamed. Count your columns again and confirm the tab still exists with the exact name used in the formula.

#VALUE! error. Usually a stray character, a missing comma, or a tab name with a space that isn't wrapped in single quotes. Rebuild the formula by clicking cells and tabs rather than typing.

Wrong result returned. The fourth argument is probably TRUE or blank. Change it to FALSE. Also confirm the index number matches the column you actually want.

Formula works in one row but not below. The range may have shifted because it wasn't locked. Use $ signs around the range, or check that the search key reference is relative (A2, not $A$2) so it moves down as you copy.

If that did not work, delete the formula and rebuild it step by step, clicking the reference tab instead of typing its name. If the tab name contains apostrophes or special characters, rename it temporarily to a simple name, test the formula, then rename it back and let Sheets update the reference.

Frequently Asked Questions

Can VLOOKUP reference a tab in a different Google Sheets file?

Not directly. VLOOKUP works within one spreadsheet file. To pull data from another file, use IMPORTRANGE to bring the data into a tab in your current file, then run VLOOKUP against that tab.

Do I need quotes around the tab name?

Only if the name contains spaces or special characters. Sheet2!A:C works, but 'Product List'!A:C needs the single quotes. Clicking the tab lets Sheets handle this automatically.

Why does my formula show the tab name as #REF!?

The referenced tab was renamed or deleted after the formula was created. Click the cell, look at the formula, and replace the broken reference with the current tab name.

Can I use VLOOKUP with a named range on another tab?

Yes. If you've created a named range (Data > Named ranges), you can use it in place of the tab reference: =VLOOKUP(A2, MyRange, 2, FALSE). Named ranges are file-wide, so no tab name is needed.

Is XLOOKUP better than VLOOKUP for cross-tab lookups?

XLOOKUP is more flexible: it can search any column direction, defaults to exact matching, and doesn't need a column index. VLOOKUP is still fine for simple left-to-right lookups and is more widely recognized.

Does the tab order matter?

No. VLOOKUP can reference any tab regardless of where it sits in the tab bar, as long as the name in the formula matches exactly.