Lookups

How to Use VLOOKUP From Another Sheet

How to use VLOOKUP to pull values from another sheet in Excel, including sheet names with spaces, named ranges and what breaks when a sheet moves.

On this page
  1. Write the reference to the other sheet
  2. Sheet names with spaces
  3. Use a named range
  4. What happens when sheets move or get renamed
  5. Lookups across separate files
  6. Google Sheets

VLOOKUP can read a table on another sheet in the same workbook. You only need to name the sheet in the table argument, and the rest of the formula stays the same.

Write the reference to the other sheet

Suppose the price list is on a sheet named Prices, in columns A to C with data in rows 2 to 100. The product code you want to look up is in A2 on the Orders sheet. The formula is:

=VLOOKUP(A2, Prices!$A$2:$C$100, 3, FALSE)

The sheet name comes first, then an exclamation mark, then the range. The dollar signs keep the range fixed when you copy the formula down.

You do not have to type the reference by hand. Type =VLOOKUP(A2,, then click the Prices tab, drag across A2:C100 and press F4 to make the references absolute. Finish with 3, FALSE and Enter. Excel writes the sheet name for you, which avoids spelling mistakes.

Sheet names with spaces

If the sheet name has a space or punctuation, wrap it in single quotes:

=VLOOKUP(A2, 'Price List'!$A$2:$C$100, 3, FALSE)

Clicking the tab takes care of the quotes for you. If you type a name with a space and leave out the quotes, Excel may refuse the formula or show an error. The quotes are needed only when the name contains spaces or punctuation, but adding them does no harm.

Use a named range

A named range makes the formula shorter and easier to read. Select the range A2:C100 on the Prices sheet, type a name such as PriceList in the Name Box to the left of the formula bar, and press Enter. The formula then becomes:

=VLOOKUP(A2, PriceList, 3, FALSE)

If the list grows, you only need to change the range behind the name. For more on names, see how to create named range in excel.

What happens when sheets move or get renamed

Renaming the Prices sheet updates the formulas that point to it, so nothing breaks. Moving the sheet to a different position in the same workbook also leaves the reference working.

Deleting the Prices sheet is different. Formulas that pointed to it show #REF!, because the range no longer exists. If that happens, the steps in how to fix #ref error in excel are the place to start.

Lookups across separate files

If the price list is in a different workbook, the reference includes the file name in square brackets, and it depends on that file staying where it is. Excel may ask you to update links when you open the workbook, and a moved or renamed file can break the lookup.

If you can, copy the price list into the same workbook as the formula. If you need to keep it in a separate file, for what to check, see why do links to other workbooks break in excel.

Google Sheets

Google Sheets uses the same approach. A reference to another tab looks like =‘Price List’!A2:C100, with single quotes around the name because it contains a space.

The complete guide to lookups

How to Look Up Data in Excel
Read the guide

Keep exploring

Guides from other topics

All topics →