# Finding MAX based on MATCH

#### smokeisrising

##### New member
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!!

#### CheshireCat

##### New member
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).

#### JASON_R

##### New member
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..

#### Attachments

• MAX.xlsx
8.8 KB · Views: 10

#### JASON_R

##### New member
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..

#### Attachments

• MAX.xlsx
8.8 KB · Views: 10

#### martindwilson

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