Documentation/How Tos/Calc: CODE function
From Apache OpenOffice Wiki
CODE
returns the numeric code for the first character in a text string.
Syntax:
CODE(text)
- returns the numeric code for the first character of the text string text. The code is found from the code table currently loaded.
Example:
CODE("H")
- returns 72, the character code for "H".
CODE("Hello")
- also returns 72.