+ Reply to Thread
Results 1 to 3 of 3

Picking Maximum Value Given Constraints without Duplicates

  1. #1
    Registered User
    Join Date
    10-20-2021
    Location
    United States
    MS-Off Ver
    21
    Posts
    1

    Post Picking Maximum Value Given Constraints without Duplicates

    Hi, I am playing fantasy basketball and looking to use excel to maximize my daily line-up based on project points, given constraints in position. I have binary variables for position as well as whether or not a player is playing on that given day. I am using =maxifs(g/f/c,1,playing,1) and then using xlookup to retrieve the name of the player. All of that is fine and dandy.

    Where I am running into issue is ensuring that once a player is selected for a position, they are no longer eligible and will then choose the second highest eligible points.

    How can I specify within MAXIFS that I want to use the second highest value if the highest is already being used.





    Total Formula:

    =XLOOKUP(MAXIFS($C$4:$C$21,$E$4:$E$21,1,L$40:L$57,1),$C$4:$C$21,$B$4:$B$21,"")

    MAXIF Formula:

    MAXIFS($C$4:$C$21,$E$4:$E$21,1,L$40:L$57,1)

    Note: C = player points, E = position, L = playing, B = Name

  2. #2
    Valued Forum Contributor
    Join Date
    02-06-2013
    Location
    Germany
    MS-Off Ver
    365
    Posts
    490

    Re: Picking Maximum Value Given Constraints without Duplicates

    Use LARGE with conditions instead?
    MAX and not wanting to have returned the maximum is just odd^^

  3. #3
    Valued Forum Contributor
    Join Date
    02-06-2013
    Location
    Germany
    MS-Off Ver
    365
    Posts
    490

    Re: Picking Maximum Value Given Constraints without Duplicates

    But you could do e.g. by just adding as condition that it should be different than the max: =MAXIFS(B3:B7,C3:C7,C3,B3:B7,"<>"&F3)

    F3 is the maximum value

+ 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. Multiple Indexing/Matching and picking the Maximum Retrieved Value
    By JPSIMMON in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-01-2019, 09:10 PM
  2. Replies: 7
    Last Post: 10-07-2015, 03:01 PM
  3. [SOLVED] sorting by maximum value and displaying a corresponding text with the maximum value
    By ScottBeatty in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 06-20-2013, 03:11 PM
  4. Maximum value within a 10 minutes timeframe (conditional maximum)
    By Jimmy T in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-15-2011, 09:58 AM
  5. Selectively Picking Duplicates
    By mystimine90 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-16-2008, 03:09 PM
  6. Replies: 1
    Last Post: 08-08-2006, 01:00 PM
  7. [SOLVED] Is there a maximum number of constraints...
    By Omakbob in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-01-2006, 04:10 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