Creating a field for accumulated figure

Peterso

Board Regular
Joined
Nov 28, 2012
Messages
88
I have field 1 being the Product code, field 2 being the transaction dates, field 3 being the quantity buy/sold. I want to create a field 4 which is the accumulated quantity of a product in a month. How can I do that? Thx
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Anand Sharma

Board Regular
Joined
Nov 22, 2016
Messages
63
I suggest to insert an addition field to extract month using month(b2) formula and then use sumif function to get total quantity sold in a month

codedateqtymonthsold in Month
1011/1/2016117SUMIF($D$2:$D$7,""&D2,$C$2:$C$7)
1021/2/2016217SUMIF($D$2:$D$7,""&D3,$C$2:$C$7)
1031/31/2016417SUMIF($D$2:$D$7,""&D4,$C$2:$C$7)
10411/1/201651118SUMIF($D$2:$D$7,""&D5,$C$2:$C$7)
10511/15/201661118SUMIF($D$2:$D$7,""&D6,$C$2:$C$7)
10611/30/201671118SUMIF($D$2:$D$7,""&D7,$C$2:$C$7)

<colgroup><col><col><col span="2"><col><col></colgroup><tbody>
</tbody>
 

Watch MrExcel Video

Forum statistics

Threads
1,130,119
Messages
5,640,218
Members
417,131
Latest member
Seanr19871

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