+ Reply to Thread
Results 1 to 3 of 3

SUMIFS with MONTH() or other similar functions

  1. #1
    Registered User
    Join Date
    03-02-2010
    Location
    London, UK
    MS-Off Ver
    Excel 2003
    Posts
    35

    SUMIFS with MONTH() or other similar functions

    In Excel 2003, I used to achieve the results through the powerful SUMPRODUCT function to add sums with multiple criteria. Now that I have upgraded to Excel 2007, I intend to switch to using SUMIFS as it seems to be more efficient, however, I am struggling on how to replace the following formula with the new SUMIFS equivalent.

    =SUMPRODUCT(--(MONTH(A7:A15)=9)*(C7:C15))

    I understand the SUMIFS systax but I have not been able to find an alternative to MONTH() function within the formula. I would appreciate if someone could show me how to achive this. I have attached the Eg file for reference.
    Attached Files Attached Files
    Last edited by e_lad; 09-15-2011 at 11:28 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: SUMIFS with MONTH() or other similar functions

    Because you are enveloping the criteria range in a function, you can't really use it as is in the SUMIFS....

    This is an alternative way...

    =SUMIFS(C7:C15,A7:A15,">="&DATE(2011,9,1),A7:A15,"<="&DATE(2011,9,30))

    or if you want to work with only the first of the month, and let the formula determine the last day of the month, try

    =SUMIFS(C7:C15,A7:A15,">="&EOMONTH(DATE(2011,9,1),-1)+1,A7:A15,"<="&EOMONTH(DATE(2011,9,1),0))
    Last edited by NBVC; 09-15-2011 at 08:32 AM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    03-02-2010
    Location
    London, UK
    MS-Off Ver
    Excel 2003
    Posts
    35

    Re: SUMIFS with MONTH() or other similar functions

    NBVC, thank you for the help - that's solved the issue.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1