Assign Numbers to Letters to get Max Letter

kisshenry

New Member
Joined
Mar 25, 2009
Messages
7
Say you have a column A through F. With A being min, B greater than A, C greater than B, etc. So, then F would be the maximum. Now, what I want to do is return F (the maximum) in another cell. I know with numbers you just use =max(num1,num2…) but how do you do it with letters? I want to avoid making several tables and doing a vlookup kinda thing. I really want to do all of this in a single cell. Help anyone?

<o:p> </o:p>
<table class="MsoNormalTable" style="border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0"> <tbody><tr style="height: 13.35pt;"> <td style="border: 1pt solid black; padding: 0in 5.4pt; width: 100.05pt; height: 13.35pt;" valign="top" width="167"> A[FONT=&quot]<o:p></o:p>[/FONT]
</td> <td style="border-style: solid solid solid none; border-color: black black black -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 100.05pt; height: 13.35pt;" valign="top" width="167"> [FONT=&quot]<o:p> </o:p>[/FONT]
</td> </tr> <tr style="height: 13.35pt;"> <td style="border-style: none solid solid; border-color: -moz-use-text-color black black; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 100.05pt; height: 13.35pt;" valign="top" width="167"> B[FONT=&quot]<o:p></o:p>[/FONT]
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 100.05pt; height: 13.35pt;" valign="top" width="167"> [FONT=&quot]<o:p> </o:p>[/FONT]
</td> </tr> <tr style="height: 13.35pt;"> <td style="border-style: none solid solid; border-color: -moz-use-text-color black black; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 100.05pt; height: 13.35pt;" valign="top" width="167"> C[FONT=&quot]<o:p></o:p>[/FONT]
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 100.05pt; height: 13.35pt;" valign="top" width="167"> [FONT=&quot]<o:p> </o:p>[/FONT]
</td> </tr> <tr style="height: 13.35pt;"> <td style="border-style: none solid solid; border-color: -moz-use-text-color black black; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 100.05pt; height: 13.35pt;" valign="top" width="167"> D[FONT=&quot]<o:p></o:p>[/FONT]
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 100.05pt; height: 13.35pt;" valign="top" width="167"> [FONT=&quot]<o:p> </o:p>[/FONT]
</td> </tr> <tr style="height: 13.35pt;"> <td style="border-style: none solid solid; border-color: -moz-use-text-color black black; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 100.05pt; height: 13.35pt;" valign="top" width="167"> E[FONT=&quot]<o:p></o:p>[/FONT]
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 100.05pt; height: 13.35pt;" valign="top" width="167"> [FONT=&quot]<o:p> </o:p>[/FONT]
</td> </tr> <tr style="height: 13.35pt;"> <td style="border-style: none solid solid; border-color: -moz-use-text-color black black; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 100.05pt; height: 13.35pt;" valign="top" width="167"> F[FONT=&quot]<o:p></o:p>[/FONT]
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 100.05pt; height: 13.35pt;" valign="top" width="167"> [FONT=&quot]<o:p> </o:p>[/FONT]
</td> </tr> <tr style="height: 13.35pt;"> <td style="border-style: none solid solid; border-color: -moz-use-text-color black black; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 100.05pt; height: 13.35pt;" valign="top" width="167"> F[FONT=&quot]<o:p></o:p>[/FONT]
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 100.05pt; height: 13.35pt;" valign="top" width="167"> <-- Cell returns Max letter.[FONT=&quot]<o:p></o:p>[/FONT]
</td> </tr> </tbody></table>
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825
Hello kisshenry, welcome to MrExcel

You could use this formula to get the MAX letter

=CHAR(MAX(IF(A1:A10<>"",CODE(A1:A10))))

This is an array formula that needs to be confirmed with CTRL+SHIFT+ENTER so that curly braces appear around the formula in the formula bar
 

mooseman

Board Regular
Joined
Jul 23, 2004
Messages
195
That is great... I didn't know about the CTRL+SHIFT+ENTER for array formula.

I was trying to get it to work and found this if the letters are lower and upper case

=CHAR(MAX(IF(A1:A10<>"",CODE(UPPER(A1:A10)))))

Although this returns the letter as a capital no matter what.
 

kisshenry

New Member
Joined
Mar 25, 2009
Messages
7
Thank sooooo much! This is EXACTLY what I was looking for. I'd asked several friends and other professionals and kept getting solutions that required making tables, nested if/then statements etc. This is very simple and to the point. You made my day!!! ;)
 

West Man

Well-known Member
Joined
Mar 27, 2006
Messages
1,175
Another way that I obtained from this site is:
=LOOKUP(2,1/(COUNTIF(A1:A7,">"&A1:A7&"~")=0),A1:A7)
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,133
Messages
5,835,594
Members
430,369
Latest member
pingel

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
Top