Return value of Column A for nth highest value in Column B

ricdik

New Member
Joined
Feb 25, 2009
Messages
10
I've searched and found some things that are similar, but not exactly what I want (i.e. Index/Match). I want to look up the 1st largest value and return what is in column A. I'm then repeating for the 2nd, 3rd, etc. If I had a formula for the 2d largest I can figure out the other nth Largest values I need.




[TABLE="width: 268"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]Column A[/TD]
[TD]Column B[/TD]
[/TR]
[TR]
[TD]word 1[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]word 2[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]word 3[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]word 4[/TD]
[TD="align: right"]46[/TD]
[/TR]
[TR]
[TD]word 5[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]word 6[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]word 7[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]word 8[/TD]
[TD="align: right"]46[/TD]
[/TR]
[TR]
[TD]word 9[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]word 10[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]word 11[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]word 12[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]word 13[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]word 14[/TD]
[TD="align: right"]18[/TD]
[/TR]
</tbody>[/TABLE]

Largest word 4
2nd Largest word 8
3rd Largest word 14
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
I've searched and found some things that are similar, but not exactly what I want (i.e. Index/Match). I want to look up the 1st largest value and return what is in column A. I'm then repeating for the 2nd, 3rd, etc. If I had a formula for the 2d largest I can figure out the other nth Largest values I need.




[TABLE="width: 268"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]Column A[/TD]
[TD]Column B[/TD]
[/TR]
[TR]
[TD]word 1[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]word 2[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]word 3[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]word 4[/TD]
[TD="align: right"]46[/TD]
[/TR]
[TR]
[TD]word 5[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]word 6[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]word 7[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]word 8[/TD]
[TD="align: right"]46[/TD]
[/TR]
[TR]
[TD]word 9[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]word 10[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]word 11[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]word 12[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]word 13[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]word 14[/TD]
[TD="align: right"]18[/TD]
[/TR]
</tbody>[/TABLE]

Largest word 4
2nd Largest word 8
3rd Largest word 14

Does this formula (copied down) do what you want...

=INDEX(A$1:A$14,MATCH(LARGE(B$1:B$14,ROWS($1:1)),B$1:B$14,0))
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,286
Members
452,631
Latest member
a_potato

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