Not sure what you’re trying to achieve.
If you’re trying to add up a block of cells the function is
=SUM(A1:A2)
If you then add a row between 1 and 2, the function should update to SUM(A1:A3).
If you want to sum a set of numbers up to a given row, use =SUM($A$1:A2) then paste or fill into cells. The $ makes it a fixed reference; default is a relative reference to the position of the cell in the formula.
In cell B1
– if you use $A1 it tells Excel to pull the number from Column A in the row above
– if you use A$1 it will pull the number in row one from whatever column you put the reference into
– if you use $A$1 it will always return the value for cell A1
You can use =SUM($A$1:A2) in, say B2 and then it will fill into B3 as SUM($A$1:A3), int B4 as ($A$1:A4) etc
– if you put