+ Reply to Thread
Results 1 to 3 of 3

Summing between Range

  1. #1
    Registered User
    Join Date
    04-01-2004
    Posts
    5

    Summing between Range

    I have been trying to sum cells between two dates.
    A B
    1/1 8
    1/2 8
    1/3 8
    1/4 8
    1/5 5
    1/6 7
    1/7 9


    For example what would I do if I wanted the sum of values in column B between 1/1 and 1/5. I have years worth of data and a lot of different intervals. Any help would be appreciated. Thanks in advance

  2. #2
    Ardus Petus
    Guest

    Re: Summing between Range

    Assuming you have 1/1 in C1 and 1/5 in C2:
    =SUMPRODUCT((A1:A1000>=C1)*(A1:A1000<=C2);B1:B1000)

    Cheers,
    --
    AP

    "cb3291u" <[email protected]> a écrit
    dans le message de news:
    [email protected]...
    >
    > I have been trying to sum cells between two dates.
    > A B
    > 1/1 8
    > 1/2 8
    > 1/3 8
    > 1/4 8
    > 1/5 5
    > 1/6 7
    > 1/7 9
    >
    >
    > For example what would I do if I wanted the sum of values in column B
    > between 1/1 and 1/5. I have years worth of data and a lot of different
    > intervals. Any help would be appreciated. Thanks in advance
    >
    >
    > --
    > cb3291u
    > ------------------------------------------------------------------------
    > cb3291u's Profile:
    > http://www.excelforum.com/member.php...fo&userid=7822
    > View this thread: http://www.excelforum.com/showthread...hreadid=547119
    >




  3. #3

    Re: Summing between Range

    I use this, seems to work:

    =SUMPRODUCT(--($Q$6:$Q$220>=DATE(2005,9,1)),--($Q$6:$Q$220<DATE(2005,10,1)),$V$6:$V$220)

    With Column Q containing the dates and column V containing the values
    to be summed.

    P

    cb3291u wrote:
    > I have been trying to sum cells between two dates.
    > A B
    > 1/1 8
    > 1/2 8
    > 1/3 8
    > 1/4 8
    > 1/5 5
    > 1/6 7
    > 1/7 9
    >
    >
    > For example what would I do if I wanted the sum of values in column B
    > between 1/1 and 1/5. I have years worth of data and a lot of different
    > intervals. Any help would be appreciated. Thanks in advance
    >
    >
    > --
    > cb3291u
    > ------------------------------------------------------------------------
    > cb3291u's Profile: http://www.excelforum.com/member.php...fo&userid=7822
    > View this thread: http://www.excelforum.com/showthread...hreadid=547119



+ 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