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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

gallen

Well-known Member
Joined
Jun 27, 2011
Messages
2,013
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

nielf

Board Regular
Joined
Nov 13, 2012
Messages
69
@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

footoo

Well-known Member
Joined
Sep 21, 2016
Messages
3,461
Office Version
  1. 365
Platform
  1. Windows
Last edited:
Upvote 0

Forum statistics

Threads
1,191,187
Messages
5,985,194
Members
439,947
Latest member
fabiannic

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
Top