+ Reply to Thread
Results 1 to 8 of 8

Index Match Multiple Criteria - Need Multiple Results

  1. #1
    Registered User
    Join Date
    10-12-2019
    Location
    Redcar, England
    MS-Off Ver
    Mac 16.16.14
    Posts
    3

    Index Match Multiple Criteria - Need Multiple Results

    Hi all, first post so sorry if I get anything wrong:

    I'm using the following formula (as an array) to return a name based on a score given the criteria that the name falls into a particular category.
    =INDEX('Student Overview'!$J$3:$J$744,MATCH(1,("Year 7"='Student Overview'!$F$3:$F$744)*(Analysis!K19='Student Overview'!$I$3:$I$744),0))

    Analysis!K19 is the following formula (also as an array):
    =LARGE(IF('Student Overview'!$F$3:$F$744="Year 7",'Student Overview'!$I$3:$I$744),1)

    'Student Overview'!$F$3:$F$744 is the list of categories
    'Student Overview'!$I$3:$I$744 is the list of scores
    'Student Overview'!$J$3:$J$744 is the list of names

    The large formula is returning 2 values which are the same. When I run the index formula, this only returns the first match for these values so I can't see the name for the second tied score.

    Any help much appreciated.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Index Match Multiple Criteria - Need Multiple Results

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? However, please give us an indication of the approximate number of rows of data you want the solution to work with (100, 1000, 100,000 or whatever). Please DO NOT attach a picture of an Excel sheet (I do not have the patience to re-type any/all your stuff before starting).

    1. It does NOT have to be your real sheet - mock up a SAMPLE if you need to. But not 1000's of rows!!! It makes manual checking so tedious. Whatever you do... make sure that all confidential information is removed first!!

    2. Make sure that your sample data are truly REPRESENTATIVE of your real data. For example, don't show text in a column if it's really a number. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    3. Make sure that your desired solution is also shown (mock up the results manually). To be honest, I am not interested in seeing a non-working formula... or a pile of blank cells. However, I am very interested in seeing your EXPECTED results in their EXPECTED location.

    4. Try not to use merged cells. They cause lots of problems and are DEFINITELY best avoided!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    10-12-2019
    Location
    Redcar, England
    MS-Off Ver
    Mac 16.16.14
    Posts
    3

    Re: Index Match Multiple Criteria - Need Multiple Results

    Thanks for the quick response Glenn.

    I've attached the file below (hopefully) and have added in both the current formulae I'm using (adapted to work with the sheet I've attached) and a mock up of the desired outcome. I've also added a couple of notes beneath the table to hopefully make linking it back to my original post a little more obvious.

    Thanks, and have fun
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Index Match Multiple Criteria - Need Multiple Results

    In f2, copied down:

    =INDEX($C$2:$C$20,MATCH(1,INDEX(($A$2:$A$20="year 7")*($B$2:$B$20=E4)*(COUNTIF($F$3:F3,$C$2:$C$20)=0),0),0))

    no need for array entry.

  5. #5
    Registered User
    Join Date
    10-12-2019
    Location
    Redcar, England
    MS-Off Ver
    Mac 16.16.14
    Posts
    3

    Re: Index Match Multiple Criteria - Need Multiple Results

    Amazing! Thanks Glenn. If you have chance, and don't mind, could you take me through what you have put together? It looks to me like an additional array multiplication with the countif, where the countif is looking at the values already returned in the name array??

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Index Match Multiple Criteria - Need Multiple Results

    Sure. The addition of an INDEX(blah blah,) removes (in this case) the need for array entry. Just a wee trick of the trade.

    And yes, all I did was add a countif...

    returns TRUE or FALSE... if a name has already been returned as a result, the COUNTIF will returrn 1 or more... and so COUNTIF()=0 will return FALSE. So, it effectively removed duplicate names. If the names aren't unique, you'd need to use ID number... or another workaround.




    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  7. #7
    Registered User
    Join Date
    10-23-2019
    Location
    greece
    MS-Off Ver
    10
    Posts
    1

    Re: Index Match Multiple Criteria - Need Multiple Results

    Hi,

    I would like to create a formula in the attached excel where i can use multiple criteria in rows and columnes but also get values that are less than a particular value. Can you please help?
    Attached Files Attached Files
    Last edited by Chrys_1981; 10-23-2019 at 09:29 AM.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Index Match Multiple Criteria - Need Multiple Results

    Sure thing. But....

    Hi.

    It's a forum rule that you start your own thread, rather than try to "hijack" someone else's thread. This helps prevent massive confusion arising -which will happen if it is not clear which question is being answered. So please start your own thread and explain your own problem (make sure that, right from the start, you use a meaningful title (NOT things like "help needed" or "urgent problem"... think of the Google search terms that you would use to find the solution). Also, preferably attach an Excel sheet. Make sure there is enough data to demonstrate your need. Make sure your desired results are shown, mock them up manually if necessary. Remember to remove ALL confidential information first!!!

    Just before you submit your post, click on GO ADVANCED (near the bottom) and scroll down to "Manage Attachments" - click that and then follow the instructions.

+ 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. [SOLVED] Index Match - Multiple Criteria - Multiple Results
    By ClwnMan76 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-03-2019, 08:06 AM
  2. [SOLVED] Index match with multiple criteria (one with a wildcard) and multiple results.
    By rachelsteele in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-03-2019, 06:51 PM
  3. Replies: 1
    Last Post: 01-18-2019, 03:55 PM
  4. Index Match w/single criteria, multiple results
    By Mflick in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-06-2018, 06:34 PM
  5. [SOLVED] Find multiple results with INDEX & MATCH on 2 criteria
    By SubwAy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-22-2017, 08:56 AM
  6. [SOLVED] Index match on multiple criteria/ results
    By Burt_100 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-06-2015, 10:40 AM
  7. Replies: 0
    Last Post: 03-02-2012, 11:16 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