Formula to rank cells alphabetically

G

Guest

I have a list of names, e.g.

Bloggs, J
Smith, P
Peters, F

I want a formula that can rank these in order so the output would be

Bloggs, J 1
Smith, P 3
Peters, F 2

I know the sort function could be used but I need a formula.

I know the Rank function will do this for numbers but does not work on alpha
fields.
Can anyone help?

Thanks in advance
 
B

Bob Phillips

=COUNTIF($A$1:$A$5,"<"&A1)+1

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
G

Guest

Fantastic - so simple. I had started making a complicated formula based upon
code, left, right, etc.

Many thanks

Dave
 

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