Sub topic 11
Troubleshooting Wrong Results After Copying Formulas in Google Sheets
This chapter assumes that you can enter values and formulas in Google Sheets, read A1-style cell addresses such as A1, and use basic arithmetic operators. You will use that knowledge to find reference errors after copying or filling formulas.
A copied formula can be syntactically valid but still produce the wrong result. The usual cause is that a reference moved when you expected it to stay fixed, or stayed fixed when you expected it to move.
Start by comparing the formulas
Do not compare only the displayed numbers. Select the original cell and the copied cell, then read each formula in the formula bar. Compare every reference, including references inside functions.
Suppose A2:A4 contains prices and E1 contains a tax rate of 0.2. The intended formulas are:
B2: =A2*$E$1
B3: =A3*$E$1
B4: =A4*$E$1The price reference changes by row. The tax-rate reference does not. If B3 contains =A3*E2, the formula may return zero or another unexpected result because E2 is not the tax-rate cell.
Use this sequence:
- Select a correct result and an incorrect result.
- Compare their formulas, not just their values.
- Identify each reference that changed.
- Decide whether that reference should be relative, absolute, or mixed.
- Correct the original formula, then fill the range again.
Check the direction of movement
Relative references move according to the direction and distance of the copy. If B2 contains =A2*2, copying it down creates =A3*2. Copying it right creates =B2*2.
This is correct when each formula should use a nearby cell. It is wrong when the formula needs one shared input cell.
A common mistake is locking too much:
B2: =$A$2*2
B3 (after fill down): =$A$2*2Every row still uses A2. If each row needs its own price, use =A2*2 or =$A2*2, depending on how the formula will be copied.
The reference behavior can be visualized like this:
Look for missing or misplaced dollar signs
When one formula fills both down and across, mixed references are often required. For a table with row headers in A2:A5 and column headers in B1:E1, enter this in B2:
=$A2*B$1$A2 keeps the header column fixed while allowing the row to change. B$1 keeps the header row fixed while allowing the column to change.
If the copied result is wrong, inspect which part changed:
| Formula pattern | Column behavior | Row behavior |
|---|---|---|
| `A1` | Moves | Moves |
| `$A$1` | Stays fixed | Stays fixed |
| `$A1` | Stays fixed | Moves |
| `A$1` | Moves | Stays fixed |
An extra dollar sign can be just as damaging as a missing one. In a price list, =$A$2*$E$1 repeats the first price in every row. In a two-way table, =$A$2*B$1 repeats the first row header instead of moving down.
Check ranges inside functions
Functions can contain several references. Lock the lookup or criteria ranges when copying the formula, but usually leave the criterion cell relative.
=SUMIF($A$2:$A$100, D2, $B$2:$B$100)When copied from D2 to D3, the criterion changes to D3. The source and sum ranges remain fixed. Without the dollar signs, the ranges shift and may exclude the first rows or include the wrong data.
The same issue affects COUNTIF, VLOOKUP, and similar functions. Check both the lookup value and the lookup range. A correct function with a shifted range can return a plausible but incorrect answer.
Check sheet names and blanks
A fixed reference on another sheet includes the sheet name:
=A2*Settings!$B$1If the sheet name contains spaces, Google Sheets uses single quotation marks:
=A2*'Tax Settings'!$B$1Also check whether a shifted reference points to a blank cell. Arithmetic with a blank can produce zero, making the error easy to miss. Select the referenced cell directly or use the formula bar to confirm that it contains the expected value.
Repair efficiently
Correct the first formula in the range rather than editing every copied result. Then copy it again with the fill handle, copy and paste, or double-click the fill handle when the adjacent column contains continuous data. If the result still looks wrong, test the formula in a small empty area with visible sample values.
Exercise
B2 contains =A2*E1, but E1 is the tax rate and B3 becomes incorrect after filling down. What should the corrected formula be?
Show answer
Use =A2*$E$1. A2 changes to A3 in the next row, while $E$1 always points to the tax-rate cell.