Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Insert Row without shifting formulas down

Tags:

excel

I want to insert row for each day to add new values, and I have a SUM formula to add up all the values from each day.

How do I stop excel from automatically shifting my SUM formula's range down when I insert a row?


2 Answers

put a dollar sign in front of what you don't want to change. If the range is A1:B2, make it $A$1:$B$2. Add and remove each dollar sign as needed.

EDIT: use SUM(INDIRECT("$H$4:$H$50000"))

like image 97
Isaac Fife Avatar answered Oct 21 '25 23:10

Isaac Fife


I'd use a named range with the formula:

=INDEX(Sheet1!$H:$H,4):INDEX(Sheet1!$H:$H,50000)

To create it do Ctrl-F3 and fill in the name and definition. In Excel 2010 it would look like this:

enter image description here

Then your formula is just =SUM(StaticRange)

like image 34
Doug Glancy Avatar answered Oct 22 '25 00:10

Doug Glancy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!