+ Reply to Thread
Results 1 to 3 of 3

2 criteria lookup from table, to matrix

  1. #1
    Registered User
    Join Date
    03-05-2010
    Location
    Oregon
    MS-Off Ver
    Excel 2007
    Posts
    75

    2 criteria lookup from table, to matrix

    I need to lookup data in a table type data set and return it to a matrix style data set. If it was the other way around it would be easy to do with an Index(Match but I'm lost with going the other way.

    In the example spreadsheet my formula would be entered in cell B2 of the 'Matrix' worksheet and would be looking up from the 'Data table' worksheet based on both the item # and color. In the case of cell B2 it would return 'COMET'.

    Many TIA!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: 2 criteria lookup from table, to matrix

    I am not exactly sure what the benefit of this layout is versus a pivot table but I would add a unique key to the left of the table (but it CAN be to the right if you want to use an index formula instead of a vlookup formula) then just an IFERROR(VLOOKUP()) as the attached file shows.
    Attached Files Attached Files
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: 2 criteria lookup from table, to matrix

    Another way.

    Row\Col
    A
    B
    C
    D
    E
    F
    G
    1
    Blue Red Green Orange White
    2
    541965
    Comet In B2 =IF(INDEX('Data table'!$B$2:$C$6,MATCH(Matrix!$A2,'Data table'!$A$2:$A$6,0),1)=B$1,INDEX('Data table'!$B$2:$C$6,MATCH(Matrix!$A2,'Data table'!$A$2:$A$6,0),2),"")
    3
    574854
    Asteroid Fill down and across.
    4
    541347
    Meteorite
    5
    254614
    Meteor
    6
    976744
    Rock
    Dave

+ 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. HELP - lookup a matrix based on criteria
    By foyetog in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-24-2015, 10:01 AM
  2. [SOLVED] Excel 365 Lookup question at the intersection of Matrix table
    By arun2681 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-23-2015, 04:45 PM
  3. How to complete a lookup from a table/matrix with 4 variables
    By jmgoldjr in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-11-2013, 10:27 PM
  4. Replies: 3
    Last Post: 12-23-2011, 03:18 PM
  5. Replies: 4
    Last Post: 09-12-2011, 03:35 AM
  6. How to lookup from a table using two criteria?
    By sabotage in forum Excel General
    Replies: 4
    Last Post: 07-02-2010, 08:59 AM
  7. Lookup value in a Matrix based on Two A<x>B criteria
    By makeitcount in forum Excel General
    Replies: 2
    Last Post: 02-11-2010, 08:03 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