How can I sum amounts from a different sheet onto a new sheet if the months are the same?

statiCat

New Member
Joined
Apr 21, 2018
Messages
19
I have 2 sheets in a workbook that look like:

Sheet1:


[TABLE="width: 128"]
<colgroup><col width="64" span="2" style="width: 48pt;"></colgroup><tbody>[TR]
[TD="width: 64, bgcolor: transparent"]amount[/TD]
[TD="width: 64, bgcolor: transparent"]date[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]45[/TD]
[TD="bgcolor: transparent, align: right"] 3/5/2018[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]65[/TD]
[TD="bgcolor: transparent, align: right"]3/8/2018[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]6[/TD]
[TD="bgcolor: transparent, align: right"]4/5/2018[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]342[/TD]
[TD="bgcolor: transparent, align: right"]4/8/2018[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]45[/TD]
[TD="bgcolor: transparent, align: right"]5/5/2018[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]654[/TD]
[TD="bgcolor: transparent, align: right"]5/8/2018[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2[/TD]
[TD="bgcolor: transparent, align: right"]6/1/2018[/TD]
[/TR]
</tbody>[/TABLE]
Sheet2:

<colgroup><col style="width: 68px"></colgroup><colgroup><col width="64" style="width: 48pt;"></colgroup><tbody>
[TD="bgcolor: transparent, align: right"] 6/2018 [/TD]
[TD="bgcolor: transparent"] <JunSum> [/TD]

[TD="bgcolor: transparent, align: right"] 5/2018 [/TD]
[TD="bgcolor: transparent"] <MaySum> [/TD]

[TD="bgcolor: transparent, align: right"] 4/2018 [/TD]
[TD="bgcolor: transparent"] <Apr Sum> [/TD]

[TD="bgcolor: transparent, align: right"] 3/2018 [/TD]
[TD="bgcolor: transparent"] <MarSum> [/TD]

</tbody>




I would like Sheet2 column B to have the sum of all amounts in Sheet 1 where the months match for Sheet1 column B/Sheet2 column A. I have tried a couple things including:


[TABLE="width: 64"]
<colgroup><col width="64" style="width: 48pt;"></colgroup><tbody>[TR]
[TD="width: 64, bgcolor: transparent"]SUMIFS(Sheet1!$A:$A,MONTH(Sheet1!$B:$B),MONTH(B3))[/TD]
[/TR]
[TR]
[TD="width: 64, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 64, bgcolor: transparent"]
[/TD]
[/TR]
</tbody>[/TABLE]
SUMPRODUCT((MONTH(Sheet1!$B:$<wbr style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif; font-size: medium;">B)=MONTH(A3))*(YEAR(Sheet1$B:$<wbr style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif; font-size: medium;">B)=YEAR(A3))*(Sheet1$A:$A))


but they are not working. Any ideas on how to make this work?
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Assuming your dates in Sheet2 are actual dates (6/1/18) formatted as m/yyy then try:

Excel Workbook
AB
1DateTotal
26/20182
35/2018699
44/2018348
53/2018110
Sheet2
Excel Workbook
AB
1amountdate
2453/5/2018
3653/8/2018
464/5/2018
53424/8/2018
6455/5/2018
76545/8/2018
826/1/2018
Sheet1
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,313
Members
452,634
Latest member
cpostell

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