Keeping SUM range when adding a new row to the 1st place

sduttonusa

New Member
Joined
Jan 13, 2016
Messages
43
I have numbers across rows 10 to 25. Underneath (say row 45), I get the SUM of the columns above =SUM(A10:A25), =SUM(B10:B25), etc. When I add a new row somewhere in the middle of the rows, the bottom of the column SUM takes into account the new row =SUM(A10:A26), =SUM(B10:26), etc.

But if I add a new row in the 1st place position, row 10, the SUM below becomes =SUM(A11:A26), =SUM(B11:B26) . . . row 10 doesn't get included. This even happens if I create a new row in the middle, and then later move it up to the 1st position.

Is there a way around this?
 
Is it OK to use the OFFSET concept at the beginning of the formula? In other words (using the above table), =SUM(OFFSET(B4,+1,):OFFSET(B9,-1,)) This would mean that I want the SUM from B5 to B8 . . . is that correct?
 
Upvote 0

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Is it OK to use the OFFSET concept at the beginning of the formula? In other words (using the above table), =SUM(OFFSET(B4,+1,):OFFSET(B9,-1,)) This would mean that I want the SUM from B5 to B8 . . . is that correct?

Yes, in your case, you can use OFFSET function at the beginning of the formula too.

The formula below Works too:

=SUM(OFFSET(B4,1,):OFFSET(B9,-1,))​

Markmzz
 
Upvote 0

Forum statistics

Threads
1,214,819
Messages
6,121,741
Members
449,050
Latest member
excelknuckles

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