Sum by month/year

ace09

New Member
Joined
Aug 28, 2018
Messages
3
Hi there,

I have a date column and a Dollar column. I want to sum based on the month and year. So in the below example for Jan 2019 i would get the answer of $2300. I believe the Sum Production or Sum if function needs to be used. Can any one help with this one?
Date$ value
01-01-2019500
01-02-2019300
01-20-20191500
02-05-20192000
05-07-20194000
15-07-2019200

<tbody>
</tbody>
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Hi,

If you're able to add an extra column the easiest way would be to have a column with formula =EOMONTH(A2,0) the do SUMIF on that column.


Cheers

Ray
 
Upvote 0
Hi,

Assuming those are Real Date values in Column A (the last entry does Not match the rest), use SUMPRODUCT to check for Month:


Book1
ABCDE
1Date$ valueMonth to SumResult
21/1/201950012300
31/2/2019300
41/20/20191500
52/5/20192000
65/7/20194000
77/15/2019200
Sheet212
Cell Formulas
RangeFormula
E2=SUMPRODUCT((MONTH(A2:A7)=D2)*B2:B7)


Change D2 to the Number corresponding to whichever Month you want to SUM.
 
Upvote 0

Forum statistics

Threads
1,214,537
Messages
6,120,096
Members
448,944
Latest member
SarahSomethingExcel100

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