+ Reply to Thread
Results 1 to 6 of 6

How to create a matrix by using multiple criteria to pull values

Hybrid View

  1. #1
    Registered User
    Join Date
    08-14-2013
    Location
    Pakistan
    MS-Off Ver
    Excel 2016
    Posts
    32

    How to create a matrix by using multiple criteria to pull values

    Hi,
    I have a large dataset containing various values for each variable. I need to construct a matrix which requires using multiple criteria to construct rows and columns of desired matrix. Sample is attached.

    I shall be grateful for any help.

    Best regards,
    G
    Attached Files Attached Files

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: How to create a matrix by using multiple criteria to pull values

    How about:

    =SUMIFS($D$3:$D$18,$A$3:$A$18,$G3,$C$3:$C$18,I$2)
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Registered User
    Join Date
    08-14-2013
    Location
    Pakistan
    MS-Off Ver
    Excel 2016
    Posts
    32

    Re: How to create a matrix by using multiple criteria to pull values

    Thank you very much. It was great help.

  4. #4
    Registered User
    Join Date
    08-14-2013
    Location
    Pakistan
    MS-Off Ver
    Excel 2016
    Posts
    32

    Re: How to create a matrix by using multiple criteria to pull values

    Thank you very much. It was great help.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: How to create a matrix by using multiple criteria to pull values

    for the names, use this, copied down...
    =INDEX($B$2:$B$18,MATCH(G3,$A$2:$A$18,0))

    Then for the rest, use this ARRAY formula, copied down and across...
    =IFERROR(INDEX($D$2:$D$18,MATCH($G3&I$2,$A$2:$A$18&$C$2:$C$18,0)),0)

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: How to create a matrix by using multiple criteria to pull values

    post self-deleted
    Last edited by FDibbins; 01-22-2014 at 01:25 AM.

+ 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. Replies: 4
    Last Post: 10-23-2013, 10:08 AM
  2. How to create a row of values in adjacency matrix
    By sandeepdeshmukh in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-06-2012, 09:03 AM
  3. [SOLVED] Match and Find Matrix Values with Criteria
    By dreicer_Jarr in forum Excel General
    Replies: 6
    Last Post: 04-06-2012, 12:30 PM
  4. Pull values from input based on multiple criteria
    By chitownsox14 in forum Excel General
    Replies: 3
    Last Post: 04-05-2011, 02:17 PM
  5. To pull figure from a matrix by using three criteria
    By leongkeat in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-10-2007, 08:17 AM

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