Accumulative Sum for Same Product with Same Packing

mmm1199

New Member
Joined
Apr 18, 2018
Messages
4
Hi guys, does anyone know how to get the accumulative sum for same product type and name within a list?
[TABLE="width: 713"]
<colgroup><col><col><col><col><col span="2"></colgroup><tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 713"]
<colgroup><col><col><col><col><col span="2"></colgroup><tbody>[TR]
[TD]Entry Date[/TD]
[TD]Product Type[/TD]
[TD]Product Name[/TD]
[TD]In[/TD]
[TD]Out[/TD]
[TD]Bal[/TD]
[/TR]
[TR]
[TD]Qty[/TD]
[TD]Qty[/TD]
[TD]Qty[/TD]
[/TR]
[TR]
[TD]1/4/2018[/TD]
[TD]AD-DS[/TD]
[TD]ADG8529[/TD]
[TD]100[/TD]
[TD]0[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]2/4/2018[/TD]
[TD]BO-KG[/TD]
[TD]SN500[/TD]
[TD]100000[/TD]
[TD] [/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]3/4/2018[/TD]
[TD]DS-KG[/TD]
[TD]Diesel[/TD]
[TD]100[/TD]
[TD] [/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]4/4/2018[/TD]
[TD]EO-KG[/TD]
[TD]SAE50[/TD]
[TD]26000[/TD]
[TD] [/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]5/4/2018[/TD]
[TD]BO-KG[/TD]
[TD]SN500[/TD]
[TD]25000[/TD]
[TD] [/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]6/4/2018[/TD]
[TD]DS-KG[/TD]
[TD]Diesel[/TD]
[TD] [/TD]
[TD]-50[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]7/4/2018[/TD]
[TD]DS-KG[/TD]
[TD]Diesel[/TD]
[TD] [/TD]
[TD]-50[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]8/4/2018[/TD]
[TD]EO-KG[/TD]
[TD]SAE50[/TD]
[TD] [/TD]
[TD]-26000[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]9/4/2018[/TD]
[TD]AD-DS[/TD]
[TD]ADG8529[/TD]
[TD] [/TD]
[TD]-25[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]10/4/2018[/TD]
[TD]AD-DS[/TD]
[TD]ADG8529[/TD]
[TD] [/TD]
[TD]-25[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]11/4/2018[/TD]
[TD]AD-DS[/TD]
[TD]ADG8529[/TD]
[TD]200
[/TD]
[TD]0[/TD]
[TD]?[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
12/4/2018 BO-DS SN500 500 ?
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Is this what your looking for?

Copy formula in F3 down as needed.
Excel Workbook
ABCDEF
1Entry DateProduct TypeProduct NameInOutBal
2QtyQtyQty
31/4/2018AD-DSADG85291000100
42/4/2018BO-KGSN500100000100000
53/4/2018DS-KGDiesel100100
64/4/2018EO-KGSAE502600026000
75/4/2018BO-KGSN50025000125000
86/4/2018DS-KGDiesel-5050
97/4/2018DS-KGDiesel-500
108/4/2018EO-KGSAE50-260000
119/4/2018AD-DSADG8529-2575
1210/4/2018AD-DSADG8529-2550
1311/4/2018AD-DSADG85292000250
Sheet
 
Upvote 0
You're welcome. Thanks for the feedback and welcome to the forum.
 
Upvote 0
Hi there Ahoync, I am new here. How did you get the excel spreadsheet to show up. I have struggled to show mine. If you can help would be god. Thanks Frank
 
Upvote 0
Frank, Hi AhoyNC, great to have your help. I was interested in the formula you posted above 18/April: I made a new workbook page entered in exact data and the formula you gave. My results were different on the last two items F112 Shows -25 & F13 shows 200. All others were correct. Intrigued how most could be right yet some wrong. Trying to get a handle of how to understand your lovely formula. F
 
Upvote 0
Frank, I have also used HTML Maker which you can find at link in post #3 .
How to use HTML Maker
https://www.youtube.com/watch?v=-_QSkuZ0ppM

Not sure why you get different answers.
Your formula in F12 should be:
Code:
[TABLE="width: 619"]
<colgroup><col width="619"></colgroup>[TR]
   [TD="width: 619"]SUMIFS($D$3:D12,$B$3:B12,B12,$C$3:C12,C12)+SUMIFS($E$3:E12,$B$3:B12,B12,$C$3:C12,C12)[/TD]
 [/TR]
[/TABLE]
Formula in F13 should be:
Code:
[TABLE]
<colgroup><col width="619"></colgroup>[TR]
   [TD="width: 619"]SUMIFS($D$3:D13,$B$3:B13,B13,$C$3:C13,C13)+SUMIFS($E$3:E13,$B$3:B13,B13,$C$3:C13,C13)
[/TD]
 [/TR]
[/TABLE]

The formula works by using an expandable range.
You will notice that the first cell in each column is locked, so that the range expands as the formula is copied down. In the example below I have just used the first SUMIFS to add the values in the "IN" (column D). Hope that helps.
Excel Workbook
ABCDEFGH
1Entry DateProduct TypeProduct NameInOutBal
2QtyQtyQtySum IN
31/4/2018AD-DSADG85291000100100
42/4/2018BO-KGSN500100000100000100000
53/4/2018DS-KGDiesel100100100
64/4/2018EO-KGSAE50260002600026000
75/4/2018BO-KGSN50025000125000125000
86/4/2018DS-KGDiesel-5050100
97/4/2018DS-KGDiesel-500100
108/4/2018EO-KGSAE50-26000026000
119/4/2018AD-DSADG8529-2575100
1210/4/2018AD-DSADG8529-2550100
1311/4/2018AD-DSADG85292000250300
Sheet
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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