Returns the numeric code for the first character in a text string. It's given in the range of 0-255.
Syntax
CODE(text)
text: The text in which you want to obtain the numeric code for the first character. E.g. "Zoho"
Examples
Formula | Result |
=CODE("%") | 37 |
=CODE("e") | 101 |
=CODE("Zoho") | 90 |
Get a hands-on experience of the function in the embedded range below.
Possible Errors
Errors | Meaning |
#N/A! | |
#NAME! | The function name is incorrect or invalid. The given defined name (if any) is invalid. There is a typo in the defined name used in the function. Double quotes are missing for text values in the function. Colon missing in a cell range reference.
|
#VALUE! | |
#REF! | |
Similar Functions
- CHAR