+ Reply to Thread
Results 1 to 8 of 8

Maximum and Minimum problem

  1. #1
    Registered User
    Join Date
    11-29-2021
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    19

    Question Maximum and Minimum problem

    Hello All!

    I need your help again, please. Have a problem with finding maximum and minimum in my data table.
    I'd like to find the best and worst workers from the table based on their performance and supervisor.
    I managed to write a formula for the best and worst based on performance only:
    =Index(B4:B23,Match(Max(L4:L23),L4:L23,0),)

    Is there any way to get that for specific SV?

    I attached a sample file. Thank you in advance!
    Attached Files Attached Files
    Last edited by Tom31; 04-27-2022 at 03:44 PM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Maximum and Minimum problem

    If you put the supervisor in O4, e.g. SV1, then you can use this formula in P4:

    =INDEX(B4:B20,MATCH(1,(M4:M20=O4)*(L4:L20=MAXIFS(L4:L20,M4:M20,O4)),0))

    This is an array formula, but if you are using Office 365 you do not need to use Ctrl-Shift-Enter to commit it.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    11-29-2021
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    19

    Re: Maximum and Minimum problem

    Thank you, Pete!
    It works!

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Maximum and Minimum problem

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

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    Dave

  5. #5
    Registered User
    Join Date
    11-29-2021
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    19

    Re: Maximum and Minimum problem

    Pete, thanks again for the formula.
    I faced just one issue. At home I use Excel365 but at work, we use 2016 and the formula MAXIFS isn't available. Do you think there are any other alternatives?

    Thank you in advance!

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Maximum and Minimum problem

    Try this:

    =INDEX(B4:B20,MATCH(1,(M4:M20=O4)*(L4:L20=MAX(IF(M4:M20=O4,L4:L20))),0))

    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  7. #7
    Registered User
    Join Date
    11-29-2021
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    19

    Re: Maximum and Minimum problem

    AliGW, thank you for the effort!
    I will try it out at work today!

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Maximum and Minimum problem

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

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. Set a minimum and maximum
    By kwentanio in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-13-2020, 05:22 PM
  2. Get Maximum and Minimum date
    By MAHMUZ in forum Excel General
    Replies: 1
    Last Post: 07-08-2018, 04:04 PM
  3. Minimum and maximum IF help
    By Dawndinosaur in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-28-2016, 12:58 AM
  4. Minimum and maximum
    By ikke88 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-06-2015, 04:09 AM
  5. Replies: 4
    Last Post: 10-23-2011, 02:48 AM
  6. Maximum and Minimum
    By lurchybold in forum Excel General
    Replies: 6
    Last Post: 10-13-2010, 11:04 AM
  7. [SOLVED] Recording maximum and minimum
    By F in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-18-2006, 02:30 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