The short answer
Excel shifts relative references when you copy a formula. A formula that is right in one cell can point at the wrong cells in its copies. A copy might read a blank cell or the wrong row, then return 0 or a misleading number.
A simple example
Prices are in B2:B4, and the sales tax rate of 8% sits in D1. In C2, enter:
=B2*D1
That gives the correct tax for the first item. Now fill it down to C3. The formula becomes =B3*D2. D2 is empty, so C3 shows 0. Fill down to C4, and it becomes =B4*D3, which also shows 0. The first row looks right, and the rest are silently wrong.
How to spot it
- Click a copied cell and read its formula. Compare it with the original and look for references that moved.
- Press Ctrl+` to show every formula on the sheet at once. Press it again to switch back.
- Draw arrows from each formula to the cells it uses with Trace Precedents. The steps are in how to trace precedents in excel.
Fix the first cell, then fill again
Lock the reference that should not move. For the example above, the corrected formula in C2 is:
=B2*$D$1
Fill it down again, so every copy uses the same rate. If you are not sure where the dollar signs go, how to lock cell reference in excel shows each form.
Other causes to check
A divisor that moves. A share-of-total formula is a common trap. In C2, =B2/SUM(B2:B4) gives the first item’s share of the total. Copied down to C3, it becomes =B3/SUM(B3:B5). The total has moved, so every share after the first is wrong. Lock the total with =B2/SUM($B$2:$B$4).
Manual calculation. If results stop updating, the workbook may be set to manual calculation. A copy can then show an old number. Check Formulas > Calculation Options and choose Automatic. In manual mode, F9 recalculates the workbook.
Numbers stored as text. SUM and some other functions skip text that looks like a number, so a total can come out low. The fix for those cells is in how to convert text to number in excel.
Running totals depend on the same idea, with the start of the range locked and the end moving. For a worked example, see running balance formula in excel.
When results look wrong after a copy
Check the first cell first, then a few of the copies, then the calculation mode. Most copied-formula problems come from one of those three places.