+ Reply to Thread
Results 1 to 5 of 5

look up with multiple criteria

  1. #1
    Registered User
    Join Date
    07-13-2015
    Location
    hong kong
    MS-Off Ver
    ms 2010
    Posts
    16

    look up with multiple criteria

    Sheet 1 full list
    Sheet 2 list of student taking more than one type of lessons

    I want to show the lesson time in sheet 2 column c. The criteria are sheet 2 column a and b. I want the formula can be copied down to the last row. How can I do that?

    Some of the students having double sessions for the same instrument will have two individual entries, so remove duplicate cannot suit my needs.

    Thank you.
    Attached Files Attached Files

  2. #2
    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
    52,933

    Re: look up with multiple criteria

    Try this in sheet2 A2, copied down and across as needed...
    =IFERROR(INDEX(Sheet1!A$2:A$5,MATCH(Sheet1!$A2&Sheet1!$B2,INDEX(Sheet1!$A$2:$A$5&Sheet1!$B$2:$B$5,0),0)),"")
    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

  3. #3
    Registered User
    Join Date
    07-13-2015
    Location
    hong kong
    MS-Off Ver
    ms 2010
    Posts
    16

    Re: look up with multiple criteria

    it doesn't work. Instrument is returned instead of time.

  4. #4
    Registered User
    Join Date
    07-13-2015
    Location
    hong kong
    MS-Off Ver
    ms 2010
    Posts
    16

    Re: look up with multiple criteria

    I resolved the problem: {=INDEX($A$2:$C$5, MATCH(1, ($B$2:$B$5=A19)*($A$2:$A$5=B19), 0), 3)}

    Thank you anyways.

  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
    52,933

    Re: look up with multiple criteria

    Quote Originally Posted by heidiau View Post
    it doesn't work. Instrument is returned instead of time.
    I used the wrong range, sorry - I thought they were in the same sequence.

    Use this regular formula instead...
    =IFERROR(INDEX(Sheet1!$A$2:$C$5,MATCH(Sheet1!$A2&Sheet1!$B2,INDEX(Sheet1!$A$2:$A$5&Sheet1!$B$2:$B$5,0),0),MATCH(A$1,Sheet1!$A$1:$C$1,0)),"")
    copied down and across

+ 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: 9
    Last Post: 07-23-2015, 01:21 PM
  2. Replies: 2
    Last Post: 05-26-2015, 07:29 PM
  3. [SOLVED] countifs statement with multiple criteria for multiple criteria ranges
    By mcdermott2 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-07-2015, 11:48 AM
  4. [SOLVED] UDF for sum of multiple criteria in multiple columns and single criteria in multiple colum
    By Ganesh7299 in forum Excel Programming / VBA / Macros
    Replies: 32
    Last Post: 11-22-2013, 04:26 AM
  5. Count statement wtih multiple criteria only showing results for one criteria
    By uhlabomber in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-17-2013, 02:47 PM
  6. Replies: 2
    Last Post: 10-05-2011, 12:43 PM
  7. MACROS: Sort by multiple criteria - Create tabs based off of criteria
    By svineyard in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-21-2009, 10:48 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