How to VLOOKUP from another sheet in Google Sheets

Quick answer

Put the tab name and an exclamation mark in front of the range: =VLOOKUP(B2,'Price List'!A:C,2,FALSE). That looks up the product in B2 on the Price List tab and returns the price from its second column. Tab names with spaces need the single quotes. To look up from a different file, wrap the range in IMPORTRANGE instead.

The example data

Every formula below works on one file with two tabs. The Orders tab lists what each customer bought. The Price List tab has the price and stock for every product. The goal is to fill in the price on each order without copying anything over by hand.

ABC
1OrderProductQty
21001Pen10
31002Stapler1
41003Folder5
51004Glue3
61005Notebook2
OrdersPrice List
The Orders tab. Column D will get the price.
ABC
1ProductPriceIn stock
2Notebook4.75120
3Pen1.25340
4Stapler8.9925
5Tape2.750
6Folder3.2585
7Marker1.9560
OrdersPrice List
The Price List tab, with one row per product.

VLOOKUP from another tab

You don’t have to type the tab name yourself. Start the formula on the Orders tab, then click over to the other tab and Sheets writes the reference for you.

  1. On the Orders tab, click D2 and type =VLOOKUP(B2, to look up the product in B2.
  2. Click the Price List tab at the bottom of the screen. Your formula stays open while you switch.
  3. Click the column letter A and drag across to C to select the three columns. Sheets adds 'Price List'!A:C to the formula.
  4. Type ,2,FALSE) and press Enter. Sheets takes you back to the Orders tab with the answer in D2.
=VLOOKUP(B2,'Price List'!A:C,2,FALSE)

Returns 1.25, the price of a Pen.

  • B2 is the value to find, here the product name on the order.
  • 'Price List'!A:C is where to look. The part before the ! is the tab, the part after it is the range.
  • 2 is the column to return, counted from the left edge of the range. Column B is the second column of A:C, so you get the price.
  • FALSE asks for an exact match. Always add it for names and IDs, or VLOOKUP may hand back a nearby row instead.

To fill the rest of the column, select D2 and double-click the small square at its bottom-right corner. Each row looks up its own product:

ABCD
1OrderProductQtyPrice
21001Pen101.25
31002Stapler18.99
41003Folder53.25
51004Glue3#N/A
61005Notebook24.75
OrdersPrice List
Prices filled down from the Price List tab. Glue isn’t on the price list, so D5 shows #N/A.

Whole columns like A:C don’t move when you fill a formula down, so you don’t need dollar signs. If you select a fixed block instead, such as A2:C7, lock it before filling: 'Price List'!$A$2:$C$7. Otherwise the range slides down one row with every order and starts missing products.

When the tab name needs quotes

  • Spaces or symbols: wrap the name in single quotes, as in 'Price List'!A:C or '2026 Prices'!A:C.
  • One plain word: no quotes needed, as in Prices!A:C. Adding them anyway, 'Prices'!A:C, also works.
  • An apostrophe in the name: double it inside the quotes, so a tab called Jo’s Prices becomes 'Jo''s Prices'!A:C.

If you forget the quotes around a name with a space, Sheets shows a formula parse error. If the name is spelled wrong, you get #REF! with the message “Unresolved sheet name”. Clicking the tab while you build the formula, as in the steps above, avoids both.

Renaming a tab later is safe. Sheets updates every formula that points at it, so 'Price List'!A:C becomes Prices!A:C by itself.

Return a different column

Change the third number to pull a different column from the same row. In-stock counts are in the third column of A:C:

=VLOOKUP(B3,'Price List'!A:C,3,FALSE)

Returns 25, the number of staplers in stock.

A lookup can also sit inside a bigger formula. To get the line total for each order, multiply the quantity by the price:

=C2*VLOOKUP(B2,'Price List'!A:C,2,FALSE)

Returns 12.5 for ten pens at 1.25 each.

VLOOKUP from another file

A plain tab reference only reaches tabs in the same file. If the price list lives in a different spreadsheet, hand VLOOKUP the range through IMPORTRANGE:

=VLOOKUP(B2,IMPORTRANGE("https://docs.google.com/spreadsheets/d/FILE_ID","'Price List'!A:C"),2,FALSE)

