Restart running total after X number of rows

nielf

Board Regular
Joined
Nov 13, 2012
Messages
69
I'm trying to come up with a formula that can 'restart' a running total after 12 rows.

Currently my data looks like this where the running total is calculated using the formula in C2 is
Code:
=SUM($B$2:B2)

6R9QnzJ.png


This works fine until I reach row 14. Here I would like the formula to 'restart' so it would be
Code:
=SUM($B$14:B14)
.

Is there anyway I can achive this 'restart' by counting the number of rows so I don't have to manually update the formula as I go?

I know it is possible to use the function in a PivotTable but that's not the solution I'm looking for.
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
This line is pointless and will basically copy what is in cell B2.

Code:
=SUM($B$2:B2)

you could just as easily have
Code:
=B2

I think it must be a typo?
 
Upvote 0
@gallen,

Yes, that is the case for the first row. However, I'm looking for the running total so I need that formula for all other rows. E.g. C3 would be

Code:
=SUM($B$2:B3)
and not just
Code:
=B3
.
 
Upvote 0
Last edited:
Upvote 0

Forum statistics

Threads
1,223,275
Messages
6,171,119
Members
452,381
Latest member
Nova88

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