Look up a value on another sheet
Lookups across sheets8 minPremium
Builds on Look up a value with VLOOKUP and Look up a price with XLOOKUP.
At an office supplies wholesaler in Lisbon, one person keeps the price list up to date, on a sheet of its own named Price List. Everyone else fills in order sheets that look the prices up there, so a price changed once reaches every order.
How it works
A reference to another sheet is the sheet's name, an exclamation mark, then the cells.
| Row | A | B |
|---|---|---|
| 1 | Part | In 'Price List'!A2:C9 |
| 2 | the sheet's name, in single quotes because it has a space | 'Price List' |
| 3 | the exclamation mark that ends the name | ! |
| 4 | the cells on that sheet | A2:C9 |
A name without spaces or punctuation needs no quotes, as in Rates!A2:C20. You rarely type any of it: start the formula, click the other sheet's tab, select the range, and Excel writes the reference for you.
A lookup doesn't care where its table is, so a lookup on another sheet is the same formula with that reference as its table. Keeping a list on its own sheet gives it one place to be updated, and the sheets that read it stay small. Lock the range with $ before you fill a formula down, as you would on the same sheet, because an unlocked range slides down the other sheet too.
If someone renames the sheet, Excel rewrites every formula that reads it. If they delete it, those formulas show #REF!.
Example
An order sheet looks up each item's price on the Price List sheet, which has codes in A2:A9, items in B2:B9 and prices in C2:C9. The first order line's code is in A2 of the order sheet.
=VLOOKUP(A2,'Price List'!A2:C9,3,FALSE)- Step 1: The lookup on the order sheet takes DS-114 from its A2 and finds it in row 5 of this sheet.
- Step 2: It brings that row's price, $7.40, back to the order sheet.
Common mistakes
=VLOOKUP(leaves out the quotes, and Excel refuses the formula. A sheet name with a space needs them:A2, Price List!A2:C9, 3, FALSE) 'Price List'!A2:C9.- Filled down without
$,'Price List'!A2:C9becomes A3:C10, then A4:C11, and the codes near the top of the list stop being found. Lock it:'Price List'!$A$2:$C$9. - Deleting the Price List sheet turns every lookup that reads it into
#REF!. To give it a new name, rename it, and Excel updates the formulas.
In short
- Another sheet's cells are
Sheet!A2:C9, or'Sheet name'!A2:C9when the name has a space. - Click the sheet's tab while you write the formula, and Excel writes the reference.
- A lookup reads a table on another sheet exactly as it reads one on its own sheet.
- Lock the range before you fill down.
Practice
Premium4 exercises: 3 formulas and 1 quiz question.
Practice is part of Premium
Every lesson is free to read, and you can practice the free lessons without an account. This lesson's exercises are part of Premium, which you add to a free account.
Have one? Sign in