+ Reply to Thread
Results 1 to 5 of 5

Sum data between 2 dates ie 01Jun-30Jun

  1. #1
    Registered User
    Join Date
    07-15-2006
    Posts
    3

    Question Sum data between 2 dates ie 01Jun-30Jun

    I'm trying to sum information on another worksheet.

    01-Jun in column a and 15 in column b
    25-Jun in column a and 20 in column b
    01-Aug in column a and 30 in column b

    to give me total for Jun in another worksheet with a total value of 35 (ie adding just the month of June

    Can anyone help?

  2. #2
    Bondi
    Guest

    Re: Sum data between 2 dates ie 01Jun-30Jun


    PamelaJ wrote:
    > I'm trying to sum information on another worksheet.
    >
    > 01-Jun in column a and 15 in column b
    > 25-Jun in column a and 20 in column b
    > 01-Aug in column a and 30 in column b
    >
    > to give me total for Jun in another worksheet with a total value of 35
    > (ie adding just the month of June
    >
    > Can anyone help?
    >
    >
    > --
    > PamelaJ
    > ------------------------------------------------------------------------
    > PamelaJ's Profile: http://www.excelforum.com/member.php...o&userid=36387
    > View this thread: http://www.excelforum.com/showthread...hreadid=561701


    Hi Pamela,

    Maybe you can use SUMPRODUCT() Something along the lines of:

    =SUMPRODUCT(--(MONTH(A1:A3)=6),B1:B3)

    Asuming here that the Dates are in A1:A3 and numbers in B1:B3.
    Jou can just modify the range to your needs.
    The 6 is for June and you can just alter that aswell to fit your needs.

    Regards,
    Bondi


  3. #3
    David
    Guest

    RE: Sum data between 2 dates ie 01Jun-30Jun

    An alternative would be to split the date so you have say: -

    Row Column A Column B
    1 2 June
    2 24 June
    3 13 April

    You could then use SUMIF. Using the example above you would use the
    following formula: -

    =SUMIF(1B:3B,"June",1A:3A)

    To explain the above: -

    The formula first of all searches 1B:3B

    The second part "June" is what it looks to find in the range 1B:3B

    The final bit 1A:3A is the list of values and it calculates the sum of the
    corresponding cells where it finds "June" or whatever criteria you set.

    I hope that this helps.


    --
    David


    "PamelaJ" wrote:

    >
    > I'm trying to sum information on another worksheet.
    >
    > 01-Jun in column a and 15 in column b
    > 25-Jun in column a and 20 in column b
    > 01-Aug in column a and 30 in column b
    >
    > to give me total for Jun in another worksheet with a total value of 35
    > (ie adding just the month of June
    >
    > Can anyone help?
    >
    >
    > --
    > PamelaJ
    > ------------------------------------------------------------------------
    > PamelaJ's Profile: http://www.excelforum.com/member.php...o&userid=36387
    > View this thread: http://www.excelforum.com/showthread...hreadid=561701
    >
    >


  4. #4
    Registered User
    Join Date
    07-15-2006
    Posts
    3

    Sum data between 2 dates.....

    =SUMPRODUCT(--(MONTH('Month 4 July 06-07'!C$8:C$124)=6),'Month 4 July 06-07'!D$8:D$124)

    This Gives me monthly summary totals
    June, July .....May for the 12 months.

    This is where I was finally going
    Column A
    =IF(MONTH('Month 4 July 06-07'!$C8)=B$2,'Month 4 July 06-07'!$A8,0)
    Column B
    =IF(MONTH('Month 4 July 06-07'!$C8)=+B$2,'Month 4 July 06-07'!$D8,0)


    C8 is date in formate 01/06/06 etc
    A8 is Code Number
    D8 is Value

    This gave me the Product Code and the quantity completed in month detail.

    I then copied down to C9, A9, D9 etc then sum total at bottom, month by month for 12 months in columns C,D etc.. etc..

    Thanks Bondi, I will definitely be back to this site, sat up until 3am this morning trying to figure this one out.

  5. #5
    Registered User
    Join Date
    07-15-2006
    Posts
    3

    Sum data between 2 dates....

    Thanks for the post David, it's a much simpler version, but unfortunately I'm using another persons file, exported from a system and there is too much data to amend. However, will utilize that when creating my own files.
    Thanks again for response.
    PamelaJ

+ 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