SUM Unbtil Next Number

Jezza25

New Member
Joined
Jan 29, 2011
Messages
16
Hi Below is 2 data fields, the first data shows current data and subsequant, I did ask a earlier question about getting it show on the individual ID's which was answered ( thanks!) what I ned is for it to add up. SO for order 3 there was actual 3 items and the quantities were 123 each, I need on a subsequant sheet for it to add up where there is a blank until it reaches order ID 4

[TABLE="width: 128"]
<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]ID[/TD]
[TD="width: 64"]Quantity[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD="align: right"]123[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD="align: right"]123[/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: right"]123[/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: right"]123[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD="align: right"]13[/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD="align: right"]123[/TD]
[/TR]
[TR]
[TD="align: right"]6[/TD]
[TD="align: right"]23[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Result wanting[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]ID[/TD]
[TD]Quantity[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD="align: right"]123[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD="align: right"]346[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD="align: right"]13[/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD="align: right"]123[/TD]
[/TR]
[TR]
[TD="align: right"]6[/TD]
[TD="align: right"]23[/TD]
[/TR]
</tbody>[/TABLE]
 

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.
with a helpcolumn (F) and after that a pivot table (I and J).

See the below result.


Book1
DEFGHIJ
48numbervaluehelpRijlabelsSom van value
491121112
50212322123
51312333369
521233413
5312335123
544134623
5551235Eindtotaal663
566236
Blad20
Cell Formulas
RangeFormula
F49=IF(D49="",F48,D49)
F50=IF(D50="",F49,D50)
F51=IF(D51="",F50,D51)
F52=IF(D52="",F51,D52)
F53=IF(D53="",F52,D53)
F54=IF(D54="",F53,D54)
F55=IF(D55="",F54,D55)
F56=IF(D56="",F55,D56)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,238
Messages
6,170,939
Members
452,368
Latest member
jayp2104

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