Forum Discussion
AniB03-
May 12, 2019Copper Contributor
Define the reference cell as being always the above one, even when I copy/paste the row
I have the folowing formula for B2 =B1+A2 My rows go until for example 99, with the same formula on B column. But I sometimes Copy/Paste rows - for example row 2 to row 98. In this case, my form...
- May 12, 2019Select B2. While B2 is selected, press Ctrl+Alt+F3, enter CellAbove as the name, in the refers to box, enter this formula:
=!B1
Click OK.
Haytham Amairah
May 12, 2019Silver Contributor
Hi,
The cell references in the formula need to be https://support.office.com/en-ie/article/switch-between-relative-absolute-and-mixed-references-dfec08cd-ae65-4f56-839e-5f0d8d0baca9 which is the default.
The formula you have in cell B2 is completely relative:
=B1+A2
To copy it all the way down, use the https://www.youtube.com/watch?v=kgGF136-kIg.
You will find the Fill Handle in the right-hand corner of the cell.
If you want to lock a cell in a formula so that it doesn't move when you copy the formula down, you need the use the absolute reference.
Try this example:
=B1+$A$2
When you copy this formula down, the cell A2 will not change.
Hope that help