Paste the other file’s address in place of the first text. The second text is the tab and range, in quotes.

  1. Open the file with the prices and copy its address from the browser’s address bar.
  2. Back in the Orders file, type the formula above with that address in place of the example one.
  3. The first time, the cell shows #REF!. Click the cell, then click Allow access to connect the two files.
  • You need access to the other file. View access is enough. Anyone who can open your file will see the imported data too.
  • The range is text, so renaming the tab in the other file won’t update it. Change the text by hand if you do.
  • For long lists, import once. Put =IMPORTRANGE("…","'Price List'!A:C") in cell A1 of an empty tab, then point VLOOKUP at that tab like any other. You only connect once, and it’s easier to see what came across.

Fix #N/A and other errors

#N/A: the value isn’t found

VLOOKUP shows #N/A when it can’t find the value in the first column of the range. In the example, Glue really isn’t on the price list. When you’re sure a value is there, check for these:

  • Extra spaces: “Pen ” with a space at the end doesn’t match “Pen”. Clean the column with TRIM, or select it and use Data > Data cleanup > Trim whitespace.
  • Numbers stored as text: an ID stored as text won’t match the same ID stored as a number. Convert the value you look up to match: B2&"" searches for it as text, and VALUE(B2) as a number.
  • The wrong first column: VLOOKUP only searches the leftmost column of the range. If the range starts at column B, it won’t look at column A.

To show something friendlier when a product is missing, wrap the lookup in IFERROR:

=IFERROR(VLOOKUP(B5,'Price List'!A:C,2,FALSE),"Not found")

Returns Not found for Glue instead of #N/A.

IFERROR hides every error, including ones caused by a typo in the formula. =IFNA(VLOOKUP(B5,'Price List'!A:C,2,FALSE),0) only catches #N/A, so a real mistake still shows.

Other errors

  • `#REF!` with “Unresolved sheet name”: the tab name is misspelled. Check spaces and capitals, or rebuild the reference by clicking the tab.
  • `#REF!` with “out of bounds range”: the column number is bigger than the range. A:C has 3 columns, so asking for column 4 fails.
  • A wrong price and no error: the last argument is missing or TRUE. Without FALSE, VLOOKUP expects the first column to be sorted and can return the wrong row.

XLOOKUP, a simpler alternative

XLOOKUP works across tabs the same way, but you give it the column to search and the column to return separately, so there’s no column number to count:

=XLOOKUP(B2,'Price List'!A:A,'Price List'!B:B,"Not found")

Returns 1.25 for Pen, and Not found for Glue without needing IFERROR.

XLOOKUP can also return a column to the left of the one it searches, which VLOOKUP can’t do. INDEX and MATCH can do the same: =INDEX('Price List'!B:B,MATCH(B4,'Price List'!A:A,0)) returns 3.25 for Folder.

Frequently asked questions

Can VLOOKUP look up data from a different Google Sheets file?

Yes. Wrap the range in IMPORTRANGE with the other file’s address and the range as text, for example =VLOOKUP(B2,IMPORTRANGE("file address","'Price List'!A:C"),2,FALSE). The first time, click the cell and choose Allow access.

Why does my VLOOKUP from another sheet return #N/A?

The value isn’t in the first column of the range, or it doesn’t match exactly. Look for extra spaces, numbers stored as text, or a range that starts one column too far right. Wrap the formula in IFERROR to show your own message instead.

Do I need dollar signs when I fill the formula down?

Not with whole columns like 'Price List'!A:C, because they stay the same on every row. With a fixed block such as A2:C7, lock it as $A$2:$C$7 so it doesn’t slide down as you fill.

Why does Google Sheets say “Unresolved sheet name”?

The tab name in the formula doesn’t match any tab in the file. It’s usually a typo, a missing space, or a tab that was deleted. Retype the reference by clicking the tab while you edit the formula.

Can VLOOKUP search more than one tab?

Not in one call, but you can chain two with IFERROR: =IFERROR(VLOOKUP(B2,'Price List'!A:C,2,FALSE),VLOOKUP(B2,Archive!A:C,2,FALSE)). If the first tab has no match, Sheets tries the second.

Lessons for the formulas in this guide

Become a spreadsheet expert

Hands-on lessons and drills on a real practice sheet take you from beginner to expert. The first 18 lessons are free, and Pro unlocks the rest for a one-time $49.99.