Documentation/Calc Functions/CODE

From The Document Foundation Wiki
Jump to: navigation, search


Im-jabber.svg

Under construction.
For now, see the system Help files.


Function name:

CODE

Category:

Text

Summary:

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

Syntax:

CODE("Text")

Returns:

Arguments:

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

Codes greater than 127 may depend on your system's character mapping (for example iso-8859-1, iso-8859-2, Windows-1252, Windows-1250), and hence may not be portable.

Additional details:

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

Examples:

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

Related LibreOffice functions:

ODF standard:

Equivalent Excel functions: