Modifying this control will update this page automatically

CODE

The CODE function returns the decimal Unicode number of the first character in a specified string.

CODE(code-string)

code-string: The string value from which to return the Unicode value. Only the first character is used.

Notes

  • You can use the CHAR function to do the opposite of the CODE function: convert a numeric code into a text character.

Examples

=CODE("A") returns 65, the character code for uppercase "A".

=CODE("abc") returns 97, the character code for lowercase "a".

=CHAR(97) returns "a".

=CODE("f") returns 102, the character code for lowercase "f".

=CODE("三二一") returns 19,977, the decimal Unicode value of the first character.

See alsoCHAR
Morty Proxy This is a proxified and sanitized view of the page, visit original site.
Helpful?
Character limit: 250
Maximum character limit is 250.
Thanks for your feedback.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.