CODE

The CODE function returns the decimal Unicode number of the first character in a specified string.

CODE(code-string)

code-string: The string value from which to return the Unicode value. Only the first character is used.

Notes

Examples

=CODE(“A”) returns 65, the character code for uppercase “A”.

=CODE(“abc”) returns 97, the character code for lowercase “a”.

=CHAR(97) returns “a”.

=CODE(“f”) returns 102, the character code for lowercase “f”.

=CODE(“三二一”) returns 19,977, the decimal Unicode value of the first character.

See also
CHAR