+ Reply to Thread
Results 1 to 7 of 7

Subtotals from a Horizontal List

  1. #1
    Registered User
    Join Date
    09-11-2007
    Posts
    22

    Subtotals from a Horizontal List

    The following has me scratching my head and i am anxious for any help to obatin the results that i need.

    From a long list of date as shown below how do i calculate totals for each day of the week. Below is a small example of the data that i have.

    I want to establish totals for each monday for example for the long list of data that i have spanning 200 days.

    Aprpeciate any help that someone can give on this


    08-Apr 09-Apr 10-Apr 11-Apr 12-Apr 13-Apr
    0 129 123 114 0 138

  2. #2
    Valued Forum Contributor jj72uk's Avatar
    Join Date
    03-22-2008
    Location
    Essex, England
    MS-Off Ver
    Work - Office 2000, Home - Office 2007E
    Posts
    360

    Re: obatining subtotals from a Horizontal List

    Are the dates set out as above, or can it change to ddd/mm/yy?

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

    Re: obatining subtotals from a Horizontal List

    A sample file will help as it's not clear exactly how your data is laid out...

    If you have multiple rows to sum, say rows 2:100 and dates are in row 1 then one approach might be

    =SUMPROCUCT((WEEKDAY($A$1:$GR$1)=1)*($A$2:$GR$100))
    would for ex. sum all values for Sunday
    (assumes all values in A2:GR100 to be either numeric or blank)

  4. #4
    Registered User
    Join Date
    09-11-2007
    Posts
    22

    Re: Subtotals from a Horizontal List

    I have attached the document to perhaps make what i am asking a little clearer.

    I am trying to obtain the sum for row B for each week day.

    Thanks
    Attached Files Attached Files

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

    Re: Subtotals from a Horizontal List

    There was a typo in my prior post in so far as I meant SUMPRODUCT rather than SUMPROCUCT!

    Using your file... if for ex. you wanted Mon-Sun values in HI2:HO2 then

    HI2: =SUMPRODUCT(--(WEEKDAY($B$1:$HG$1,2)=COLUMNS($HI2:HI2)),$B2:$HG2)
    copied across to HO2

  6. #6
    Registered User
    Join Date
    09-11-2007
    Posts
    22

    Re: Subtotals from a Horizontal List

    Thanks. How do i actually establish totals for all Mondays, Tuesdays, Wednesday etc?

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

    Re: Subtotals from a Horizontal List

    Your question is not clear.... the formula provided totals all values where date is Monday - if copied across horizontally (as advised) you will get Tuesday, Wednesday etc (7 formulae for 7 days)

+ 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