Sum of cells in deleted/added rows goes senile

darenw

New Member
Joined
Jul 12, 2009
Messages
6
We have a spreadsheet like the example below. Each item has one or more lines with numbers and then a total. As things change over time, we need to add and delete rows. When the number of rows gets down to only one, as with "Oak", the sum formula's range becomes a single cell like in row 9 of this example. Later when we add a new row to "Oak" we have to stop and fuss with editing the formula. Or, if we add a new row to Maple going between the current rows 3 and 4, the range won't expand to include it.

In real life, our spreadsheet has dozens of columns like "C" in the example, so when we fix the sum formula, we must drag it rightward along the row to make all the columns work properly. We'd like the user of the spreadsheet to not have to remember or spend the time fixing these sum cells. What do experienced spreadsheet users recommend? Is there a way to avoid having the range collaps when there's only one row, or to include new rows automatically in the sum's range?


A B C

1 Maple
2 10
3 45
4 =sum(D2:D3)
5
6 Oak
7 22
9 =sum(C7)
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Forum statistics

Threads
1,215,884
Messages
6,127,567
Members
449,385
Latest member
KMGLarson

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top