+ Reply to Thread
Results 1 to 6 of 6

Sum multiple values for months

  1. #1
    Registered User
    Join Date
    02-03-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Sum multiple values for months

    I have a spreadsheet that has Reference codes and values for days of the month next to them


    24-Jun 25-Jul 26-Jul 27-Aug 28-Aug 29-Sep 30-Sep
    Ref
    E121 12 12 12 12 12 12 12
    E132 12 12 12 12 12 12 12
    E183 12 12 12 12 12 12 12
    E154 24 24 24 24 24 24 24
    E105 12 12 12 12 12 12 12
    E170 24 24 24 24 24 24 24
    E119 24 24 24 24 24 24 24
    E123 24 24 24 24 24 24 24
    E147 24 24 24 24 24 24 24
    E156 24 24 24 24 24 24 24
    E171 12 12 12 12 12 12 12
    E113 12 12 12 12 12 12 12
    E119 12 12 12 12 12 12 12
    E107 24 24 24 24 24 24 24


    Could someone give me a formula that sums the number across according to the date so that the formula fits on my summary sheet:


    Ref No. Jun-12 Jul-12 Aug-12
    E101
    E102
    E103
    ...
    E200

    Thank you in advance

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Sum multiple values for months

    Hello bhavik1,

    welcome to the forum.

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

    I think I have a fair idea about what you are trying to achieve, and the solution lies either with a pivot table or with SUMPRODUCT(), but a sample file would do wonders to clear up any questions.

    cheers

  3. #3
    Registered User
    Join Date
    02-03-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Sum multiple values for months

    Hi,

    Thanks for the help, I've now attached a dummy workbook but if possible can this be done without Pivot tables, to avoid refreshing problems as the 2 sheets are in reality, in two different workbooks
    Attached Files Attached Files
    Last edited by DonkeyOte; 02-03-2010 at 07:48 AM. Reason: unnec. quote removed

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Sum multiple values for months

    Given your layout you're really restricted to using SUMPRODUCT, eg:

    Please Login or Register  to view this content.

    Note: you have E101 listed twice (A5 & A10)


    I am however curious as to how your source table (Data) is laid out - either you have:

    a) numerous "data" sheets to collate
    (if so, note that SUMPRODUCT won't work in 3D without INDIRECT at which point it becomes volatile)

    b) lots (& lots) of columns with some dates missing (or you're using XL2007)


    Either way, with a years worth of data to aggregate I suspect your summary table will be pretty slow to calculate.

  5. #5
    Registered User
    Join Date
    02-03-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Sum multiple values for months

    I have a lot of data sheets but many only have 10 days in them. Some however overlap 2 months such as the dummy document and that is where I am having problems
    Last edited by DonkeyOte; 02-03-2010 at 10:34 AM. Reason: removed unnec. quote

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Sum multiple values for months

    First, please do not quote prior posts in full in your response this practice simply clutters up the board...only quote necessary parts so as to maintain logical flow to thread (ie if answering posts out of sequence).


    The fact that the dates cross months is of no real / fundamental concern given this can be handled via formulae (as shown by earlier formula).

    What should be of real concern to you is the fact that your data is stored in an illogical manner and will result in very inefficient methods for analysis.

    If you wish to conduct efficient analysis on mass data with Excel as the data warehouse then you really must strive to store data in a logic and coherent manner
    ie think along the lines of database storage.

    Using your sample file as a discussion point... and specifically "Data" sheet

    IMO you should be storing these data points in a table with the following structure ("columns"):

    Please Login or Register  to view this content.

    each value in your present matrix (C6:T37) would in the above set-up be represented by a separate row / transaction in your listing, eg:

    Please Login or Register  to view this content.

    You will find you can analyse the above table far (far) more efficiently - eg Pivot Table.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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