CODE
Returns the numeric code for first character of given string.
Syntax
=CODE(Text, [CharacterSet])
Arguments
| Name | Type | Description |
|---|---|---|
| Text | String | A string for which to return the code of its first character. |
| CharacterSet (optional) | CharacterSet | A string which specifies the character set to use for converting the character. Options: "ansi": ANSI (Codepage 1252) |
Return
| Type | Description |
|---|---|
| Number | The numeric code of first character of specified text. |
Examples
| Formula | Result | Comment |
|---|---|---|
| 65 | |
| 128 | |
| 128 |