+ Reply to Thread
Results 1 to 7 of 7

Find the Max and the Min values with Index and Match function for each row

  1. #1
    Registered User
    Join Date
    03-25-2013
    Location
    New Delhi
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    37

    Find the Max and the Min values with Index and Match function for each row

    Hi Experts,

    I am trying to find out the Max and the Min values for each row for student 1 to Student 11. When I select the student number on cell M4 the Min and Max value cells for the student should fetch on the cells M15 and M16 respectively.

    I tried the below formula but it's showing #N/A (refer the attached file).

    =INDEX(B9:I20,MATCH(MAX(B10:H10,0),0))

    For eg when I select Student 1 the Max value should be 99 and the Min value should be 33.

    I am not using excel for quite sometime now and your help would be very helpful in refreshing my excel skills.

    Note: I have attached the file under manage attachment although I can't see the attachment while writing this section do let me know of the attachment is unavailable.

    Thanks in adavance

  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 2403
    Posts
    44,063

    Re: Find the Max and the Min values with Index and Match function for each row

    Try:

    =MAX(INDEX($C$4:$H$14,MATCH(M4,MatchRows,0),))
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Find the Max and the Min values with Index and Match function for each row

    edit. ignore already answered as making my post

    does this work for you,
    =MIN(IF(MatchRows=M4,C4:H14))
    =MAX(IF(MatchRows=M4,C4:H14))

    you are showing 2003/2007 is that the latest version you are using ?
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Find the Max and the Min values with Index and Match function for each row

    Try

    =MIN(INDEX($C$4:$H$14,MATCH($M$4,MatchRows,0),0))

    =MAX(INDEX($C$4:$H$14,MATCH($M$4,MatchRows,0),0))
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  5. #5
    Registered User
    Join Date
    03-25-2013
    Location
    New Delhi
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    37

    Re: Find the Max and the Min values with Index and Match function for each row

    Hi Glenn,

    That worked like a charm....thank you!

  6. #6
    Registered User
    Join Date
    03-25-2013
    Location
    New Delhi
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    37

    Re: Find the Max and the Min values with Index and Match function for each row

    Thank you John that worked for me!

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Find the Max and the Min values with Index and Match function for each row

    Please mark thread as SOLVED ("Thread Tools" at top of threads).

+ 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. How to use INDEX MATCH to find all values that match the exact same criteria
    By Clooney003 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-24-2021, 03:08 PM
  2. Replies: 5
    Last Post: 02-26-2017, 04:46 PM
  3. Index match to find unique values
    By BobTheRocker in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-17-2014, 02:17 AM
  4. Index/Match To Find Values Within A Chart
    By HRice in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-04-2014, 03:41 PM
  5. Using Index / Match / Mini to find three lowest values in a row.
    By Ross83 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-22-2014, 06:02 AM
  6. How do i find the max of two values from index match max of a column
    By mohaymin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-09-2013, 02:04 PM
  7. Using index and match to find several values
    By Humanist in forum Excel General
    Replies: 1
    Last Post: 12-19-2011, 11:49 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