Cumulative Running SUM with Conditions

Seba Robles

Board Regular
Joined
May 16, 2018
Messages
73
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Hello all! I'm stuck trying to calculate the running sum of cells I'm referencing. I have a range I'll use as reference ('total value'). In a separate range ('resulting values') I want to calculate the following:

1. Divide the number referenced above in the same column by 4
2. Spill that division across columns so that divided number is shown up to 4 times
3. If there are other values as the formula is dragged across, those should also be divided, aggregated, and spilled across

1725414006172.png


Let me know if there's any clarifying questions needed, or if there's a better approach to solving this.

Thanks in advance!
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
The formulas for the first three columns (C:E) are unique, then the formula in the fourth column (F) is copied to the right.

There might be a way to do this with just one formula instead of making the first three unique.

$scratch.xlsm
ABCDEFGHIJKLMNO
1Total Value
2GroupTotal
3A$0$4$0$0$12$0$20$0$0$0$0$0$36
4
5Resulting Values
6
7A$0$1$1$1$4$3$8$8$5$5$0$0$36
Allocate by 4
Cell Formulas
RangeFormula
O3,O7O3=SUM(C3:N3)
C7C7=C3/4
D7D7=SUM(C3:D3)/4
E7E7=SUM(C3:E3)/4
F7:N7F7=SUM(C3:F3)/4
 
Upvote 1
Solution
Amazing, working perfectly for what I need it. Thank you!
 
Upvote 0
Hi, if interested, here's one way to do it with a single formula.

Book1
ABCDEFGHIJKLMNO
1Total Value
2GroupTotal
3A0400120200000036
4
5Resulting Values
6
7A01114388550036
Sheet1
Cell Formulas
RangeFormula
O3,O7O3=SUM(C3:N3)
C7:N7C7=SUM(INDEX($C3:C3,MAX(1,COLUMNS($C3:C3)-3)):C3)/4
 
Upvote 1

Forum statistics

Threads
1,223,879
Messages
6,175,148
Members
452,615
Latest member
bogeys2birdies

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