Index Match with Max

carlidee

New Member
Joined
Sep 15, 2020
Messages
20
Office Version
  1. 2016
Platform
  1. Windows
Hello

I'm looking to using a combo of index/match and max to find the highest value associated with a name

1613751642283.png


This is what I have for cell E3, but it seems to be pulling the overall max number:
=INDEX(MAX($B$3:$B$8),MATCH(D3:D7,$A$3:$A$8,0))

Any ideas?
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Try these with Press CTRL+SHIFT+ENTER
Excel Formula:
=MAX(($A$3:$A$8=D3)*$B$3:$B$8)
OR
Excel Formula:
=MAX(IF($A$3:$A$8=D3,$B$3:$B$8))
 
Upvote 0
Try
Excel Formula:
=AGGREGATE(14,6,$B$3:$B$8/($A$3:$A$8=D3),1)
Or if you have a version of excel newer than 2016
Excel Formula:
=MAXIFS($B$3:$B$8,$A$3:$A$8,D3)
 
Upvote 0
Solution
Try these with Press CTRL+SHIFT+ENTER
Excel Formula:
=MAX(($A$3:$A$8=D3)*$B$3:$B$8)
OR
Excel Formula:
=MAX(IF($A$3:$A$8=D3,$B$3:$B$8))[/COD
[/QUOTE]

Hi - thanks for jumping in to help

So what I'm asking about is actually intended to be an extension of an IF formula, that is instructing it what to do if the first condition is false. Therefore, I dont believe an array would work here.

Do you have any other recommendations?

Thank you
Carli
 
Upvote 0
You could also use MAXIFS function.
=MAXIFS($B$3:$B$8,$A$3:$A$8,D3)
 
Upvote 0
Try
Excel Formula:
=AGGREGATE(14,6,$B$3:$B$8/($A$3:$A$8=D3),1)
Or if you have a version of excel newer than 2016
Excel Formula:
=MAXIFS($B$3:$B$8,$A$3:$A$8,D3)
MAXIFS worked perfect thank you!!
 
Upvote 0
If you have the MAXIFS then you are using either 365 or 2019. I would suggest that you update your account details to show what you are using.
 
Upvote 0

Forum statistics

Threads
1,214,943
Messages
6,122,369
Members
449,080
Latest member
Armadillos

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top