+ Reply to Thread
Results 1 to 3 of 3

How to sum amounts between two dates?

  1. #1
    Registered User
    Join Date
    07-28-2008
    Location
    Chicago
    Posts
    15

    How to sum amounts between two dates?

    How can I sum amounts in file that fit a specific date range? For example, I am looking to sum amounts from 01/01/2013 thru 03/31/2013. How do I set Excel to pull amounts specific to this date range?

    Also, this date range will change at random so I do not want to hard code the dates in the formula.

    Thanks,

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to sum amounts between two dates?

    Assuming:

    1) Dates in column A
    2) Values to sum in column B
    3) Start date in C2
    4) End date in D2
    5) Excel version 2007 or greater:

    Put this formula in E2:

    =SUMIFS(B:B, A:A, "<="&C2, A:A, ">="&D2)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to sum amounts between two dates?

    Your profile doesn't indicate what version of Excel you're using.

    These formulas will work in any version of Excel.

    A2:A20 = dates
    B2:B20 = values to sum

    Use cells to hold the date criteria:

    D2 = 1/1/2013
    E2 = 3/31/2013

    =SUMIF(A:A,">="&D2,B:B)-SUMIF(A:A,">"&E2,B:B)

    =SUMPRODUCT(--(A2:A20>=D2),--(A2:A20<=E2),B2:B20)

    When using the SUMPRODUCT function you should avoid using entire columns as range references (which is version dependent).
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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