+ Reply to Thread
Results 1 to 6 of 6

SUMIF Based on a date range

  1. #1
    Registered User
    Join Date
    08-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    8

    SUMIF Based on a date range

    Formula will be in O11. I need a sumif formula that will look at the dates in Column B and will only sum the cells in column I that fall within the range 1 Aug - 7 aug. Any assistance is appreciated.
    Attached Files Attached Files

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: SUMIF Based on a date range

    maybe also using sumifs

    Please Login or Register  to view this content.

    you can change the date as reference

    say X1 = beginning date
    X2 = ending date

    =SUMIFS(I6:I64,B6:B64,">="&X1,B6:B64,"<="&X2,Y6:Y64,"=true")

    hth.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Valued Forum Contributor
    Join Date
    09-07-2006
    Posts
    520

    Re: SUMIF Based on a date range

    Another way, in O11:
    =SUMPRODUCT(($B$6:$B$36>=--"01 Aug 2012")*($B$6:$B$36<=--"07 Aug 2012"),$I$6:$I$36)
    Max
    Singapore

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: SUMIF Based on a date range

    =SUMIFS(I6:I64,B6:B64,">="&DATEVALUE("8/1/2012"),B6:B64,"<="&DATEVALUE("8/7/2012"),Y6:Y64,"=true")
    vlady's formula works. However you could replace the "=true" with just TRUE and it will still work!
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,452

    Re: SUMIF Based on a date range

    Quote Originally Posted by Max, Singapore View Post
    Another way, in O11:
    =SUMPRODUCT(($B$6:$B$36>=--"01 Aug 2012")*($B$6:$B$36<=--"07 Aug 2012"),$I$6:$I$36)
    I don't see what the unary operator is for in this case ?

  6. #6
    Valued Forum Contributor
    Join Date
    09-07-2006
    Posts
    520

    Re: SUMIF Based on a date range

    The "--" converts the text dates into real dates. I like to use this kind of text dates, eg: "01 Aug 2012" as it is unambiguous, internationally readers know exactly which date it is, regardless of regional date formats/settings

+ 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