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?[TABLE="width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]$ value[/TD]
[/TR]
[TR]
[TD]01-01-2019[/TD]
[TD]500[/TD]
[/TR]
[TR]
[TD]01-02-2019[/TD]
[TD]300[/TD]
[/TR]
[TR]
[TD]01-20-2019[/TD]
[TD]1500[/TD]
[/TR]
[TR]
[TD]02-05-2019[/TD]
[TD]2000[/TD]
[/TR]
[TR]
[TD]05-07-2019[/TD]
[TD]4000[/TD]
[/TR]
[TR]
[TD]15-07-2019[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

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.
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,223,911
Messages
6,175,327
Members
452,635
Latest member
laura12345

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