Sub topic 10
Absolute References to Another Sheet
Assume you can enter formulas, use basic arithmetic, and read cell addresses such as A1 and B2. This chapter shows how to use a fixed value or range stored on another Google Sheets tab while copying a formula.
Why use another sheet?
A separate sheet can hold settings, rates, or source data. For example, a sheet named Settings might contain the tax rate used by a price list.
Keeping the rate in one cell gives you one place to update it. Every formula that points to that cell then uses the new rate.
A cross-sheet reference has this form:
SheetName!CellAddressFor example:
= A2 * Settings!B1The formula multiplies A2 on the current sheet by B1 on the Settings sheet. The space after = is optional, but it is usually clearer to omit it.
If a sheet name contains spaces or punctuation, place the name inside single quotation marks:
= A2 * 'Tax Settings'!B1Locking a cell on another sheet
Suppose the Prices sheet contains this data:
| A | B |
|---|---|
| Item price | Tax |
| 25 | formula |
| 40 | formula |
| 75 | formula |
The Tax Settings sheet contains 0.2 in cell B1. To calculate tax in Prices!B2, enter:
=A2*'Tax Settings'!$B$1The dollar signs make the reference absolute. They lock both the column B and the row 1.
When you fill the formula down, A2 changes to A3, then A4. The tax-rate reference stays 'Tax Settings'!$B$1.
Cell 'Tax Settings'!B1: 0.2
Cell Prices!B2: =A2*'Tax Settings'!$B$1
Cell Prices!B3 after fill down: =A3*'Tax Settings'!$B$1Without the dollar signs, the formula in the next row would become:
=A3*'Tax Settings'!B2That formula looks at B2 on Tax Settings, not the original rate in B1. If B2 is empty, the result may be zero or otherwise incorrect.
How to create the reference
You can type the reference, or let Google Sheets create it:
- Select the cell where the formula will go.
- Type
=, then select the local cell, such asA2. - Type
*, then click the other sheet tab. - Select the fixed input cell, such as
B1. - Type the closing formula and press Enter.
- Add
$signs around the other-sheet reference before filling the formula.
The completed formula should look like this:
=A2*'Tax Settings'!$B$1Locking a range on another sheet
The same principle applies to functions. Suppose the Orders sheet has product names in column A and amounts in column B. A summary sheet lists a product criterion in D2. This formula adds matching amounts:
=SUMIF(Orders!$A$2:$A$100, D2, Orders!$B$2:$B$100)The ranges are absolute. When you copy the formula down, $A$2:$A$100 and $B$2:$B$100 remain fixed, while D2 changes to D3, D4, and so on.
Troubleshooting copied formulas
Check these points when results are wrong:
- Confirm the sheet name and cell address.
- Check whether a sheet name with spaces has single quotation marks.
- Make sure both row and column are locked when the reference must never move.
- Compare the original formula with the copied formula.
- Watch for a missing
$before either the column letter or row number. - Confirm that the fixed cell contains a number, not text that only looks like a number.
Google Sheets also lets you cycle through relative and absolute forms while editing a reference. Place the cursor in the reference and press F4. The forms cycle through relative, absolute, and mixed references. You can always type the dollar signs directly if the shortcut does not work on your keyboard.
Exercise
The Report sheet has a value in A2, and the fixed conversion rate is in Rates!C1. Which formula can you fill down without moving the rate?
Show answer
=A2*Rates!$C$1