How to Use the UNICHAR Function in Google Sheets | Display Characters from Unicode Numbers
How to Use the UNICHAR Function in Google Sheets
The UNICHAR function returns the character corresponding to a given decimal Unicode number. It is handy for dynamically generating special symbols, circled numbers, and emojis in formulas without typing them manually.
Syntax
=UNICHAR(number)
- number: The decimal Unicode value to convert into a character.
Examples
Here is an example of displaying characters in Column B from decimal Unicode numbers entered in Column A.
| Row | A (Unicode Number) | B (Formula) | Result | Description |
|---|---|---|---|---|
| 1 | 12354 | =UNICHAR(A1) |
あ | Hiragana “a” (U+3042) |
| 2 | 9312 | =UNICHAR(A2) |
① | Circled digit “1” (U+2460) |
| 3 | 9733 | =UNICHAR(A3) |
★ | Black star symbol (U+2605) |
| 4 | 128512 | =UNICHAR(A4) |
😀 | Grinning face emoji (U+1F600) |
Pro tip (generate sequential circled numbers):
Enter =UNICHAR(9311 + ROW(A1)) and drag down to automatically generate sequential circled numbers (①, ②, ③, …).
Common Errors and Tips
- When
#VALUE!errors occur- Passing
0, a negative number, or a text string returns#VALUE!. Provide a valid positive Unicode integer.
- Passing
- Missing glyph boxes (“□” / tofu)
- Even for a valid Unicode number, if your OS or font lacks a glyph for that character, it may display as an empty box (
□) or blank space.
- Even for a valid Unicode number, if your OS or font lacks a glyph for that character, it may display as an empty box (
- Surrogate pair code points
- Passing numbers in reserved Unicode ranges where no character is assigned (such as surrogate code points) may fail to display a valid character.
Frequently Asked Questions
Q. What is the difference between UNICHAR and CHAR?
A. CHAR traditionally maps to ASCII codes (mainly half-width alphanumerics and basic symbols), whereas UNICHAR supports the full Unicode standard, allowing you to display Japanese characters, special symbols, and emojis.
Q. Can I pass a hexadecimal Unicode code point (like U+3042) directly?
A. No, UNICHAR only accepts decimal numbers. To convert from hexadecimal, combine it with DECIMAL like "=UNICHAR(DECIMAL("3042", 16))".