Index Match with Max

carlidee

New Member
Joined
Sep 15, 2020
Messages
12
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

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

maabadi

Well-known Member
Joined
Oct 22, 2012
Messages
2,601
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
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))
 

jasonb75

Well-known Member
Joined
Dec 30, 2008
Messages
13,899
Office Version
  1. 365
Platform
  1. Windows
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)
 
Solution

carlidee

New Member
Joined
Sep 15, 2020
Messages
12
Office Version
  1. 2016
Platform
  1. Windows
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
 

AhoyNC

Well-known Member
Joined
Oct 10, 2011
Messages
4,862
Office Version
  1. 365
Platform
  1. Windows

ADVERTISEMENT

You could also use MAXIFS function.
=MAXIFS($B$3:$B$8,$A$3:$A$8,D3)
 

carlidee

New Member
Joined
Sep 15, 2020
Messages
12
Office Version
  1. 2016
Platform
  1. Windows
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!!
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
63,974
Office Version
  1. 365
Platform
  1. Windows
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.
 

Forum statistics

Threads
1,144,341
Messages
5,723,811
Members
422,518
Latest member
quack_quack

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
Top