Results 1 to 5 of 5

Thread: Finding MAX based on MATCH

  1. #1

    Finding MAX based on MATCH



    Register for a FREE account, and/
    or Log in to avoid these ads!

    I have a data table that looks like the following;

    Item Operation Is Max
    X 20
    X 30
    X 40
    Y 10
    Y 20
    Y 30
    Z 40
    Z 50
    Z 60

    I'm looking for a formula for the 'Is Max' column where, it looks for all Item matches and then returns "No" or "Yes" based on the highest Operation value. So, the end product would look like;

    Item Operation Is Max
    X 20 No
    X 30 No
    X 40 Yes
    Y 10 No
    Y 20 No
    Y 30 Yes
    Z 40 No
    Z 50 No
    Z 60 Yes

    Any help would be much appreciated!!

  2. #2
    Conjurer CheshireCat's Avatar
    Join Date
    Dec 2011
    Location
    Victoria, Canada
    Posts
    120
    Articles
    0
    Excel Version
    Microsoft Excel 2013
    Try an array formula:

    Code:
    =IF(MAX(IF($A$2:$A$10=A2,$B$2:$B$10))=B2,"Yes","No")
    Confirmed as an array formula with CSE (Ctrl-Shift-Enter).

  3. #3
    Quote Originally Posted by smokeisrising View Post
    I have a data table that looks like the following;

    Item Operation Is Max
    X 20
    X 30
    X 40
    Y 10
    Y 20
    Y 30
    Z 40
    Z 50
    Z 60

    I'm looking for a formula for the 'Is Max' column where, it looks for all Item matches and then returns "No" or "Yes" based on the highest Operation value. So, the end product would look like;

    Item Operation Is Max
    X 20 No
    X 30 No
    X 40 Yes
    Y 10 No
    Y 20 No
    Y 30 Yes
    Z 40 No
    Z 50 No
    Z 60 Yes

    Any help would be much appreciated!!

    here is something that you might be able to use.. it dost have the yes /no.. but it returns your highest value for a given X Y Z..
    Attached Files Attached Files

  4. #4
    Quote Originally Posted by jason_r View Post
    here is something that you might be able to use.. It dost have the yes /no.. But it returns your highest value for a given x y z..

    here try this again.. The formula is in column d ... Just when you enter it. You mus hit "ctrl+shft+enter" because its and array formula... I also added a small look up drop down that may come in handy for you..
    Attached Files Attached Files

  5. #5
    =IF(MAX(INDEX(($A$1:$A$25=A1)*$B$1:$B$25,0))=B1,"yes","no")

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •