+ Reply to Thread
Results 1 to 6 of 6

multidimensional index and match function to condense table

  1. #1
    Registered User
    Join Date
    08-14-2013
    Location
    Mississippi
    MS-Off Ver
    Excel 2010
    Posts
    2

    multidimensional index and match function to condense table

    Hi,I have very large data that I want to condense. I just can not figureout how to do this. I have tried many if,match and vlookup function but no luck.

    This is the kind of database I have (I am actually working with monthly inventory usage but I just made this pseudo example). Here S=Student (A,B,C and D). T1,T2,T3,T4=tests

    S T1 T2 T3 T4
    A 50 50
    B
    C 40
    D 30


    What I want to do it,
    If in new sheet I write T1 and T4, following is the output I like to see.
    S T1 T4
    A 50
    B 30

    Can someone help me how to do this? I also like this table to be updated if I add another Test in first row.
    Last edited by Kamleshsoni; 08-14-2013 at 11:17 AM.

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: multidimensional index and match function to condense table

    In your first example 30 corresponds to D, but you want it to correspond to B in the new sheet?

  3. #3
    Registered User
    Join Date
    08-14-2013
    Location
    Mississippi
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: multidimensional index and match function to condense table

    Hi daffodil11,

    Sorry for confusion. When I posted the thread, it got messed up.

    I have created image of spread sheet for example. Attached. Could someone please see if it is possible to do something like this without macro.

    Kamlesh.excel problem.png

  4. #4
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: multidimensional index and match function to condense table

    Without a excel sheet I should say use a combination of 'index' and 'match' function
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  5. #5
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: multidimensional index and match function to condense table

    popipipo has the right idea

    The first cell in your new table would have:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Then just copy it across and down as needed.


    Formula Logic for future use:

    Index(search where,what row, what column)
    Match(match what, where,[0 for exact matches])

    Index(test scores,Match(student,all the students,0),Match(test#,all the test #s,0))

    The absolute references "$" in the equation allow you to copy and paste the equation around while keeping the references in their place.

    This pulls a test score in the row matching the students name and a column matching the given test#.
    Last edited by daffodil11; 08-14-2013 at 04:30 PM.

  6. #6
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: multidimensional index and match function to condense table

    And if you want to return blank cells where appropriate, you can replace the equation above for:


    =if(INDEX($B$3:$E$6,MATCH($A11,$A$3:$A$6,0),MATCH(B$10,$B$2:$E$2,0))=0,"",INDEX($B$3:$E$6,MATCH($A11,$A$3:$A$6,0),MATCH(B$10,$B$2:$E$2,0)))

+ 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: 5
    Last Post: 12-19-2012, 11:05 AM
  2. [SOLVED] Problem with INDEX, MATCH, and a function to count data from a table
    By Pentasyllabic in forum Excel General
    Replies: 10
    Last Post: 05-22-2012, 05:16 PM
  3. [SOLVED] Excel 2007 : INDEX MATCH Function from a table
    By mysterio1024 in forum Excel General
    Replies: 1
    Last Post: 03-30-2012, 04:52 PM
  4. Index and match function for same item in the table
    By ronlau123 in forum Excel General
    Replies: 3
    Last Post: 05-15-2011, 02:11 AM
  5. Replies: 7
    Last Post: 03-26-2009, 12:13 PM

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