+ Reply to Thread
Results 1 to 6 of 6

Sumif Date is Between two Dates

  1. #1
    Registered User
    Join Date
    06-21-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Sumif Date is Between two Dates

    Hi!
    I want to make a report for an equipment rental company. I have a list of SHIPPED_DATE and RETURN_DATE and the value of equipment.

    I have a column of dates (see column I). I want to know at any given date the amount of equipment that was rented out.I need to now on, say 1/15/11 the total equipment out. So 1/15/2011 is >= than SHIPPED_DATE and <= than RETURN_DATE.

    Thanks in advance!!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: Sumif Date is Between two Dates

    Hi

    Create a table of your data, as then the range will expand automatically as you add more data.

    Place cursor in any cell on sheet3 >insert tab>table>my data had headers

    Then with thee date you are testing in I1 enter in I2
    =SUMPRODUCT((Table1[SHIPPED_DATE]<=$I$1)*(Table1[RETURN_DATE]<=$I$1))
    Attached Files Attached Files
    --
    Regards
    Roger Govier
    Microsoft Excel MVP

  3. #3
    Registered User
    Join Date
    06-21-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Sumif Date is Between two Dates

    Thanks -
    But I want to know the sum of equipment out on that day (column C)

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,698

    Re: Sumif Date is Between two Dates

    Perhaps try SUMIFS

    =SUMIFS(C:C,D:D,">="&I1,E:E,"<="&I1)
    Audere est facere

  5. #5
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: Sumif Date is Between two Dates

    Quote Originally Posted by exceler1 View Post
    Thanks -
    But I want to know the sum of equipment out on that day (column C)
    Hi
    Apologies, I thought you wanted a count.

    If you want the values then
    =SUMPRODUCT((Table1[SHIPPED_DATE]<$I$1)*(Table1[RETURN_DATE]>$I$1)*Table1[ITEM_SUM])

    Note this has been changed to BEFORE 15/02/2011 (or whatever date you type in I1)
    and returned AFTER date in I1

    If you want to INCLUDE the I1 day then amend formula to
    =SUMPRODUCT((Table1[SHIPPED_DATE]<=$I$1)*(Table1[RETURN_DATE]>=$I$1)*Table1[ITEM_SUM])

  6. #6
    Registered User
    Join Date
    06-21-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Sumif Date is Between two Dates

    Thank you Roger!
    That did it - works perfectly.

    P.S. How doe you mark a thread "solved"?

+ 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