Build a Sum formula with dynamic ranges

Hi, I am looking to build a sum formula at the bottom of a column that has a constant starting cell (row 3), but the end of the column of numbers can vary. I want to build a sum formula at the bottom of this column, that can account for a varying number of rows.

akmughal's picture

Build a sum formula with dynamic ranges

say the last row in your 'D' column is 100. Then put =SUM(D3:OFFSET(D100,-1,0)) in D101.If you insert any row before formula it will count for automatically.

Build a Sum formula with dynamic ranges

Thank you!
But how would I handle it if I don't want to arbitrarily fix a end row, like D100, but would rather let excel figure out what that end row is, then drop down a row and build a sum formula based on that dynamic end row?