A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
... so that A = 1, B = 2, C = 3, etc. ...
With A, B or C in A1, try,
=CODE(A1)-64
... or possibly,
=CODE(UPPER(A1))-64
... since the ASCII code for a is different from A.