How to rank or sort this?

Luthius

Active Member
Joined
Apr 5, 2011
Messages
324
I have one table with the following values


Code:
Name	Points
Mary	12
John	16
Joseph	15
Hilary	16
Richard	13

I would like something like this:

Code:
Name	Points	Rank
Mary	12	1º
John	16	5º
Joseph	15	3º
Hilary	16	4º
Richard	13	2º

What I mean is that I will rank the values ​​using the data in column B, but if the column B has equal values​​, the formula will rank using as parameter the name in alphabetical order.

Luthius
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Use an extra (hidden) column, with:

=B2-ROW(B2)/1000

Then, on that range of cells, apply the RANK function. You will be sure to have unique ranks.
 
Upvote 0
Just a small change to fromspenny's formula to suit your requirement :

=RANK(B2,$B$2:$B$6,1)+COUNTIF(B$1:B1,$B2) in Cell C2 and then copy to below cells.

Sanjeev
 
Upvote 0
Great!!!
Now I want a little different.
I want the result listing names as rank like this:

Code:
Rank	Name
1º	John
2º	Hilary
3º	Joseph
4º	Richard
5º	Mary
 
Upvote 0
Great!!!
Now I want a little different.
I want the result listing names as rank like this:

Code:
Rank    Name
1º    John
2º    Hilary
3º    Joseph
4º    Richard
5º    Mary

So why didn't you ask that to start with?

Delete the rank formula, you don't need that now (total waste of time and effort for all involved).

Sort your data by Points then by Name.

Rank the first entry using =ROW(A1)
 
Upvote 0
No It isn't waste of time.
I need it with formula. That's the reason I asked.
My first question was solved, Now I want as I wrote using formula.
 
Upvote 0
Once you get the desired result using the formula, just sort on Column C.

Sanjeev
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

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