+ Reply to Thread
Results 1 to 6 of 6

Combining Index Match and max functions

  1. #1
    Registered User
    Join Date
    06-28-2015
    Location
    scotland
    MS-Off Ver
    2013
    Posts
    2

    Combining Index Match and max functions

    Hi all,

    I'm having some difficulty combining the index, match & max functions.

    I have a column of 55 names (A2:A56) and 55 rows of these peoples 12 weeks performance (B2:M56), I would like to return the name of the person with the top performance across the 12 week period.

    So far I have this formula which seem to work fine for returning the top performance for week 1 (B2:B56). However when I extend the formula to include all 12 weeks (B2:M56) the get an #NA result.

    =INDEX(A2:A56,MATCH(MAX(B2:B56),B2:B56,0))


    Any thoughts?

    Regards,

    John.

  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,926

    Re: Combining Index Match and max functions

    Hi, welcome to the forum

    It wont work that way, you would need to ID the column that the max is in.

    can you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    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
    06-28-2015
    Location
    scotland
    MS-Off Ver
    2013
    Posts
    2

    Re: Combining Index Match and max functions

    hi there,

    here is the file

    john
    Attached Files Attached Files

  4. #4
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,366

    Re: Combining Index Match and max functions

    Im adding column total for easier calculation...
    Attached Files Attached Files

  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,926

    Re: Combining Index Match and max functions

    You have multiple "max" scores in many columns, so I took this approach.

    N
    O
    P
    Q
    R
    S
    T
    U
    V
    W
    X
    Y
    7
    Week1
    Week2*
    Week3
    Week4
    Week5*
    Week6*
    Week7*
    Week8*
    Week9*
    Week10*
    Week11*
    Week12*
    8
    33
    35
    35
    35
    35
    35
    35
    35
    35
    35
    35
    35
    9
    Person 1 Person 13 Person 12 Person 16 Person 31 Person 1 Person 54 Person 31 Person 3 Person 49 Person 11 Person 3
    10
    Person 34 Person 15 Person 3 Person 30
    11
    Person 43 Person 37 Person 25
    12
    Person 50 Person 54 Person 45
    13
    14
    15
    16
    17
    18


    1. Create a small table with the same headings as in your table.
    N8=MAX(B2:B56)
    copied across
    N9=IFERROR(INDEX($A$2:$A$56,SMALL(IF(B$2:B$56=N$8,ROW($A$2:$A$56)-1),ROWS($A$1:A1))),"")
    This is an ARRAY formula...
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    Copy this down and across as needed

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Combining Index Match and max functions

    Or with a pivot table for (also the rank) of the persons.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

+ 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] Combining 3 Formulas: Return all Names that Match Criteria Using Index/Match
    By bchilme in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 09-29-2014, 09:28 AM
  2. [SOLVED] Need help combining two Index Match functions into one
    By BeachRock in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-23-2012, 10:35 PM
  3. Combining INDEX functions
    By wilsoa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-26-2012, 03:07 PM
  4. Combining Index & Match Functions
    By bmc1975 in forum Excel General
    Replies: 7
    Last Post: 10-28-2010, 11:04 AM
  5. Combining Match & Index Functions
    By bmc1975 in forum Excel General
    Replies: 10
    Last Post: 08-09-2010, 03:33 PM

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