Sum by Current Month

dgh71

New Member
Joined
Jun 29, 2011
Messages
3
Hi,

Have simple table as follows:

Date Total
01/08/11 $100
15/08/11 $50
03/09/11 $25
11/09/11 $50

I need a formula (sumif?) that will allow me to sum all values that apply to the current month. For example in the able table the current month would be 9 and therefore the total would be $75

Thanx in advance
Dave
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Hi,

Have simple table as follows:

Date Total
01/08/11 $100
15/08/11 $50
03/09/11 $25
11/09/11 $50

I need a formula (sumif?) that will allow me to sum all values that apply to the current month. For example in the able table the current month would be 9 and therefore the total would be $75

Thanx in advance
Dave
Try...

E2:

=TODAY()

=SUMIF($A$2:$A$5,">="&$E$2-DAY($E$2)+1,$B$2:$B$5)-SUMIF($A$2:$A$5,">"&EOMONTH($E$2,0),$B$2:$B$5)

If you are not on Excel 2007 or later, the Analysis Toolpak add-in must be active.

On Excel 2007 or later...

=SUMIFS($B$2:$B$5,$A$2:$A$5,">="&$E$2-DAY($E$2)+1,$A$2:$A$5,"<="&EOMONTH($E$2))

Generic...

Either:

=SUMPRODUCT($B$2:$B$5,($A$2:$A$5-DAY($A$2:$A5)+1=$E$2-DAY($E$2)+1)+0)

Or:

=SUMPRODUCT($B$2:$B$5,(TEXT($A$2:$A$5,"mmmyy")=TEXT($E$2,"mmmyy"))+0)
 
Upvote 0

Forum statistics

Threads
1,224,592
Messages
6,179,777
Members
452,942
Latest member
VijayNewtoExcel

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