proceeding cell formula

ENEMALI

Board Regular
Joined
Aug 9, 2011
Messages
60
i want to rank some students 100 in number in this format(1st,2nd,3rd...........100th) empty cell should not be ranked
this is my question
i need a formula referring to the cell preceding the cell where the formula Will be placed.( regardless of any cell reference) i.e if the scores are in column A, the rank should appear in column B
or
if scores are in column G then ranks must be in H
if possible, someone should help me out please
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Try:

Code:
=IF(A1="","",RANK(A1,A$1:A$100))
if you're OK with the rank being 10

Or, referencing http://www.cpearson.com/excel/ordinal.htm, try

Code:
=IF(A1="","",RANK(A1,A$1:A$100))&IF(AND(MOD(IF(A1="","",RANK(A1,A$1:A$100)),100)>=10,MOD(IF(A1="","",RANK(A1,A$1:A$100)),100)<=14),"th",CHOOSE(MOD(IF(A1="","",RANK(A1,A$1:A$100)),10)+1,"th","st","nd","rd","th","th","th","th","th","th"))
if you want the rank to show 10th with the ordinal suffix.

Enter this in column B... if you then copy from column B to column H, the formula will change to reference column G.
 
Upvote 0
i want to rank some students 100 in number in this format(1st,2nd,3rd...........100th) empty cell should not be ranked
this is my question
i need a formula referring to the cell preceding the cell where the formula Will be placed.( regardless of any cell reference) i.e if the scores are in column A, the rank should appear in column B
or
if scores are in column G then ranks must be in H
if possible, someone should help me out please
For ordinal ranks...

Book1
AB
2941st
3922nd
4883rd
5854th
6825th
7
8656th
9656th
10598th
11549th
12
134010th
142411th
151812th
Sheet1

This formula entered in B2 and copied down:

=IF(A2="","",RANK(A2,A$2:A$15)&MID("thstndrdth",MIN(9,2*RIGHT(RANK(A2,A$2:A$15))*(MOD(RANK(A2,A$2:A$15)-11,100)>2)+1),2))
 
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