+ Reply to Thread
Results 1 to 7 of 7

Date Condition in SUMIFS Statement

  1. #1
    Registered User
    Join Date
    04-13-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    14

    Date Condition in SUMIFS Statement

    I'm attempting to do a SUMIFS statement where I sum the values of the 'J' column, but only if the date in the 'D' column falls on or after a specified date. In the below, the string ?????? should basically be saying "if the date in the D column is on or after 5/30/2011".

    =SUMIFS($J$2:$J$19,$D$2:$D$19??????)


    I tried doing it like this but (as I expected) it did not work:


    =SUMIFS($J$2:$J$19,$D$2:$D$19>=”5/30/2011”)


    Thanks!

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

    Re: Date Condition in SUMIFS Statement

    Try:.

    =SUMIFS($J$2:$J$19,$D$2:$D$19,">=5/30/2011")

    not sure what I was thinking... but try above...

    or if one condition

    =SUMIF($D$2:$D$19,">=5/30/2011",$J$2:$J$19)
    Last edited by NBVC; 05-14-2012 at 04:30 PM.
    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
    Forum Contributor
    Join Date
    04-24-2012
    Location
    Moscow
    MS-Off Ver
    Excel 2010
    Posts
    291

    Re: Date Condition in SUMIFS Statement

    It's hard with no workbook, but =SUMIFS($J$2:$J$19,$D$2:$D$19,">=5/30/2011”) is the right syntax

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Date Condition in SUMIFS Statement

    Try

    =SUMIFS($J$2:$J$19,$D$2:$D$19,">=5/30/2011”)

  5. #5
    Registered User
    Join Date
    04-13-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Date Condition in SUMIFS Statement

    The syntax below did not work. I'm attaching a simplified/fictionalized example workbook. The formula would need to go into B11.
    Attached Files Attached Files

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

    Re: Date Condition in SUMIFS Statement

    Works for me... see attached.

  7. #7
    Registered User
    Join Date
    04-13-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Date Condition in SUMIFS Statement

    Never mind my last post. This string from earlier in the thread worked in the "real" workbook:
    =SUMIFS($J$2:$J$19,$D$2:$D$19,">=5/30/2011")

    Must've copied it wrong but i got there in the end. Thanks!

+ 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