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:
Product NameDateTrans Amt
Red1/3/175
Red5/15/179
Green4/1/176
Blue5/15/174
Blue6/1/176
Yellow5/1/171

<tbody>
</tbody>


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

Thanks!
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
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
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
1
Product NameDateTrans Amtjanuaryfebruarymarchaprilmayjunejulyaugustseptemberoctobernovemberdecember
2
Red
1/3/2017
5
RedTrans Amt
5​
0​
0​
0​
9​
0​
0​
0​
0​
0​
0​
0​
3
Red
5/15/2017
9
GreenTrans Amt
0​
0​
0​
6​
0​
0​
0​
0​
0​
0​
0​
0​
4
Green
4/1/2017
6
BlueTrans Amt
0​
0​
0​
0​
4​
6​
0​
0​
0​
0​
0​
0​
5
Blue
5/15/2017
4
YellowTrans Amt
0​
0​
0​
0​
1​
0​
0​
0​
0​
0​
0​
0​
6
Blue
6/1/2017
6
7
Yellow
5/1/2017
1

<tbody>
</tbody>

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,216,441
Messages
6,130,643
Members
449,585
Latest member
Nattarinee

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