How can I get Index Match Max to return multiple results?

Simon4s

Board Regular
Joined
Sep 22, 2014
Messages
155
Office Version
  1. 2016
  2. 2013
TeamsDropped Passes
USA5
Canada1
Japan5

So this formula:
=index(A2:A4,match(max(B2:B4),B2:B4,0))
returns "USA" which is not completely correct.

How can I get it to return:
USA, Japan
 
Last edited:

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Try:
Drag formula down as needed.

Book1
ABCD
1TeamsDropped Passes
2USA5USA
3Canada1Japan
4Japan5 
Sheet2
Cell Formulas
RangeFormula
D2:D4D2=IFERROR(INDEX($A$2:$A$4,AGGREGATE(15,6,(ROW($A$2:$A$4)-ROW($A$2)+1)/($B$2:$B$4=MAX($B$2:$B$4)),ROWS($D$2:D2))),"")
 
Upvote 0
Try:
Drag formula down as needed.

Book1
ABCD
1TeamsDropped Passes
2USA5USA
3Canada1Japan
4Japan5 
Sheet2
Cell Formulas
RangeFormula
D2:D4D2=IFERROR(INDEX($A$2:$A$4,AGGREGATE(15,6,(ROW($A$2:$A$4)-ROW($A$2)+1)/($B$2:$B$4=MAX($B$2:$B$4)),ROWS($D$2:D2))),"")
Thanks for the solution. Is it possible to join the two rows into one so that the result appears in one cell?
 
Upvote 0
Try

=TEXTJOIN(",",,FILTER(A2:A4,B2:B4=MAX(B2:B4)))
 
Upvote 0
Hi
If you can use TEXTJOIN and FILTER functions, your excel version must be 365 or 2021, i think..
 
Upvote 0
You need to update your account details if you have Excel 365. The formula I gave you was for 2016 & 2013.
 
Upvote 0

Forum statistics

Threads
1,215,641
Messages
6,125,986
Members
449,276
Latest member
surendra75

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