Unicode
Syntax:¶
UNICODE(text)
- text: A text string, where the function will return the Unicode character number of the first character in the string.
Description:¶
The UNICODE function in Excel returns the numeric Unicode value of the first character in a text string. It is useful
for identifying the Unicode number for specific characters and working with text encoded in Unicode format.
Examples:¶
=UNICODE("A")
Result:65. Returns the Unicode number for the letterA.=UNICODE("☃")
Result:9731. Provides the Unicode value for the snowman symbol.=UNICODE("😄")
Result:128516. Returns the Unicode value for the smiling face emoji.=UNICODE("€")
Result:8364. Outputs the Unicode number for the euro currency symbol.
Notes:¶
- The
UNICODEfunction focuses on the first character of the input text string. To evaluate another position in a string, extract the relevant character first (e.g., using theMIDorLEFTfunction). - This function pairs naturally with
UNICHARto perform the reverse process: converting a Unicode number back into its corresponding character. - If the input text is empty, the
UNICODEfunction will return a#VALUE!error. - Non-printable or unsupported characters in your system may not display but will still have valid Unicode values.