nTH largest values, when more than one of the same

surkdidat

Well-known Member
Joined
Oct 1, 2011
Messages
582
Office Version
  1. 365
I am using a formula to look up the highest number in column B, and then an INDEXMATCH to look at the names in column A

Excel Formula:
So =LARGE(B2:B100,1)
and then
Excel Formula:
=LARGE(B2:B100,2)
etc

On this, I am doing an INDEX MATCH to look at the associated name in column A

However, if 2 people, have say 27 in column B, the INDEX-MATCH, is only bringing up the first instance, so if in A1 we had Peter, and B1 27, and in A2 we had Lola, and in B2 was also 27, its not then ignoring the first instance, and bringing up the second instance on the next line

How do I go about the INDEX MATCH always bypassing any previous matches please?
 

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.
Can you post some sample data.

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
Apologies, in on a work laptop, so cannot install, I have posted some sample data below and a required output below that

Details in spreadsheet
Column A (Name)Column B (Score)
Peter27
Lola27
Bella28
Andy26

Hopeful Output

Column A (Placing)Column B (Name)Column c (Score)Current formula used for Column BCurrent formula used for Col C
1Bella 28 =INDEX(A:A,MATCH(A1,B:B,0))=LARGE(B2:B100,1)
2Peter27=INDEX(A:A,MATCH(A2,B:B,0))=LARGE(B2:B100,2)
3Lola27=INDEX(A:A,MATCH(A3,B:B,0))=LARGE(B2:B100,3)
4Andy26=INDEX(A:A,MATCH(A4,B:B,0))=LARGE(B2:B100,4)
 
Upvote 0
How about
Fluff.xlsm
ABCDEF
1
2Peter2728Bella
3Lola2727Peter
4Bella2827Lola
5Andy2626Andy
Data
Cell Formulas
RangeFormula
E2:E5E2=LARGE($B$2:$B$5,ROWS(E$2:E2))
F2:F5F2=INDEX(A:A,AGGREGATE(15,6,ROW($A$2:$A$5)/($B$2:$B$5=E2),COUNTIFS(E$2:E2,E2)))
 
Upvote 1
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,080
Messages
6,123,013
Members
449,093
Latest member
ikke

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