SheetRocks
Documentation/Formulas/CODE

CODE

Returns the numeric Unicode code value of the first character in a text string.

Syntax

CODE(text)

Arguments

Argument Description Required
text The text whose first character's code you want to obtain Required

Examples

Get code of uppercase letter

=CODE("A")
Result ⇒ 65

Get code of first character in string

=CODE("abc")
Result ⇒ 97

Get code of special character

=CODE("~")
Result ⇒ 126

Related Functions

Other Text functions:


← Back to Formula Reference