SUM IF DATE IN IN THAT MONTH

superstarr

Board Regular
Joined
Jul 10, 2003
Messages
54
hi
need a little hlp pls
have a range of dates, ie 3/11/2004
would like to have the sum of all the dates by month
tried the sumif, but cant figure out how to tell formula that 3/11/2004 is in march so add to the march total

thx much

JOn
 
@brbell01

1. If a year test is not needed: Control+shift+enter, not just enter...

=SUM(IF(MONTH($A$3:$A$2000)=7,IF($C$3:$C$2000="bella",$B$3:$B$2000)))

2. If you have the SUMIFS function on your system: Just enter...

=SUMIFS(B:B,C:C,"bella",A:A,">="&DATE(2016,7,1),A:A,"<="&DATE(2016,7,31))



This solution worked perfectly thanks so very much, Aladin.
 
Upvote 0

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
I have a slight tweak that I need some help with, I am using the below formula to sum the 'liftings' (a quantity) inV:V if the date of lifting (stored in B:B) is within the month shown in A4 in the current tab.

All seems to be working well using the advice above, but I'm like to only sum if the lifting has occured (rather than scheduled to occur) so I have a Y / N cell in the Liftings tab under A:A...I'd like the formula to first check that the Lifting is marked as Y then perform the sum...

e.g. 3 equal liftings 1000 units in the month referenced in A4, 2 liftings are marks Y; I'd like to show 2000...and as soon as I flick N to Y it will show 3000

Can anyone help amend the below?

Thanks,


=SUMIFS(Liftings!V:V,Liftings!B:B,">="&A4,Liftings!B:B,"<="&EOMONTH(A4,0))
 
Upvote 0
How about
=SUMIFS(Liftings!V:V,Liftings!B:B,">="&A4,Liftings!B:B,"<="&EOMONTH(A4,0),Liftings!A:A,"Y")
 
Upvote 0
I am slightly embarrassed I didn't think of that myself, but so grateful that this works perfectly! Thanks for the quick reply!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,216,109
Messages
6,128,883
Members
449,477
Latest member
panjongshing

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