How to reference another sheet in Excel
SheetFluent team · · 6 min read
To use a cell from another sheet, put the sheet name and an exclamation mark before the cell address: =Sheet2!B5. If the sheet name has spaces or punctuation, wrap it in single quotes: ='Q1 Sales'!B5. The easiest way to get it right is to type =, click the other sheet's tab, click the cell and press Enter. Excel writes the reference for you.
=B5
How a sheet reference is built
Every cell has an address, such as B5: column B, row 5. On its own, B5 means "B5 on this sheet". To point at B5 on a different sheet, add the sheet's name and an exclamation mark in front: Jan!B5.
The exclamation mark separates the sheet name from the cell. Read =Jan!B5 as "show whatever is in B5 on the Jan sheet". If that cell changes, the formula's answer changes too, just like a reference on the same sheet.
Sheet names with a space, a hyphen or most other punctuation need single quotes around them: ='Q1 Sales'!B5 or ='North. The quotes go around the name only, and the exclamation mark comes after the closing quote. Excel adds the quotes itself when you click, which is one reason clicking is safer than typing.
=Jan!B5
='Q1 Sales'!B5Step by step: the click method
Say you have a Jan sheet with the month's total in B5, and a Summary sheet where you want to show it.
1. Go to the Summary sheet and click the cell for the answer, such as B2.
2. Type =. Do not press Enter yet.
3. Click the Jan tab at the bottom of the window. Excel switches to that sheet, but you are still building the formula.
4. Click B5. The formula bar now shows =Jan!B5.
5. Press Enter. Excel takes you back to the Summary sheet with the value showing in B2.
If you click back to the Summary tab before pressing Enter, Excel thinks you want a cell on Summary instead. Press Enter while you are still on the other sheet.
You can mix sheets in one formula. =Jan!B5 adds the two months. Type =, click Jan and B5, type +, click Feb and B5, then press Enter.
=Jan!B5+Feb!B5Ranges on another sheet
A range works the same way: the sheet name, an exclamation mark, then the range. =SUM( adds B2 to B4 on the Jan sheet. Lookups use this all the time, with the lookup value on one sheet and the table on another: =XLOOKUP(.
When you fill a formula like this down, the references shift just as they do on one sheet. Add dollar signs to lock a table in place: Prices!$A$2:$A$50.
To add the same cell across a run of sheets in Excel, use a 3D reference: =SUM( adds B5 on Jan, Feb and Mar and every sheet between them. The sheets must sit next to each other in that order. Moving a sheet into or out of the run changes the total, so keep the tabs tidy.
=SUM(Jan!B2:B4)
=SUM(Jan:Mar!B5)See also: Add up a column with SUM, Lock a cell with $
Referencing another workbook
To pull a value from a different file, open both files, type = in the destination, switch to the other file, click the cell and press Enter. Excel writes something like =[Budget.xlsx]Summary!$B$5, with the file name in square brackets.
References to another file are absolute by default, with dollar signs, so they do not shift when filled. Remove the dollar signs if you need them to move.
When the source file is closed, Excel shows the full folder path in the formula and keeps the last value it saw. When you open the destination file later, Excel may ask whether to update links. Links break if the source file is renamed or moved, so for files you share, copying the values in may be safer than a live link.
Why a sheet reference shows #REF! or the wrong value
#REF! means the sheet or cell no longer exists. Deleting a sheet that other formulas point at turns every one of those references into #REF!. Undo the delete straight away if you can.
Renaming a sheet is safe. Excel updates every reference to it automatically. Typing a sheet name that does not exist, though, makes Excel open a file picker, because it thinks you mean another workbook. Press Cancel and check the spelling.
A formula that shows as text usually means the cell was formatted as Text before you typed, or the formula is missing its =. Change the format to General, then click into the cell and press Enter.
A value pointing at the wrong row usually means rows were sorted on one sheet but not the other. A reference follows the cell, not the record in it. For lists that get sorted, look up the value by an ID instead.
See also: What is a formula?, Excel formula not working? How to find the cause and fix it
Using a sheet name from a cell
Sometimes you want the sheet name to come from a cell, so that typing Feb in A1 shows February's total. INDIRECT builds a reference from text: =INDIRECT(. The quotes and the exclamation mark are joined around the name in A1.
Use it sparingly. INDIRECT recalculates every time anything changes, which slows big files, and it does not update when a sheet is renamed, because the name is just text. For a handful of sheets, a plain reference per sheet is easier to follow.
In Google Sheets
Google Sheets uses the same format: =Sheet2!B5, with single quotes for names with spaces, and the click method works the same way. Sheets does not support 3D references such as Jan:Mar!B5, so add the sheets one by one: =Jan!B5.
To pull from a different spreadsheet file in Google Sheets, use IMPORTRANGE with the file's URL and the range as text: =IMPORTRANGE(. The first time, Sheets asks you to allow access.
See also: Google Sheets vs Excel formulas: what's the same and what's different
Practice it
A sheet reference is a cell reference with the sheet name in front, so the skill underneath is pointing a formula at a cell instead of typing its value. The grid below is a small monthly sheet with a total in B5. In D2, show that total with a reference. The checker changes the numbers behind the scenes, so typing the total itself will not pass. In your own file, the same formula with a sheet name in front, such as =Jan!B5, brings it onto a summary sheet.
Try it here
Type the formula into the answer cell, then press Enter or Check.
In D2, show the quarter's total from B5 with a cell reference, so it updates when the units change.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Month | Units | Q1 total | |
| 2 | Jan | 410 | (answer cell) | |
| 3 | Feb | 385 | ||
| 4 | Mar | 452 | ||
| 5 | Total | 1,247 |
In D2, show the quarter's total from B5 with a cell reference, so it updates when the units change.
Start practicingQuestions people ask
How do I reference a sheet name with spaces?
Wrap the name in single quotes, then add the exclamation mark and the cell: ='Q1 Sales'!B5. Excel adds the quotes for you when you click the cell.
Does the reference break if I rename the sheet?
No. Excel updates every formula that points at the sheet. Deleting the sheet does break them, and they show #REF!.
How do I add the same cell across several sheets?
In Excel, use a 3D reference such as =SUM(Jan:Mar!B5). In Google Sheets, add each sheet's cell: =Jan!B5+Feb!B5+Mar!B5.
Why does Excel open a file window when I type a sheet reference?
The sheet name does not match any sheet in the file, so Excel looks for another workbook. Press Cancel and check the spelling, or use the click method.
Keep practicing
Related articles
Look up a value that matches two conditions in Excel: join them with & in a helper column, then use XLOOKUP or INDEX MATCH.
Excel formula showing as text, not updating, or giving the wrong total? Check the equals sign, Text format, Show Formulas and Manual calculation.
- Excel formulas cheat sheet7 min read
The Excel formulas you'll use most, grouped by job: totals, counting, conditions, lookups, text and rounding, each with an example. Print or save as PDF.