Extract Monthly Data from a Sales Database (Sum up Sales Value Occurred in Same Date)

maniknandi

New Member
Joined
May 12, 2013
Messages
18
I have a sales Database as under:

Date Sales Person Vendor Sales Amount
4/1/13 A XYZ Ltd. 4500
4/3/13 B AAA Ltd. 3000
4/3/13 B BBB Ltd. 3000
5/3/13 A BBB Ltd. 2500
6/1/13 B AAA Ltd. 5000

I want to extract data from the above database based on the selection of the month. If I select April' 13 it will show as below:

Date Sales Person Sales Amount
4/1/13 A 4500
4/3/13 B 6000 (Sum up sales amount happened in same date under a salesperson)

Please help me and thanks in advance.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Look at a Pivot Table or do a sort of the data and then filter based on the month and use the subtotal feature.
 
Upvote 0
Try using a SUMIFS function then. Like this:
Sheet1

*ABCDEFGHI
DateSales PersonVendorSales Amount*Sales PersonStart DateEnd DateTotal
AXYZ Ltd.*A
BAAA Ltd.*B
BBBB Ltd.*****
ABBB Ltd.*****
BAAA Ltd.*****

<colgroup><col style="width: 30px; font-weight: bold;"><col style="width: 75px;"><col style="width: 85px;"><col style="width: 64px;"><col style="width: 93px;"><col style="width: 64px;"><col style="width: 85px;"><col style="width: 75px;"><col style="width: 75px;"><col style="width: 64px;"></colgroup><tbody>
[TD="bgcolor: #CACACA, align: center"]1[/TD]

[TD="bgcolor: #CACACA, align: center"]2[/TD]
[TD="align: right"]01/04/2013[/TD]

[TD="align: right"]4500[/TD]

[TD="align: right"]01/04/2013[/TD]
[TD="align: right"]30/04/2013[/TD]
[TD="align: right"]4500[/TD]

[TD="bgcolor: #CACACA, align: center"]3[/TD]
[TD="align: right"]03/04/2013[/TD]

[TD="align: right"]3000[/TD]

[TD="align: right"]01/04/2013[/TD]
[TD="align: right"]30/04/2013[/TD]
[TD="align: right"]6000[/TD]

[TD="bgcolor: #CACACA, align: center"]4[/TD]
[TD="align: right"]03/04/2013[/TD]

[TD="align: right"]3000[/TD]

[TD="bgcolor: #CACACA, align: center"]5[/TD]
[TD="align: right"]03/05/2013[/TD]

[TD="align: right"]2500[/TD]

[TD="bgcolor: #CACACA, align: center"]6[/TD]
[TD="align: right"]01/06/2013[/TD]

[TD="align: right"]5000[/TD]

</tbody>

Spreadsheet Formulas
CellFormula
H2=EOMONTH(G2,0)
I2=SUMIFS($D$2:$D$6,$A$2:$A$6,">="&G2,$A$2:$A$6,"<="&H2,$B$2:$B$6,F2)
H3=EOMONTH(G3,0)
I3=SUMIFS($D$2:$D$6,$A$2:$A$6,">="&G3,$A$2:$A$6,"<="&H3,$B$2:$B$6,F3)

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie Html" target="_blank"> Excel Jeanie HTML 4
check this youtube video out. Excel Magic Trick 568: SUMIFS function Monthly Running Total from Transaction Data - YouTube
 
Upvote 0
Happy to help, thanks for letting me know it helped you find a solution you are happy with.
 
Upvote 0

Forum statistics

Threads
1,223,264
Messages
6,171,081
Members
452,377
Latest member
bradfordsam

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