find row index of a number in a list

T

Trull

I have a column of numbers, in no particular order.
In the column next to it, I want to write a 1 next to the highest number, 2
next to the 2nd highest and so on. How can I do this?


Thanks in advance,

Andrew
 
T

The Red Cardinal

Trull said:
I have a column of numbers, in no particular order.
In the column next to it, I want to write a 1 next to the highest
number, 2 next to the 2nd highest and so on. How can I do this?


Thanks in advance,

Andrew


You would use the RANK command:

=RANK(Cell, Array of Cells, Order),

e.g. if your cells were A1:A20, in B1 you would write:

=RANK(A1, A1:A20, 1)

For ease, if you used absolute references for the range, you could just copy
and paste for the whole B column then:

=RANK(A1, $A$1:$A$20, 1)

The one is not important here - just tells Excel to count in ascending
order.

Hope this works...
 
T

Trull

Ace! Thanks!

Been trying Index, Choose etc, Rank! i'd never have guessed!


Cheers

Andrew
 
T

The Red Cardinal

Trull said:
Ace! Thanks!

Been trying Index, Choose etc, Rank! i'd never have guessed!


Cheers

Andrew

Yes been there myself! :)

Thanks for letting me know it worked...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top