+ Reply to Thread
Results 1 to 4 of 4

Help needed...

  1. #1
    Forum Contributor
    Join Date
    12-19-2006
    Posts
    113

    Help needed...

    Hi,
    I am looking for help on a file i am working on...

    A B C
    Date IN OUT
    01/01/06 12 2
    03/01/06 3 8
    05/01/06 8 0
    09/01/06 10 4
    15/01/06
    ...

    And I need a formula in D1 to get the total of data in column B between 01/01/06 and 07/01/06, in D2 to get the total of data in column B between 08/01/06 and 14/01/06, etc.

    Can someone please help me with this? Thanks in advance.

  2. #2
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094
    Hi,

    Try something like,

    =SUMPRODUCT(--($A$2:$A$5>=DATEVALUE("1/1/2006")),--($A$2:$A$5<=DATEVALUE("1/7/2006")),($B$2:$B$5))

    Note: The ranges used must be equal in length and cannot be entire column references i.e. A:A or B:B.

    HTH

    Steve

  3. #3
    Forum Contributor
    Join Date
    12-19-2006
    Posts
    113
    Hi, SteveG

    It works...

    Thank you for your help.

  4. #4
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094
    Glad I could help.

    Cheers,

    Steve

+ 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