The UNICODE function in Google Sheets is a powerful tool that enables users to find the decimal Unicode representation of the first character in a given text string. This functionality is particularly useful in various applications, such as data analysis, text processing, and encoding tasks, where understanding the character’s Unicode value is crucial for compatibility and representation in different systems.
Syntax
UNICODE(text)
- text: The string from which you want to derive the Unicode value of the first character.
Example #1
UNICODE("A")
returns 65, which is the decimal Unicode value of the character “A”.
Example #2
UNICODE("你好")
returns 20320, the Unicode decimal value for the first character “你” in the string.
Example #3
UNICODE("!@")
returns 33, as the exclamation mark is the first character and its Unicode decimal value is 33.
Error handling
- VALUE! This error indicates that the input “text” is empty or not a valid string.
- N/A This error may occur if the character is not recognized in the current encoding.