# Creating a field for accumulated figure

#### Peterso

##### Board Regular
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

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

#### Anand Sharma

##### Board Regular
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

 code date qty month sold in Month 101 1/1/2016 1 1 7 SUMIF(\$D\$2:\$D\$7,""&D2,\$C\$2:\$C\$7) 102 1/2/2016 2 1 7 SUMIF(\$D\$2:\$D\$7,""&D3,\$C\$2:\$C\$7) 103 1/31/2016 4 1 7 SUMIF(\$D\$2:\$D\$7,""&D4,\$C\$2:\$C\$7) 104 11/1/2016 5 11 18 SUMIF(\$D\$2:\$D\$7,""&D5,\$C\$2:\$C\$7) 105 11/15/2016 6 11 18 SUMIF(\$D\$2:\$D\$7,""&D6,\$C\$2:\$C\$7) 106 11/30/2016 7 11 18 SUMIF(\$D\$2:\$D\$7,""&D7,\$C\$2:\$C\$7)

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

#### james_lankford

##### Well-known Member
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

...

wrong language

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,167,747
Messages
5,855,434
Members
431,732
Latest member
albertdi827

### 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.

### Which adblocker are you using?

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

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