+ Reply to Thread
Results 1 to 15 of 15

INDEX MATCH multiple critera

  1. #1
    Registered User
    Join Date
    04-15-2017
    Location
    Colchester, England
    MS-Off Ver
    Mac 2011
    Posts
    54

    INDEX MATCH multiple critera

    Hey guys,

    Thanks for your help. I have a row with 1 criteria (A), a row with another (B), and a third row with an output. I want to be able to change a cell that selects criteria A and it show the scores related to each of criteria B. I know I haven't explained that so well so have attached an example document.

    For those who may not be able to access the file, on one page I will have:

    Game - Game 1 Game 1 Game 1 Game 2 Game 2 Game 2
    Player - Jerry Jimmy Phillip Jerry Jimmy Philip
    Match Score - 9 8.5 7 6 6.5 9

    I want to be able to select 'Game 1' and display:

    Jerry - 9
    Jimmy - 8.5
    Phillip - 7

    This is my formula at the moment: =IF($AY$16:$BD$16=$AX$9,INDEX($AY$18:$BD$18,MATCH(BA24,$AY$17:$BD$17,0)))
    which works for Game 1, but if I change cell AX9 to 'Game 2' I get errors

    Thanks

    Callum
    Newbie
    Attached Files Attached Files

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: INDEX MATCH multiple critera

    Hi,

    I assume each combination of Game and Player can only occur once, then?

    If so, in F19:

    =LOOKUP(1,0/((C$11:H$11=B$4)*(C$12:H$12=E19)),C$13:H$13)

    and copy down.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Forum Contributor
    Join Date
    08-04-2004
    Location
    Amsterdam
    MS-Off Ver
    2016
    Posts
    186

    Re: INDEX MATCH multiple critera

    Could you explain how the lookup looks for value of 1 but array has div/0 and 0 but it still works?

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: INDEX MATCH multiple critera

    Quote Originally Posted by philaugust2004 View Post
    Could you explain how the lookup looks for value of 1 but array has div/0 and 0 but it still works?
    Sure. Providing the numerical values within the lookup_array are sorted (which, since LOOKUP has the useful property of ignoring errors, will be in this case), then, if the lookup_value is not found within the lookup_array, the last numerical value which is less than the lookup_value will be returned.

    So, using the workbook provided by the OP, with Game 1 in cell B4, the formula in F21, i.e.:

    =LOOKUP(1,0/((C$11:H$11=B$4)*(C$12:H$12=E21)),C$13:H$13)

    resolves to:

    =LOOKUP(1,{#DIV/0!,#DIV/0!,0,#DIV/0!,#DIV/0!,#DIV/0!},C$13:H$13)

    and so the 0 occupying the third position in this array will be that considered by LOOKUP.

    In this construction, since the lookup_array can only ever consist of zeroes and #DIV/0! errors, any value greater than zero will suffice for the choice of lookup_value.

    Regards

  5. #5
    Forum Contributor
    Join Date
    08-04-2004
    Location
    Amsterdam
    MS-Off Ver
    2016
    Posts
    186

    Re: INDEX MATCH multiple critera

    Thankyou. I assume that is why you divided rather than multiplied to turn the True and False into 1's and 0's?

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: INDEX MATCH multiple critera

    Quote Originally Posted by philaugust2004 View Post
    Thankyou. I assume that is why you divided rather than multiplied to turn the True and False into 1's and 0's?
    Actually division will render the FALSEs as #DIV/0!s, and hence be ignored by LOOKUP.

    Cheers

  7. #7
    Registered User
    Join Date
    04-15-2017
    Location
    Colchester, England
    MS-Off Ver
    Mac 2011
    Posts
    54

    Re: INDEX MATCH multiple critera

    This worked perfectly, thank you!!!!

  8. #8
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: INDEX MATCH multiple critera

    You're welcome!

  9. #9
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,287

    Re: INDEX MATCH multiple critera

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

    match score
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    04-15-2017
    Location
    Colchester, England
    MS-Off Ver
    Mac 2011
    Posts
    54

    Re: INDEX MATCH multiple critera

    Hey,

    I have a new slightly different problem.
    I now have to match row 1 with x, row 2 with y, and column a with z to give the data in that cross reference. Is this possible?

    Thank you, I have attached an example file
    Attached Files Attached Files

  11. #11
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,287

    Re: INDEX MATCH multiple critera

    I propose such a formula.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  12. #12
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: INDEX MATCH multiple critera

    Try this. ARRAY formula in Q4 then drag down.
    ARRAY formula should be confirmed with Ctrl+Shift+Enter keys .
    =INDEX($B$3:$M$7,MATCH($P4,$A$3:$A$7,0),MATCH(Q$3&$P$1,$B$1:$M$1&$B$2:$M$2,0))
    Last edited by kvsrinivasamurthy; 06-29-2017 at 09:47 AM.

  13. #13
    Registered User
    Join Date
    04-15-2017
    Location
    Colchester, England
    MS-Off Ver
    Mac 2011
    Posts
    54

    Re: INDEX MATCH multiple critera

    kvsrinivasamurthy & Czeslaw,

    Both of those solutions worked perfectly, thats amazing! Thank you both very much!

    Callum

  14. #14
    Registered User
    Join Date
    04-15-2017
    Location
    Colchester, England
    MS-Off Ver
    Mac 2011
    Posts
    54

    Re: INDEX MATCH multiple critera

    New problem already!

    Sorry!

    Slightly different - I want to be able to add together any data that matches multiple criteria

    Thanks
    Attached Files Attached Files

  15. #15
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: INDEX MATCH multiple critera

    In the fomula
    SUMIF(B1:P1=[1 OR 2] AND B2:P2=S2 AND A3:A7=S4
    how
    A3:A7=S4
    is possible.

+ 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. Need help in Index, Match usage to match multiple criteria in sum function
    By Summer0830 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-26-2017, 02:47 AM
  2. VLOOKUP or INDEX/MATCH with multiple column index numbers
    By cerebral87 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-22-2017, 07:13 PM
  3. [SOLVED] INDEX/MATCH (multiple critera in multiple rows and columns)
    By swma in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-01-2016, 10:02 AM
  4. Replies: 1
    Last Post: 06-18-2015, 08:45 AM
  5. Replies: 2
    Last Post: 12-18-2014, 09:52 AM
  6. Replies: 2
    Last Post: 09-27-2014, 04:34 PM
  7. Replies: 13
    Last Post: 12-13-2012, 11:44 AM

Tags for this Thread

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