Getting running total and balance

amilaart

New Member
Joined
Feb 16, 2017
Messages
2
Hi
Im new to here, I have following question
DateProductProductionCumulativeDispatchBalance
1 Jan 17Apple1010010
2 Jan 17Banana1212012
3 Jan 17Apple15251411
4 Jan 17Apple16271413

<tbody>
</tbody>

****** id="cke_pastebin" style="position: absolute; top: 41px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">
Cumulative


<tbody>
</tbody>
</body>I have Excel sheet like this, and have same column. Having six different product. Each product having unique dispatch value. As per above example, for apple need to dispatch once cumulative total exceed 14,
Cumulative total = Production+Balance-Dispatch

Currently Im manually select previous product balance cell when calculating cumulative balance total.
I tried to several way to automate this, but still failed.
Need your expert views to complete this task

Thank you in advance
regards
Amila
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Maybe:

ABCDEFGHI
1DateProductProductionCumulativeDispatchBalanceProductDispatch Value
21-Jan-17Apple1010010Apple14
32-Jan-17Banana1212012Banana14
43-Jan-17Apple15251411
54-Jan-17Apple16411413
65-Jan-17Banana2537289
76-Jan-17Apple546144
87-Jan-17Banana643141
98-Jan-17Banana952010

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet23

Worksheet Formulas
CellFormula
D2=SUMIFS(C$2:C2,B$2:B2,B2)
E2=IF(D2-SUMIFS(E$1:E1,B$1:B1,B2)>=VLOOKUP(B2,$H$2:$I$5,2,FALSE),D2-SUMIFS(E$1:E1,B$1:B1,B2)-MOD(D2-SUMIFS(E$1:E1,B$1:B1,B2),VLOOKUP(B2,$H$2:$I$5,2,FALSE)),0)
F2=SUMIFS(C$2:C2,B$2:B2,B2)-SUMIFS(E$2:E2,B$2:B2,B2)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
Here's a somewhat simpler set of formulas:

ABCDEFGHI
1DateProductProductionCumulativeDispatchBalanceProductDispatch Value
21-Jan-17Apple1010010Apple14
32-Jan-17Banana1212012Banana14
43-Jan-17Apple15251411
54-Jan-17Apple16411413
65-Jan-17Banana2537289
76-Jan-17Apple546144
87-Jan-17Banana643141
98-Jan-17Banana952010

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet24

Worksheet Formulas
CellFormula
D2=SUMIFS(C$2:C2,B$2:B2,B2)
E2=D2-F2-SUMIFS($E$1:$E1,$B$1:$B1,B2)
F2=MOD(D2,VLOOKUP(B2,$H$2:$I$5,2,0))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,952
Messages
6,122,458
Members
449,085
Latest member
ExcelError

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