Sub topic 8
Anchoring references to other sheets
This chapter assumes you can enter and edit a basic formula, select cells and ranges, and fill a formula down with the fill handle. It also assumes you know the difference between relative references (B2), absolute references ($B$2), and mixed references ($A2, B$1). Here you will apply those rules to cells on other sheets.
How a cross-sheet reference is built
A reference to a cell on another sheet has two parts: the sheet name, an exclamation mark, and the cell address.
=Rates!B1This reads cell B1 on the sheet named Rates. If the sheet name contains a space or a special character, Excel wraps it in single quotes:
='Tax Rates'!B1You do not have to type this. Type =, click the other sheet's tab, click the cell, and press Enter. Excel writes the prefix for you.
The sheet prefix does not lock anything
The sheet name and the cell address are separate parts. The prefix only says which sheet to read. Whether the cell address shifts when you fill the formula is still decided by the dollar signs.
When you click a cell to build a reference, Excel inserts it as a relative reference. So Rates!B1 shifts when you fill it down, exactly like B1 on the same sheet.
Suppose the Sales sheet lists amounts in column B, and a single tax rate sits in Rates!B1. This formula looks correct in the first row:
C2: =B2*Rates!B1Fill it down one row and the references shift:
C3: =B3*Rates!B2Rates!B2 is probably empty, so row 3 calculates as zero. Anchor the rate cell with dollar signs:
C2: =B2*Rates!$B$1Now B2 is relative and follows each row, while Rates!$B$1 stays on the same cell on the Rates sheet.
Lookup tables on another sheet
The same rule applies to ranges. A common case is a lookup table on a separate sheet. If you fill a lookup formula down without locking the table range, the range slides down and eventually misses the rows you need.
D2: =VLOOKUP(A2,Prices!$A$2:$B$50,2,FALSE)A2 is relative, so each row looks up its own product code. Prices!$A$2:$B$50 is absolute, so every row searches the same table. Without the dollar signs, row 3 would search Prices!A3:B51, row 4 would search Prices!A4:B52, and the first products in the table would drop out of the search.
Copying a formula to another sheet
Copying a formula and pasting it onto a different sheet keeps the references as written, relative to the new position. A formula in Sheet1!C2 that reads =A2*B2 becomes =A2*B2 on Sheet2, but now it points at cells on Sheet2. Excel does not add a sheet prefix when the formula is copied, so the references silently switch to the new sheet.
If you want the pasted formula to keep reading the original sheet, the original formula needs an explicit prefix, such as =Sheet1!A2*Sheet1!B2.
Renaming, moving, and deleting sheets
Excel tracks references by sheet, not by the text you see. This has three consequences:
- Renaming a sheet updates every formula that refers to it.
=Rates!$B$1becomes=TaxRates!$B$1automatically. - Reordering the sheet tabs does not affect references.
- Deleting a sheet breaks every formula that pointed at it. Those formulas show
#REF!, and the dollar signs cannot repair them.
Reading one cell across several sheets
A 3-D reference spans the same cell on a run of consecutive sheets. For example, if you have sheets Jan, Feb, and Mar, each with a monthly total in B5, this formula adds all three:
=SUM(Jan:Mar!B5)The reference follows the usual rules. B5 is relative here, so filling the formula into the next row would shift it to B6 on every sheet in the span. Use Jan:Mar!$B$5 when the formula must always read B5.
Choosing between dollar signs and names
A prefix such as Rates!$B$1 makes a formula longer and harder to read. A defined name can replace it. If you name Rates!B1 as TaxRate, you write =B2*TaxRate, and the name works as an absolute reference by default. The next chapter covers names in detail.
| Approach | Example | Strength | Weakness |
|---|---|---|---|
| Absolute with prefix | `=B2*Rates!$B$1` | Shows exactly where the value lives | Longer, and easy to forget the `$` |
| Defined name | `=B2*TaxRate` | Short and readable | You must look up what the name refers to |
Debugging a cross-sheet formula
When a filled formula gives zeros or odd values, check these items in order:
- Click a wrong result and look at the formula bar. Note which cell on the other sheet it reads.
- Compare the first row with a wrong row. Any address that moved when it should have stayed fixed needs a
$. - Click the formula and press F2. Excel outlines each referenced cell, including those on other sheets, in a matching color in the formula bar.
- Press F4 with the cursor on the reference to cycle through
Rates!B1,Rates!$B$1,Rates!B$1, andRates!$B1.
Exercise
The Orders sheet has quantities in B2:B100. The Products sheet has product codes in A2:A50 and unit prices in B2:B50. In Orders, column A holds product codes. Write a formula for Orders!C2 that finds the unit price for the code in A2 and multiplies it by the quantity in B2, so that it can be filled down to row 100 without errors.
Show answer
=B2*VLOOKUP(A2,Products!$A$2:$B$50,2,FALSE). The lookup value A2 and quantity B2 are relative, so each row uses its own order. The table Products!$A$2:$B$50 is absolute, so every row searches the same complete table.
Exercise
You fill =B2*Rates!B1 down column C and rows 3 onward show 0. What is the cause, and what is the fix?
Show answer
Rates!B1 is relative, so row 3 reads Rates!B2, row 4 reads Rates!B3, and so on. Those cells are empty. Change the formula in C2 to =B2*Rates!$B$1 and fill down again.