+ Reply to Thread
Results 1 to 5 of 5

Matrix Build from 3 Columns of Data

  1. #1
    Registered User
    Join Date
    12-01-2008
    Location
    Ireland
    Posts
    3

    Matrix Build from 3 Columns of Data

    I'm looking to build a matrix from three columns of data. The three columns essentially have an a-node value, b-node value, and the result value.

    I want to build a matrix where I can input the a-node values as row headers, the b-node values as column headers, and the result value will be populated in the corresponding cell (see attached). I've tried a combination of index and match functions but can't seem to get anything to work.

    Eventually, I would like to build a series of matrices from a long set of three columns of data.

    If you have any questions regarding the above, please post any follow up questions. Any help would be greatly appreciated!
    Attached Files Attached Files

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Matrix Build from 3 Columns of Data

    Have you considered using a Pivot Table?

    From the Excel Main Menu: <Data><Pivot Table>
    Use: Excel……Click [Next]
    Select your data……Click [Next]
    Click the [Layout] button

    ROW: Drag the A-Node field here
    COLUMN: Drag the B-Node field here
    DATA: Drag the Result field here
    If it doesn't list as Sum of Result...dbl-click it and set it to Sum
    Click [OK]
    Select where you want the Pivot Table…Click [Finish].

    That will list each intersection of A-Node and B-Node and the sum of Result.

    To refresh the Pivot Table, just right click it and select Refresh Data

    Is that something you can work with?

    Pivot Table Links:
    http://www.nickhodge.co.uk/gui/datam...ablereport.htm
    http://www.contextures.com/tiptech.html
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    09-12-2007
    Posts
    66
    Use a pivot table

    eta: see attached
    Attached Files Attached Files
    Last edited by mrchoppychops; 12-01-2008 at 12:12 PM. Reason: add attachment

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    You can get your results using the SUMPRODUCT Function. For your example, in B19, you'd input the formula
    Please Login or Register  to view this content.
    Drag it down and over.

    This formula sums the values in C3:C14 where the A node is the value in A19 and the B node is the value in B18. Theoretically, this will only occur once in your table and thus the formula finds that occurance. Does this work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Registered User
    Join Date
    12-01-2008
    Location
    Ireland
    Posts
    3

    Thanks

    Thanks to all. The sumproduct function worked perfectly! It looks as if Pivot Tables would have done the same. Again, thanks for all of your help!

+ 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