CODE function
CODE(Text) CODE(Text)
Text
Text or { Text }
The text string whose first character is evaluated.
Returns
Number or { Number }
A Unicode code point.
Returns the Unicode code point for the first character of the given text string. CODE("A")CODE("A") returns 65. Use UNICHAR to perform the reverse operation of returning a character corresponding to a certain Unicode code point.
The CODE and UNICODE functions are equivalent.
Examples
CODE("A")CODE("A")
Returns 65.
CODE({ "A", "B",
"C" })CODE({ "A"; "B"; "C" })
Returns the array { 65, 66, 67 }{ 65; 66; 67 }.