Sub topic 8
Anchoring references to other sheets
This chapter assumes you can enter and edit a basic formula, select cells and ranges, and copy cells or use the fill handle. It also assumes you know the three reference types from earlier chapters: relative (B2), absolute ($B$2), and mixed ($A2 or B$1). Here you apply those rules to formulas that read from a different worksheet.
Why other sheets need anchoring
Real workbooks rarely keep everything on one sheet. A common layout puts assumptions, such as a tax rate, a currency rate, or a price table, on a sheet named Rates, and puts the transactions on a sheet named Orders. Formulas on Orders then have to point across to Rates.
The risk is the same as on a single sheet. If the reference to the rate cell is relative, it drifts when you fill the formula down, and you get wrong results or zeros. The sheet prefix does not protect the cell address. You still need the dollar signs.
The syntax of a sheet reference
A reference to a cell on another sheet has two parts: the sheet name, an exclamation mark, and then the cell address.
=Rates!B1If the sheet name contains spaces or special characters, Excel wraps it in single quotes.
='Tax Rates 2026'!B1Excel adds the quotes for you when you build the formula by clicking. If you type the formula by hand, you must add them yourself.
A few rules to remember:
- The sheet name and the cell address are separate parts. The
!joins them. - Only the cell address part uses
$. You never write a dollar sign in the sheet name. - A sheet name that starts with a digit, contains a space, or contains characters such as
-or&needs quotes. - A reference to a sheet in another workbook adds the workbook name in square brackets, for example
[Budget.xlsx]Rates!$B$1.
Anchoring the cell, not the sheet
Consider an Orders sheet with prices in column B starting at B2. The tax rate is in Rates!B1. To compute the tax for each row, write this in C2 and fill it down:
C2: =B2*Rates!$B$1After you fill down, the formulas read as follows:
C3: =B3*Rates!$B$1
C4: =B4*Rates!$B$1Each row uses its own price (B2, B3, B4, which are relative). Each row uses the same rate (Rates!$B$1, which is absolute). The sheet name stays the same in every copy because filling within a sheet never changes which sheet the formula points at.
What would happen without the dollar signs? Look at this formula:
C2: =B2*Rates!B1When you fill down, the rate reference shifts one row per row:
C3: =B3*Rates!B2
C4: =B4*Rates!B3Rates!B2 and Rates!B3 are probably empty, so Excel treats them as zero. Row 2 is correct and every row below it shows 0. This is easy to miss because the first row looks right.
Cross-sheet references follow the same three types
Everything from the earlier chapters applies unchanged. The sheet prefix is just a label in front of the address.
| Written as | Type | Behavior when filled down | Behavior when filled right |
|---|---|---|---|
| `Rates!B1` | Relative | Row shifts | Column shifts |
| `Rates!$B$1` | Absolute | Fixed | Fixed |
| `Rates!$B1` | Mixed, column locked | Row shifts | Fixed |
| `Rates!B$1` | Mixed, row locked | Fixed | Column shifts |
Mixed references are useful with lookup tables on another sheet. Suppose Rates holds a table with regions in A2:A5 and quarters across B1:E1, and Orders needs to pull a value for a region in column A and a quarter in row 1 of the same sheet. A formula such as the one below, filled across and down, would read a different cell for each position:
B2: =Rates!B2If you only need to pull the same layout across, a relative cross-sheet reference is correct, because you want the position to follow the formula. Choose the type by asking what should move and what should stay.
Anchoring a whole range on another sheet
Ranges on other sheets work the same way. Both ends need their own $ signs if the range must not move. The sheet name is written once, before the range.
D2: =VLOOKUP(A2,Rates!$A$2:$C$20,3,FALSE)Here A2 is relative, so each row looks up its own key. Rates!$A$2:$C$20 is absolute, so every row searches the same table. If you leave out the dollar signs, the table slides down as you fill. By row 10 the lookup range starts at A10, and some keys are no longer inside it. You then see #N/A errors in the rows further down.
A related pattern is a total that ignores which row you are on:
C2: =B2/SUM(Orders!$B$2:$B$10)This divides each value by a fixed total taken from a specific range. When a formula uses a range from another sheet, the range reference is written as Sheet!Start:End. You do not repeat the sheet name for the second half. Writing Orders!$B$2:Orders!$B$10 is accepted, but Excel normalizes it, and the short form is the standard one.
Expanding ranges across sheets
You can build a running total from another sheet by anchoring only the start of the range:
C2: =SUM(Data!$B$2:B2)Be careful here. In this formula the sheet name applies to the whole range, so B2 at the end is also on the Data sheet. Excel reads Data!$B$2:B2 as a single range on Data. If you fill this down, the result is:
C3: =SUM(Data!$B$2:B3)This works as intended when the formula sits on a different sheet from Data, and the running total of the Data column grows by one row per row. It can surprise you when you expect B2 to refer to the current sheet. The sheet prefix covers both ends of the colon range. If you need the end to be on the current sheet, you cannot build that with a single range, so rearrange your data or use a helper column on the current sheet.
Filling across sheets: the 3D reference
Excel also supports a 3D reference, which spans several sheets that sit next to each other in the tab order.
=SUM(Jan:Dec!B2)This adds cell B2 on every sheet from Jan through Dec, including the two named sheets and all those between them. The cell part follows normal reference rules, so write Jan:Dec!$B$2 if you plan to copy the formula and need the cell to stay put.
Some points about 3D references:
- The result depends on tab order. If you drag a sheet into or out of the span, the total changes.
- Inserting a new sheet between
JanandDecincludes it automatically. - Not every function accepts 3D references.
SUM,AVERAGE,COUNT,MAX, andMINdo. Functions such asVLOOKUPdo not.
What happens when sheets change
A cross-sheet reference follows the sheet by identity, not by the text you see.
- Renaming a sheet. Excel updates every formula that points at it. A reference to
Rates!$B$1becomesPricing!$B$1after you renameRatestoPricing. - Moving a sheet. Moving a tab left or right does not change a normal reference. It can change the result of a 3D reference, because the span depends on tab order.
- Deleting a sheet. Formulas that pointed at it show
#REF!. The reference is not recoverable by editing; you need to undo the deletion or rewrite the formula. - Copying a sheet. If you copy the
Orderssheet, formulas that point atRatesin the copy still point atRates, not at a copy of it. Formulas that point at cells on the same sheet are repointed to the new sheet's own cells.
The fourth point matters when you copy a sheet to make next month's report. The copy still reads the shared rates, which is usually what you want. It still reads the old Orders data only if a formula names Orders explicitly, so check for that.
Same-sheet references inside a cross-sheet formula
A formula can mix both kinds of reference. Each reference is judged on its own.
C2: =B2*Rates!$B$1+Fees!$B$2B2 is on the current sheet and is relative. Rates!$B$1 and Fees!$B$2 are on other sheets and are absolute. Excel handles each reference independently when you copy.
Clicking versus typing
When you build a formula by clicking cells on another sheet, Excel writes a relative reference by default, for example Rates!B1. It does not add dollar signs for you. You have two ways to fix this:
- While the cursor is inside the reference in the formula bar, press F4 to cycle through the types:
B1,$B$1,B$1,$B1. - Type the dollar signs by hand.
On laptops, F4 may need the Fn key. On a Mac, the equivalent is Command+T in many versions, or Fn+F4.
The F4 key works on the reference at the cursor, including the part after the sheet name. It leaves the sheet name alone.
A worked example
You have two sheets.
Rates:
| Row | A | B |
|---|---|---|
| 1 | Tax rate | 0.2 |
| 2 | Shipping | 5 |
Orders:
| Row | A | B | C | D |
|---|---|---|---|---|
| 1 | Item | Price | Tax | Total |
| 2 | Lamp | 30 | ||
| 3 | Chair | 80 | ||
| 4 | Desk | 150 |
Goal: compute tax in column C and a total with shipping in column D.
Step 1. In Orders!C2, type =B2*, switch to Rates, and click B1. The formula bar shows =B2*Rates!B1.
Step 2. Press F4 once while the cursor is in Rates!B1. The formula becomes =B2*Rates!$B$1. Press Enter.
Step 3. In D2, enter:
D2: =B2+C2+Rates!$B$2Step 4. Select C2:D2 and double-click the fill handle, or drag it to row 4.
The results are:
| Row | Tax (C) | Total (D) |
|---|---|---|
| 2 | 6 | 41 |
| 3 | 16 | 101 |
| 4 | 30 | 185 |
Check row 4: C4 reads =B4*Rates!$B$1, which is 150 × 0.2 = 30. D4 reads =B4+C4+Rates!$B$2, which is 150 + 30 + 5 = 185.
Diagram: how a filled formula resolves its references
An alternative: named ranges
Dollar signs on every cross-sheet reference can be hard to read. A defined name replaces the sheet and address with a single label. If you name Rates!$B$1 as TaxRate, you can write:
C2: =B2*TaxRateA defined name is absolute by default and works from any sheet in the workbook. This is covered in the next chapter, so treat it here as a pointer, not a requirement.
Common mistakes with sheet references
| Symptom | Likely cause | Fix |
|---|---|---|
| First row correct, later rows show 0 | Rate reference is relative, for example `Rates!B1` | Change to `Rates!$B$1` |
| `#N/A` in lower rows of a lookup | Table range on another sheet is not anchored | Anchor both ends: `Rates!$A$2:$C$20` |
| `#REF!` after tidying the workbook | The referenced sheet was deleted | Undo, or rewrite the formula |
| `#NAME?` when typing a reference | Sheet name with spaces has no quotes | Write `'Tax Rates'!$B$1` |
| Copied sheet still shows old data | Formulas name the original sheet explicitly | Edit those references to point at the copy |
| 3D total changed unexpectedly | A sheet moved in or out of the span | Check tab order between the first and last sheet |
To debug, select the cell with the wrong result, press F2 to enter edit mode, and look at the colored outlines. Excel highlights each referenced cell. For cells on other sheets, the outline does not appear, so read the formula text instead. Then fill the formula one more row and compare the second formula with the first.
Exercise
On a sheet named Orders, C2 contains =B2*Rates!B1, where Rates!B1 holds a tax rate of 0.2. You fill C2 down to C4. What formula does C4 contain, and why is the result probably wrong? Write the corrected formula for C2.
Show answer
C4 contains =B4Rates!B3. The reference to Rates is relative, so the row number moves down by two rows during the fill. Rates!B3 is most likely empty, so Excel treats it as 0 and the tax shows as 0. The corrected formula for C2 is =B2Rates!$B$1, which keeps the rate cell fixed in every row.
Exercise
A lookup in D2 reads =VLOOKUP(A2,Rates!A2:C20,3,FALSE). Rows near the top return values, but rows near the bottom return #N/A. Explain the cause and write the fixed formula.
Show answer
The table range Rates!A2:C20 is relative, so it slides down one row for each row you fill. In row 10 the range starts at Rates!A10, so keys located above that row are outside the table, and the lookup fails with #N/A. Anchor the range: =VLOOKUP(A2,Rates!$A$2:$C$20,3,FALSE).
Exercise
You rename the sheet Rates to Pricing. What happens to a formula that contains Rates!$B$1? What happens if you delete the sheet instead?
Show answer
After a rename, Excel updates the formula to Pricing!$B$1, and it keeps working. After a deletion, the formula shows #REF! because the target no longer exists. You can recover only by undoing the deletion or rewriting the formula.