alphabet

muppet77

Board Regular
Joined
Jan 24, 2004
Messages
223
whats the best way to get a value for a particular text cell , so that it ranks it in a list of cells, based on alphabetical order?

eg if i have cells a d c b, i want to get the correct ranks:

a 1
d 4
c 3
b 2
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
muppet77 said:
whats the best way to get a value for a particular text cell , so that it ranks it in a list of cells, based on alphabetical order?

eg if i have cells a d c b, i want to get the correct ranks:

a 1
d 4
c 3
b 2

If you had one more "a", what ranking do you want to assign to each "a" ?
 
Upvote 0
Hi there

To add to Sitaram's excellent answer, you might like to ensure it reads the letters as capitals with this modification:


=CODE(UPPER(A1))-64

regards
Derek
 
Upvote 0
Derek said:
Hi there

To add to Sitaram's excellent answer, you might like to ensure it reads the letters as capitals with this modification:


=CODE(UPPER(A1))-64

regards
Derek

What if "a", "b",... were just example values and the real data consists of items of any length?
 
Upvote 0
Ah yes Aladin, a much more complex problem, as usual you are many steps ahead of me. Wonder what the answer is?
kind regards
Derek
PS If pushed I would probably try sorting the column alphabetically and then ranking it
 
Upvote 0
Derek said:
.PS If pushed I would probably try sorting the column alphabetically and then ranking it

Yes, a non-manual sorting might be part of what is needed. Hope to propose a solution along those lines after the question I posted is answered.
 
Upvote 0
cheers chaps.
i should have actually said that the info was longer texts

apple
banana
orange
mango
cucumber

trying to avoid using the sort button if at all possible.
are we stumped????
 
Upvote 0
muppet77 said:
cheers chaps.
i should have actually said that the info was longer texts

apple
banana
orange
mango
cucumber

trying to avoid using the sort button if at all possible.
are we stumped????

Why don't you also answer the question I posted?
 
Upvote 0
i want to rank the words on the second letter of the word (after the first), then third etc
ie alphabetical order - the title of the thread
is this poss do you think?
 
Upvote 0

Forum statistics

Threads
1,214,429
Messages
6,119,428
Members
448,896
Latest member
MadMarty

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