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:


amountdate
45 3/5/2018
653/8/2018
64/5/2018
3424/8/2018
455/5/2018
6545/8/2018
26/1/2018

<colgroup><col width="64" span="2" style="width: 48pt;"></colgroup><tbody>
</tbody>
Sheet2:
6/2018<JunSum>
5/2018 <MaySum>
4/2018 <Apr Sum>
3/2018 <MarSum>

<colgroup><col style="width: 68px"></colgroup><colgroup><col width="64" style="width: 48pt;"></colgroup><tbody>
</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:


SUMIFS(Sheet1!$A:$A,MONTH(Sheet1!$B:$B),MONTH(B3))



<colgroup><col width="64" style="width: 48pt;"></colgroup><tbody>
</tbody>
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

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
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,216,471
Messages
6,130,823
Members
449,595
Latest member
jhester2010

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