+ Reply to Thread
Results 1 to 9 of 9

Using INDEX/MATCH/MAX Multiple Criteria

  1. #1
    Registered User
    Join Date
    07-26-2013
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Using INDEX/MATCH/MAX Multiple Criteria

    I'm having trouble applying this formula to Excel, I'm trying to display the name for the highest number in the fire type.

    Here is the columns and rows

    Name Type 1 Type 2 Number Jake=INDEX(A2:A6,MATCH(1,((B2:B6="Fire")*(D2:D6=MAX(IF(B2:B6="Fire",D2:D6)))),0))
    Jake Fire 80
    Mark Water Fire 100
    Thomas Fire 70
    Kennzie Grass Water 40
    Dan Grass Fire 60


    The only problem is that this formula only counts Jake's type 1 Fire, in this Mark's Type 2 Fire has the highest count at 100. How do I incorporate the Type 2 into the formula also?

    Here is a screenshot

    ScreenShot2013-07-25at103423PM_zps1cb218e5.png

    And the file
    example.xlsx
    Last edited by Taquiq; 07-26-2013 at 12:19 PM.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Using INDEX/MATCH/MAX Multiple Criteria

    Try in this way.

    =INDEX(A2:A6,MATCH(MAX(IF(B2:C6="Fire",D2:D6)),D2:D6,0))

    ARRAY formula.

    -- Array(CSE) { }, formulae are confirmed with Control+Shift+Enter.
    Not just Enter.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

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

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    07-26-2013
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Using INDEX/MATCH/MAX Multiple Criteria

    Thank you! Worked perfectly.

  4. #4
    Registered User
    Join Date
    07-26-2013
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Using INDEX/MATCH/MAX Multiple Criteria

    But for much bigger criteria, like this worksheet (yes I'm a Pokemon fan), the formula, which is in W2, is showing Celebi (B252) as a Water even though it is type Grass and Psychic.

    It's not letting me upload the file so here is a link to download it.

    http://www.mediafire.com/download/qi...tats_copy.xlsx
    Last edited by Taquiq; 07-26-2013 at 12:39 PM.

  5. #5
    Registered User
    Join Date
    07-26-2013
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Using INDEX/MATCH/MAX Multiple Criteria

    Can anyone please help?

  6. #6
    Registered User
    Join Date
    07-26-2013
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Using INDEX/MATCH/MAX Multiple Criteria

    Anyone... please?

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

    Re: Using INDEX/MATCH/MAX Multiple Criteria

    Hi,

    Try:

    =INDEX(B2:B650,MATCH(MAX(IF(D2:D650="Water",Dex!Q2:Q650)),IF(D2:D650="Water",Q2:Q650),0))

    Regards
    Click * below if this answer helped

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

  8. #8
    Registered User
    Join Date
    07-26-2013
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Using INDEX/MATCH/MAX Multiple Criteria

    Quote Originally Posted by XOR LX View Post
    Hi,

    Try:

    =INDEX(B2:B650,MATCH(MAX(IF(D2:D650="Water",Dex!Q2:Q650)),IF(D2:D650="Water",Q2:Q650),0))

    Regards
    Thanks, this works but I also need to incorporate Column E, which is Type 2, in the formula.

  9. #9
    Registered User
    Join Date
    07-26-2013
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Using INDEX/MATCH/MAX Multiple Criteria

    Alright I figured it out, thanks to the people who helped.

    I had to use the OR function, here is the formula.

    =INDEX(B2:B700,MATCH(MAX(IF(OR(D2:D700="Flying",E2:E700="Flying"),Dex!P2:P700)),Dex!P2:P700,0))

    Array formula so Ctr+Shift+Enter

+ 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 with multiple criteria
    By narrowgate88 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-27-2013, 05:11 PM
  2. Multiple criteria on an Index match
    By jkay2089 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-02-2012, 08:39 AM
  3. Multiple criteria on an Index match
    By jkay2089 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-24-2012, 10:53 AM
  4. INDEX MATCH MAX with multiple criteria
    By smproud in forum Excel General
    Replies: 2
    Last Post: 05-12-2011, 12:00 PM
  5. Multiple Criteria INDEX MATCH MAX
    By sweep in forum Excel General
    Replies: 4
    Last Post: 04-25-2007, 08:08 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