+ Reply to Thread
Results 1 to 3 of 3

Summing matrix values based on X & Y axis values

  1. #1
    Registered User
    Join Date
    02-24-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Summing matrix values based on X & Y axis values

    The simplified example below is intended to calculate the sums from the data values in the upper data set and place them in the appropriate cells in the lower summary table.

    Raw Data
    Apr May Jun Jul
    Yes 2 4 6 8
    No 1 2 3 4
    Yes 4 8 12 16


    Summation
    Apr May Jun Jul
    Yes 6 12 18 24
    No 1 2 3 4

    I would like to find a single-cell formula that will handle the multiple instances of either the X or Y headings (ex: there are two 'Yes' Rows) and still reach the appropriate summations. I would like to accomplish this without resorting to Macros or manual cell references if possible.

    I've acheived some limited success with array formulae so far, but find that the multiple instances of 'Yes' cause only one row to be summed before the formula finishes.
    Attached Files Attached Files
    Last edited by NBVC; 02-24-2009 at 02:56 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Summing matrix values based on X & Y axis values

    Does this formula in B10, copied across and down.. accomplish that, or did I misunderstand your question?

    =SUMIF(Tasks,$A10,B$3:B$5)

    or

    maybe:

    =SUMPRODUCT((Tasks=$A10)*(Dates=B$9),Data)

    copied across and down...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    02-24-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Summing matrix values based on X & Y axis values

    YES!

    Those both worked, but the SUMPRODUCT makes both inputs dynamic based on the header!

    Thanks. MUCH easier to follow than arrays!

    -VT

+ 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