+ Reply to Thread
Results 1 to 4 of 4

Sumif using dynamic date criteria

  1. #1
    Registered User
    Join Date
    05-17-2004
    Posts
    9

    Sumif using dynamic date criteria

    Hi all!

    I have class dates in column B. I have number of students in column C. In cell G1 I have the month & year (Aug-2005, Sep-2005, etc). I'm trying to sum all of the students by month beginning in cell G2.

    I'm headed down the path of SUMIF((month(B:B)&year(B:B),(MONTH(U1)&YEAR(U1)),C:C) but that formula is not working. Any ideas to point me down the right path? Thanks!

    Brian

  2. #2
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094
    Brian,

    Try,

    =SUMPRODUCT((MONTH(B1:B3)=MONTH(G1))*(YEAR(B1:B3)=YEAR(G1))*C1:C3)

    Adjust your ranges as needed. Note: You can not use entire column references (A:A, B:B etc...) with SUMPRODUCT and your ranges have to be the same size.

    HTH

    Steve

  3. #3
    Registered User
    Join Date
    05-17-2004
    Posts
    9
    That worked! Thanks a ton!!!


  4. #4
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094
    You're welcome. Thanks for the feedback.

    Steve

+ 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