CODE
Text

Returns a numeric code for the first character in a text string

Syntax:

=CODE(text)

Example:

=CODE("A")