
Returns the Unicode number for the first character in a text string.
The Excel UNICODE function returns the Unicode number for the first character in a text string. For example, =UNICODE("A") returns 65, and =UNICODE("€") returns 8364.
UNICODE is the modern counterpart to CODE. It is useful when the text may contain symbols or characters outside the older character range, such as currency signs, mathematical symbols, or international letters.
Returns the Unicode number for the first character in the text.
Returns the code point for the first character only.
=UNICODE(text)
text is the string or cell reference you want to inspect. UNICODE reads the first character of that value and returns its Unicode number.
UNICODE and UNICHAR work together in the same way that CODE and CHAR work together. UNICODE gives you the number for a character, and UNICHAR turns that number back into the character.
| Function | Main Role | Use When |
|---|---|---|
UNICODE |
Character to Unicode number | You want to identify a modern symbol or international character |
UNICHAR |
Unicode number to character | You want to generate a character from its code point |
CODE |
Character to legacy code | You are working with older character-code logic |
UNICODE is useful when you need to confirm exactly which character appears in a cell. That matters when two symbols look similar but should not be treated as the same, or when imported data contains a special character that is affecting text logic.
It is also a practical partner for UNICHAR. Once you know the number for a symbol, you can reproduce it with UNICHAR in another formula.
This example shows a common modern use case. UNICODE can identify a symbol such as the Euro sign by its code point.
=UNICODE("€") // 8364
Find the Unicode number for the Euro symbol. Formula: =UNICODE("€").
Greek letters and technical symbols are often beyond the older CODE range. UNICODE can still identify them directly.
=UNICODE("Ω") // 937
Find the Unicode number for the Omega character in B2. Formula: =UNICODE(B2).
UNICODE is also useful for mathematical and special symbols. This can help when a workbook contains symbols from web pages, PDFs, or copied documents.
=UNICODE("∑") // 8721
Find the Unicode number for the symbol stored in A1. Formula: =UNICODE(A1).
UNICODE always checks the first character only. If the cell contains more than one character, the rest of the text is ignored unless you extract a different position first.
=UNICODE(A1)
// If A1 starts with "∑", the result is 8721
Find the code point for "A". Formula: =UNICODE("A").
If you need to check a later character instead of the first one, combine UNICODE with MID. For example, =UNICODE(MID(A1,2,1)) checks the second character.
UNICODE returns the Unicode number for the first character in a text string.=UNICODE(text).Tell your friends about this post