Index and Match - Can I have 2 or 3 results show in one cell?

Mel Smith

Well-known Member
Joined
Dec 13, 2005
Messages
1,023
Office Version
  1. 365
Platform
  1. Windows
Hello folks,

I use this formula: =INDEX(B4:B63,MATCH(MAX(H4:H63),H4:H63,0),1) to show the "top" performer and it works well but my question is, can it be adapted to show, say 2 or even 3 names who are equal "top"? When there are 2 equal, it always shows the first in the list and I would like to be able to show both names.

Thanks for your help, as always.

Mel
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
How about
Excel Formula:
=TEXTJOIN(", ",,FILTER(B4:B63,H4:H63=MAX(H4:H63)))
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
Hi Fluff,

How may I amend your formula to list the lowest 2 or 3 in a list whilst excluding all those with 0?

Mel
 
Upvote 0
Can you post some sample data, including expected results.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Hi Fluff,

Does this help?

Mel

Book1
ABCDEFGHIJKLM
3OvsMdnsRunsWktsAveBestStrike rateEconomy5 wkt innings10 wkt matchWide balls bowledNo balls bowled
4Bethell JG25.5282420.53/1039.253.17001(1)1(2)
5Bresnan TT0.000.000.0000
6Briggs DR0.000.000.0000
7Brookes EA62.063203106.71/12127.335.160010(28)
8Brookes HJH38.06125431.32/2257.503.29002(4)
9Burgess MGK0.000.000.0000
10Furrer GW0.000.000.0000
11Garrett GA90.0113493116.32/17181.673.88005(14)
12Hain SR0.000.000.0000
13Hannon-Dalby OJ0.000.000.0000
14Hose AJ0.000.000.0000
15Johal MS105.018338937.62/1270.563.22005(10)
16Lamb MJ10.01200.00/200.002.0000
17Miles CN0.000.000.0000
18Mousley DR37.07158531.64/3144.404.2700
19Norwell LC54.59161917.94/2436.562.9400
20Pollock EJ0.000.000.0000
21Rhodes WMH0.000.000.0000
22Sibley DP0.000.000.0000
23Sidebottom RN81.023235829.44/1861.382.90005(10)
24Stone OP14.0160512.05/2016.804.2910
25Thomson AT0.000.000.0000
26McGladdery T R0.140.00/40.0024.0000
27Bulpitt J 21.054959.85/4925.202.3310
28Shaikh H0.000.000.0000
29Smith K0.000.000.0000
30
31Best average:Bulpitt J9.80
32Best strike rate:Stone OP16.80
33Best economy rate:Lamb MJ2.00
Second XI Championship
Cell Formulas
RangeFormula
E31E31=MINIFS(F4:F29,F4:F29,">0")
E32E32=MINIFS(H5:H29,H5:H29,">0")
E33E33=MINIFS(I6:I29,I6:I29,">0")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E4:E29Cell Valuetop 1 valuestextNO
F4:F29Expression=F4=MINIFS($F$4:$F$29,$F$4:$F$29,">"&0)textNO
H4:H29Expression=H4=MINIFS($H$4:$H$29,$H$4:$H$29,">"&0)textNO
I4:I29Expression=I4=MINIFS($I$4:$I$29,$I$4:$I$29,">"&0)textNO
 
Upvote 0
And what result are you looking for?
 
Upvote 0
Sorry. Best Average - Bulpitt J. Best Strike rate - Stone OP. Best economy - Lamb MJ

Mel
 
Upvote 0
Ok, how about
Excel Formula:
=TEXTJOIN(", ",,FILTER(A4:A29,F4:F29=E31))
 
Upvote 0
Solution

Forum statistics

Threads
1,215,219
Messages
6,123,684
Members
449,116
Latest member
HypnoFant

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