Skip to main content
Version: Streamsheets 2.3

CODE

Returns the numeric code for first character of given string.

Syntax

=CODE(Text, [CharacterSet])

Arguments

NameDescription
TextA string for which to return the code of its first character.
CharacterSetOptional. A string which specifies the character set to use for converting the character. Only the 'ansi' alias 'cp1252' set is currently supported. If no character-set is specified 'ansi' is used by default.

Return Value

The numeric code of first character of specified text.

Example

FunctionResult
=CODE("A")65
=CODE("€")128
=CODE("€", "ansi")128