CODE

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

Sintaxis

CODE("Text")

Text is the text for which the code of the first character is to be found.

Los códigos mayores que 127 pueden depender de la asignación de caracteres del sistema (por ejemplo, iso-8859-1, iso-8859-2, Windows-1252, Windows-1250) y, por ello, pueden no ser portátiles.

Ejemplo

=CODE("Hieronymus") returns 72, =CODE("hieroglyphic") returns 104.

note

The code used here does not refer to ASCII, but to the code table currently loaded.