Sumproduct across cells conditional upon date?

TGill

New Member
Joined
Oct 13, 2015
Messages
7
ABC
1Savage12/04/1529,699.59
2Huntington12/09/1527,725.74
3Prestige12/23/1512,869.39
4Concord01/27/1622,807.85
5Kelly02/01/164,833.24
6Burlington02/04/165,695.15
7
812/01/1570,294.72
901/01/1622,807.85
1002/01/1610,528.39

<tbody>
</tbody>

Trying to get a formula to come up with the figures in RED above. This is a very small fragment of a very large spreadsheet. Need to sum up the figures in column C based on the month & year of column B that have the same month & year of column A.

Searched around, found several Sumproduct uses for various worksheets, but couldn't get any of them to work here.

Thanks in advance.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Try

C8 copied down
=SUMPRODUCT(--(YEAR($B$1:$B$6)=YEAR(A8)),--(MONTH($B$1:$B$6)=MONTH(A8)),$C$1:$C$6)

Hope this helps

M.
 
Upvote 0
Just another option for fun. My understanding is SUMPRODUCT calculates quicker, but I may be wrong:

=SUMIFS($C$1:$C$6,$B$1:$B$6,">="&A8,$B$1:$B$6,"<="&EOMONTH(A8,0))
 
Upvote 0

Forum statistics

Threads
1,215,906
Messages
6,127,662
Members
449,395
Latest member
Perdi

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