excel formula special method for ranking of numbers

ramo

New Member
Joined
Apr 2, 2010
Messages
9
:laugh:Dear Friends,
I need a solution, to the problem below.
I have a list of numbers that I need to rank from highest to lowest then from lowest to highest.
The duplicate numbers must have the same rank as indicated in the example below.
I thank you in advance

Example:
[TABLE="width: 324"]
<COLGROUP><COL style="WIDTH: 54pt" span=6 width=72><TBODY>[TR]
[TD="width: 72, bgcolor: transparent"]List[/TD]
[TD="class: xl22, width: 144, bgcolor: transparent, colspan: 2"]Rank High - Low[/TD]
[TD="width: 72, bgcolor: transparent"]List[/TD]
[TD="class: xl22, width: 144, bgcolor: transparent, colspan: 2"]Rank Low - High[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]101[/TD]
[TD="bgcolor: transparent, align: right"]2[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent, align: right"]101[/TD]
[TD="bgcolor: transparent, align: right"]10[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]120[/TD]
[TD="bgcolor: transparent, align: right"]4[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent, align: right"]120[/TD]
[TD="bgcolor: transparent, align: right"]9[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]100[/TD]
[TD="bgcolor: transparent, align: right"]1[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent, align: right"]100[/TD]
[TD="bgcolor: transparent, align: right"]11[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]120[/TD]
[TD="bgcolor: transparent, align: right"]4[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent, align: right"]120[/TD]
[TD="bgcolor: transparent, align: right"]9[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]160[/TD]
[TD="bgcolor: transparent, align: right"]10[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent, align: right"]160[/TD]
[TD="bgcolor: transparent, align: right"]3[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]160[/TD]
[TD="bgcolor: transparent, align: right"]10[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent, align: right"]160[/TD]
[TD="bgcolor: transparent, align: right"]3[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]150[/TD]
[TD="bgcolor: transparent, align: right"]8[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent, align: right"]150[/TD]
[TD="bgcolor: transparent, align: right"]5[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]150[/TD]
[TD="bgcolor: transparent, align: right"]8[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent, align: right"]150[/TD]
[TD="bgcolor: transparent, align: right"]5[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]135[/TD]
[TD="bgcolor: transparent, align: right"]6[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent, align: right"]135[/TD]
[TD="bgcolor: transparent, align: right"]6[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]129[/TD]
[TD="bgcolor: transparent, align: right"]5[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent, align: right"]129[/TD]
[TD="bgcolor: transparent, align: right"]7[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]678[/TD]
[TD="bgcolor: transparent, align: right"]11[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent, align: right"]678[/TD]
[TD="bgcolor: transparent, align: right"]1[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
</TBODY>[/TABLE]
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Does this work for you?

[TABLE="width: 627"]
<colgroup><col span="2"><col><col span="2"><col></colgroup><tbody>[TR]
[TD="align: right"]101[/TD]
[TD="align: right"]2[/TD]
[TD]=RANK(A1,$A$1:$A$11,1)[/TD]
[TD="align: right"]101[/TD]
[TD="align: right"]10[/TD]
[TD]=RANK(D1,$D$1:$D$11,0)[/TD]
[/TR]
[TR]
[TD="align: right"]120[/TD]
[TD="align: right"]3[/TD]
[TD]=RANK(A1,$A$1:$A$11,1)[/TD]
[TD="align: right"]120[/TD]
[TD="align: right"]8[/TD]
[TD]=RANK(D1,$D$1:$D$11,0)[/TD]
[/TR]
[TR]
[TD="align: right"]100[/TD]
[TD="align: right"]1[/TD]
[TD]=RANK(A1,$A$1:$A$11,1)[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]11[/TD]
[TD]=RANK(D1,$D$1:$D$11,0)[/TD]
[/TR]
[TR]
[TD="align: right"]120[/TD]
[TD="align: right"]3[/TD]
[TD]=RANK(A1,$A$1:$A$11,1)[/TD]
[TD="align: right"]120[/TD]
[TD="align: right"]8[/TD]
[TD]=RANK(D1,$D$1:$D$11,0)[/TD]
[/TR]
[TR]
[TD="align: right"]160[/TD]
[TD="align: right"]9[/TD]
[TD]=RANK(A1,$A$1:$A$11,1)[/TD]
[TD="align: right"]160[/TD]
[TD="align: right"]2[/TD]
[TD]=RANK(D1,$D$1:$D$11,0)[/TD]
[/TR]
[TR]
[TD="align: right"]160[/TD]
[TD="align: right"]9[/TD]
[TD]=RANK(A1,$A$1:$A$11,1)[/TD]
[TD="align: right"]160[/TD]
[TD="align: right"]2[/TD]
[TD]=RANK(D1,$D$1:$D$11,0)[/TD]
[/TR]
[TR]
[TD="align: right"]150[/TD]
[TD="align: right"]7[/TD]
[TD]=RANK(A1,$A$1:$A$11,1)[/TD]
[TD="align: right"]150[/TD]
[TD="align: right"]4[/TD]
[TD]=RANK(D1,$D$1:$D$11,0)[/TD]
[/TR]
[TR]
[TD="align: right"]150[/TD]
[TD="align: right"]7[/TD]
[TD]=RANK(A1,$A$1:$A$11,1)[/TD]
[TD="align: right"]150[/TD]
[TD="align: right"]4[/TD]
[TD]=RANK(D1,$D$1:$D$11,0)[/TD]
[/TR]
[TR]
[TD="align: right"]135[/TD]
[TD="align: right"]6[/TD]
[TD]=RANK(A1,$A$1:$A$11,1)[/TD]
[TD="align: right"]135[/TD]
[TD="align: right"]6[/TD]
[TD]=RANK(D1,$D$1:$D$11,0)[/TD]
[/TR]
[TR]
[TD="align: right"]129[/TD]
[TD="align: right"]5[/TD]
[TD]=RANK(A1,$A$1:$A$11,1)[/TD]
[TD="align: right"]129[/TD]
[TD="align: right"]7[/TD]
[TD]=RANK(D1,$D$1:$D$11,0)[/TD]
[/TR]
[TR]
[TD="align: right"]678[/TD]
[TD="align: right"]11[/TD]
[TD]=RANK(A1,$A$1:$A$11,1)[/TD]
[TD="align: right"]678[/TD]
[TD="align: right"]1[/TD]
[TD]=RANK(D1,$D$1:$D$11,0)[/TD]
[/TR]
[TR]
[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]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Hi Vogel,
Thanks for the reply.
I need the ranking to be as indicated.
Your method skips one ranked when two numbers are equal.
 
Upvote 0
Maybe like this:

Excel Workbook
ABCDEF
1101210110
212041209
3100110011
412041209
5160101603
6160101603
715081505
815081505
913561356
1012951297
11678116781
Sheet1
 
Upvote 0

Forum statistics

Threads
1,223,702
Messages
6,173,965
Members
452,539
Latest member
delvey

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