Creating a field for accumulated figure

Peterso

Board Regular
Joined
Nov 28, 2012
Messages
102
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

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
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>
 
Upvote 0

Forum statistics

Threads
1,214,645
Messages
6,120,711
Members
448,984
Latest member
foxpro

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