Return a number from a letter input.

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,404
Office Version
  1. 2007
Platform
  1. Windows
I'm looking for a formula that will return:
Starting in J7 a 1 for the letter A, 2 for the letter B etc...

Thank you.
Excel Workbook
DEFGHIJKLMN
7ABBEJ122510
Sheet
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Try putting the following formula in cell J7 and copying it through cell N7:

=CODE(UPPER(OFFSET(J7,,-6)))-64
 
Upvote 0
For one-letter alphabets, this should work


Excel 2010
ABCDEFGHIJKL
1DEFGHIJKLMN
27ABBEJ122510
Sheet1
Cell Formulas
RangeFormula
H2=CODE(B2)-64


or set-ip a lookup tble and use vlookup
 
Upvote 0
Woaw, it works perfect, Thank you very much Tetra201, much appreciated.
Serge.
 
Upvote 0
Thanks, Momentman it works very nice too.
 
Upvote 0

Forum statistics

Threads
1,214,875
Messages
6,122,044
Members
449,063
Latest member
ak94

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