Sum Amounts For Specific Products by Month

samtheman509

Board Regular
Joined
Sep 1, 2015
Messages
54
Hi!

I have a list of data that has Product Names in one column, date in the next, and finally Transaction amount in column C.

I am trying to find the Total Transaction Amount by month and product. How can I do this?


Example:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Product Name[/TD]
[TD]Date[/TD]
[TD]Trans Amt[/TD]
[/TR]
[TR]
[TD]Red[/TD]
[TD]1/3/17[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Red[/TD]
[TD]5/15/17[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]Green[/TD]
[TD]4/1/17[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]Blue[/TD]
[TD]5/15/17[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Blue[/TD]
[TD]6/1/17[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]Yellow[/TD]
[TD]5/1/17[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]


What formula can I get that would break out the totals by product and month?

Thanks!
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
a pivot table would the simplest and quickest

do you know pivot tables ?
 
Upvote 0
Excel Workbook
ABCDEFGHI
1Product NameDateTrans Amt
2Red03/01/20175YearsDateProduct NameSum of Trans Amt
3Red15/05/201792017JanRed5
4Green01/04/20176AprGreen6
5Blue15/05/20174MayBlue4
6Blue01/06/20176Red9
7Yellow01/05/20171Yellow1
8JunBlue6
9
Sheet1
 
Upvote 0
[TABLE="class: grid"]
<tbody>[TR]
[TD][/TD]
[TD]
A
[/TD]
[TD]
B
[/TD]
[TD]
C
[/TD]
[TD]
D
[/TD]
[TD]
E
[/TD]
[TD]
F
[/TD]
[TD]
G
[/TD]
[TD]
H
[/TD]
[TD]
I
[/TD]
[TD]
J
[/TD]
[TD]
K
[/TD]
[TD]
L
[/TD]
[TD]
M
[/TD]
[TD]
N
[/TD]
[TD]
O
[/TD]
[TD]
P
[/TD]
[TD]
Q
[/TD]
[TD]
R
[/TD]
[TD]
S
[/TD]
[/TR]
[TR]
[TD]
1
[/TD]
[TD]Product Name[/TD]
[TD]Date[/TD]
[TD]Trans Amt[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]january[/TD]
[TD]february[/TD]
[TD]march[/TD]
[TD]april[/TD]
[TD]may[/TD]
[TD]june[/TD]
[TD]july[/TD]
[TD]august[/TD]
[TD]september[/TD]
[TD]october[/TD]
[TD]november[/TD]
[TD]december[/TD]
[/TR]
[TR]
[TD]
2
[/TD]
[TD]Red[/TD]
[TD]
1/3/2017
[/TD]
[TD]
5
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Red[/TD]
[TD]Trans Amt[/TD]
[TD]
5​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
9​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[/TR]
[TR]
[TD]
3
[/TD]
[TD]Red[/TD]
[TD]
5/15/2017
[/TD]
[TD]
9
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Green[/TD]
[TD]Trans Amt[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
6​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[/TR]
[TR]
[TD]
4
[/TD]
[TD]Green[/TD]
[TD]
4/1/2017
[/TD]
[TD]
6
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Blue[/TD]
[TD]Trans Amt[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
4​
[/TD]
[TD]
6​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[/TR]
[TR]
[TD]
5
[/TD]
[TD]Blue[/TD]
[TD]
5/15/2017
[/TD]
[TD]
4
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Yellow[/TD]
[TD]Trans Amt[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
1​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[TD]
0​
[/TD]
[/TR]
[TR]
[TD]
6
[/TD]
[TD]Blue[/TD]
[TD]
6/1/2017
[/TD]
[TD]
6
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
7
[/TD]
[TD]Yellow[/TD]
[TD]
5/1/2017
[/TD]
[TD]
1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

h2=SUMPRODUCT(($A$2:$A$7=$F2)*(TEXT($B$2:$B$7,"mmmm")=H$1)*(YEAR($B$2:$B$7)=2017)*($C$2:$C$7)) copy across and down
 
Upvote 0

Forum statistics

Threads
1,224,825
Messages
6,181,190
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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