+ Reply to Thread
Results 1 to 4 of 4

Using SUMPRODUCT() to transpose and summarize data from a matrix to a vertical table

  1. #1
    Registered User
    Join Date
    04-29-2014
    Location
    Los Angeles
    MS-Off Ver
    MS365 v2210
    Posts
    21

    Using SUMPRODUCT() to transpose and summarize data from a matrix to a vertical table

    Dear Excel Gurus

    I need your help to transpose and summarize data from a matrix table into a calendarized vertical table with the Month# being the primary reference fields as shown in the 'Problem' table, please see screenshot below.

    The business problem concerns a post-production business that is trying to summarize job hours based on the average number of episodes (pro-rata) it needs to schedule out and complete per month. Each quote on the matrix table, where the data source lies, represents a project that has its job hour requirements, total number of episodes and months to complete and deliver the project.

    Problem:
    The hard part is to assign lookup array values (Quotes) noted in cells $N$4:$N$6 to its criterion referenced from the matrix table. And then, I have to multiple the average episodes per month noted in cells O$4:O$6 by the job hours referenced from the matrix table to produce the total job hours in cells $O$11:$N$14 for Month 1, as an example.

    The lookup array values in the quote section of the 'Problem table', need to be 3 rows in length as opposed 5 rows in length as shown on the matrix table. The reason being, I want to summarize the hours of only a select list of quotes (in random order) and not all of them as shown on the matrix table

    The lookup array values that summarize the job hours per month in the Problem table has 5 rows and references the same fields of the matrix table's job type (1, 2, 3...etc).

    I uploaded the excel worksheet, and to the right you will find the outcome or 'End Result' table. However, I do not want to use a conjoined multiple statement SUMPRODUCT() formulas to achieve the results as it's impractical. Instead, I like to use a one statement formula as shown in the 'Problem' table where the results have failed, unfortunately.

    Thanks in advance

    Al
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by alwizardus; 10-13-2022 at 02:39 PM.

  2. #2
    Forum Contributor
    Join Date
    03-05-2018
    Location
    Tbilisi, Georgia
    MS-Off Ver
    2013, 2016
    Posts
    271

    Re: Using SUMPRODUCT() to transpose and summarize data from a matrix to a vertical table

    Try this:
    PHP Code: 
    =SUMPRODUCT(($D$3:$G$3=$N11)*SUMIF($N$4:$N$6,$C$4:$C$8,O$4:O$6)*$D$4:$G$8
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-29-2014
    Location
    Los Angeles
    MS-Off Ver
    MS365 v2210
    Posts
    21

    Re: Using SUMPRODUCT() to transpose and summarize data from a matrix to a vertical table

    Thank you sir, you are a life saver!

  4. #4
    Forum Contributor
    Join Date
    03-05-2018
    Location
    Tbilisi, Georgia
    MS-Off Ver
    2013, 2016
    Posts
    271

    Re: Using SUMPRODUCT() to transpose and summarize data from a matrix to a vertical table

    You're welcome and thanks for the rep.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Sumproduct/COUNTIFs or With Index & Match in matrix table from different sheet
    By ZANDRY10085 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-24-2020, 03:39 AM
  2. Replies: 2
    Last Post: 02-19-2020, 01:30 AM
  3. [SOLVED] Need a help with SUMPRODUCT in a Matrix Table Lookup
    By ZANDRY10085 in forum Excel General
    Replies: 4
    Last Post: 01-08-2020, 04:22 AM
  4. Transpose matrix VBA code
    By Andre2016 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-22-2016, 09:42 AM
  5. VBA matrix transpose
    By Bartek120 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-05-2016, 03:18 PM
  6. transpose matrix in one column?
    By xlepws in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-04-2013, 06:02 PM
  7. Matrix transpose
    By stianabra in forum Excel General
    Replies: 3
    Last Post: 08-13-2009, 07:15 AM

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