Show top cells data using Index and Match

deepditch

New Member
Joined
Feb 10, 2010
Messages
27
I have a table with some data.
I want to show the top 5 names and then add to some text.
Currently i am using:

=INDEX(C6:C21,MATCH(LARGE(F6:F21,{1,2}),F6:F21,0)) &" you are doing a great job in Service Coverage. You are a role mode!"

[TABLE="width: 1264"]
<colgroup><col><col><col span="8"></colgroup><tbody>[TR]
[TD][/TD]
[TD]Carol you are doing a great job in Service Coverage. You are a role mode![/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]B4[/TD]
[TD]B5[/TD]
[TD]B6[/TD]
[TD]B7[/TD]
[TD]B8[/TD]
[TD]B9[/TD]
[TD]B10[/TD]
[TD]B11[/TD]
[TD]B12[/TD]
[/TR]
[TR]
[TD]A5[/TD]
[TD]Rank[/TD]
[TD]Name[/TD]
[TD]Students[/TD]
[TD]Covered Student No.[/TD]
[TD]Service Coverage[/TD]
[TD]Monthly Target[/TD]
[TD]SeatsTaken UTD[/TD]
[TD]Seat Taken per active Ss[/TD]
[TD]Completion rate[/TD]
[/TR]
[TR]
[TD]A6[/TD]
[TD]12[/TD]
[TD]Jim[/TD]
[TD]112[/TD]
[TD]36[/TD]
[TD]32%[/TD]
[TD]560[/TD]
[TD]206[/TD]
[TD]1.84[/TD]
[TD]37%[/TD]
[/TR]
[TR]
[TD]A7[/TD]
[TD]7[/TD]
[TD]Bob[/TD]
[TD]111[/TD]
[TD]74[/TD]
[TD]67%[/TD]
[TD]470[/TD]
[TD]273[/TD]
[TD]2.46[/TD]
[TD]58%[/TD]
[/TR]
[TR]
[TD]A8[/TD]
[TD]3[/TD]
[TD]Carol[/TD]
[TD]103[/TD]
[TD]98[/TD]
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D]67%[/TD]
[TD]610[/TD]
[TD]341[/TD]
[TD]2.64[/TD]
[TD]56%[/TD]
[/TR]
[TR]
[TD]A17[/TD]
[TD]11[/TD]
[TD]Kirsty[/TD]
[TD]168[/TD]
[TD]114[/TD]
[TD]68%[/TD]
[TD]790[/TD]
[TD]294[/TD]
[TD]1.75[/TD]
[TD]37%[/TD]
[/TR]
[TR]
[TD]A18[/TD]
[TD]14[/TD]
[TD]Beth[/TD]
[TD]148[/TD]
[TD]51[/TD]
[TD]34%[/TD]
[TD]735[/TD]
[TD]240[/TD]
[TD]1.62[/TD]
[TD]33%[/TD]
[/TR]
[TR]
[TD]A19[/TD]
[TD]13[/TD]
[TD]Eva[/TD]
[TD]96[/TD]
[TD]68[/TD]
[TD]71%[/TD]
[TD]410[/TD]
[TD]134[/TD]
[TD]1.40[/TD]
[TD]33%[/TD]
[/TR]
[TR]
[TD]A20[/TD]
[TD]16[/TD]
[TD]Alan[/TD]
[TD]103[/TD]
[TD]72[/TD]
[TD]70%[/TD]
[TD]385[/TD]
[TD]118[/TD]
[TD]1.15[/TD]
[TD]31%[/TD]
[/TR]
[TR]
[TD]A21[/TD]
[TD]15[/TD]
[TD]Brian[/TD]
[TD]106[/TD]
[TD]68[/TD]
[TD]64%[/TD]
[TD]360[/TD]
[TD]114[/TD]
[TD]1.08[/TD]
[TD]32%[/TD]
[/TR]
[TR]
[TD]A22[/TD]
[TD]Centre Overall[/TD]
[TD] [/TD]
[TD]737[/TD]
[TD]409[/TD]
[TD]55%[/TD]
[TD]3419[/TD]
[TD]1163[/TD]
[TD] 1.58[/TD]
[TD]34.02%[/TD]
[/TR]
</tbody>[/TABLE]

I now wish to show the top 5 names. what would be best to use instead of Max?
 
My personal preference would be to use a stepped approach, e.g:


Excel 2010
ABCDEFGHIJKLM
5RankNameStudentsCovered Student No.Service CoverageMonthly TargetSeatsTaken UTDSeat Taken per active SsCompletion rateService CoverageName
612Jim1123632%5602061.8437%195%Carol
77Bob1117467%4702732.4658%281%John
83Carol1039895%4502912.8365%372%Rita
96Tony995758%5003033.0661%471%Eva
101Sue1217864%5103332.7565%571%Alan
115Rita1158372%4902992.661%
122Mary1046966%4402852.7465%
134John1229981%5003182.6164%
148Flora15210166%6003452.2758%
1510Mike1349168%5803212.455%
169Tim1298767%6103412.6456%
1711Kirsty16811468%7902941.7537%
1814Beth1485134%7352401.6233%
1913Eva966871%4101341.433%
2016Alan1037271%3851181.1531%
2115Brian1066864%3601141.0832%
Sheet1
Cell Formulas
RangeFormula
L6=LARGE($E$6:$E$21,K6)
M6{=INDEX($B:$B,SMALL(IF($E$6:$E$21=L6,ROW($E$6:$E$21)),COUNTIF($L$6:L6,L6)),1)}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Thanks Jon.
I want to be able to drop all 5 names into the text string.

=INDEX(C6:C21,MATCH(LARGE(F6:F21,{1,2}),F6:F21,0)) &" you are doing a great job in Service Coverage. You are a role mode!"

[TABLE="class: cms_table, width: 1264"]
<tbody>[TR]
[TD]Current
[/TD]
[TD]Carol you are doing a great job in Service Coverage. You are a role mode!


[/TD]
[/TR]
</tbody>[/TABLE]
Needed Carol, John, Rita, Eva and Alan are doing a great ..................
 
Upvote 0

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