I'm trying to sum only certain values in column F if they are inthe range in column B, ie column F amounts have values from all months, but I just want to sum the cells related to the month of Jan., a which is column B
=SUMIF(B9:B39,"<=12/31/2011", F9:F39) I used this and it worked for anything <= Dec. 31. Dec. was the starting month in my list.
=SUMIF(B9:B39,"1/1/2012:1/31/2012",F9:F39) Now I'm trying to set up something like this, only sum the cells in F that occured in the month on Jan.
Any help is greatly appreciated
Last edited by hlep; 12-02-2011 at 07:26 AM.
Hi,
With the first date/day of your reference month in say C2, i.e. for January 01/01/2012
Regards=SUMIFS(B:B,A:A,">="&C1,A:A,"<="&EOMONTH(C1,0))
Richard Buttrey
If this was useful then please rate it appropriately.
Click the small star iconat the bottom left of my post.
=SUMIFS(F9:F39,B9:B39,">=1/1/2012",B9:B39,"<=1/31/2012")
Regards, TMS
Hi,
Does this do as you ask?
=SUMPRODUCT((F9:F39)*(MONTH(B9:B39)=1))
to include the year as well,
=SUMPRODUCT((F9:F39)*(MONTH(B9:B39)=1)*(YEAR(B9:B39)=2012))
Please disregard anything in the above post. It may well have been edited without my consent, as has been the case with several posts and threads recently.
All of the above worked. Thank you
You're welcome. Thanks for the rep.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks