Example 1
A letter from its code
B2 =UNICHAR(A2)
Result: A
65 is the code point of the capital letter A.
B2 =UNICHAR(A2) returns A
Returns the character for a Unicode code point, such as 65 for "A", 8364 for the euro sign or 9733 for a star.
Syntax
=UNICHAR()
Excel 2013 and later.
Try it
Edit the formula in B2 or change the inputs. The sheet recalculates as you type.
B2 =UNICHAR(A2) returns A
UNICHAR turns a Unicode number into the character it represents. =UNICHAR(65) returns A, =UNICHAR(8364) returns the euro sign and =UNICHAR(9733) returns a solid star. Unicode covers almost every writing system, plus arrows, shapes, check marks and currency signs, so UNICHAR reaches far beyond the 255 characters that CHAR handles.
number is the code point, as a decimal number. Excel works in decimal, so the euro sign U+20AC is 8364, not 20AC. Convert hexadecimal with HEX2DEC("20AC"). A fractional number is truncated. Zero returns #VALUE!.
How a character looks depends on the font in the cell. If a code point shows as an empty box, switch the font or choose a more widely supported symbol.
=REPT(UNICHAR(9733),B2) repeats a star B2 times.=IF(B2>A2,UNICHAR(8593),UNICHAR(8595)).UNICHAR(10) in a formula, and turn on wrap text for the cell.=UNICHAR(8364)&TEXT(A2,"#,##0.00").=SUBSTITUTE(A2,UNICHAR(160)," ").CHAR depends on the character set of your system and is limited to codes 1 to 255, so the same code can show different characters on different computers. UNICHAR is based on Unicode, which is the same everywhere. Use UNICHAR in new work.
UNICODE does the opposite: it returns the code point of the first character of a text. =UNICHAR(UNICODE("€")) returns the euro sign again.
UNICHAR returns #VALUE! for 0, for negative numbers, for numbers beyond the Unicode range and for text that isn't a number.
65 or 8364. Zero and values that are not valid code points return #VALUE!.Each example is a live sheet. Change the inputs or the formula and watch the result.
Example 1
B2 =UNICHAR(A2)
Result: A
65 is the code point of the capital letter A.
B2 =UNICHAR(A2) returns A
Example 2
B2 =UNICHAR(A2)
Result: €
The euro sign sits at code point 8364.
B2 =UNICHAR(A2) returns €
Example 3
B2 =REPT(UNICHAR(9733),A2)
Result: ★★★
REPT repeats the star character the number of times in A2.
B2 =REPT(UNICHAR(9733),A2) returns ★★★
Solve it in the sheet. Every answer is checked, with hints if you need them.
Task 1 of 2
In B2, return the character that matches the code in A2. Fill it down to B4.
Answer in B2, then it fills down to B4.
#VALUE!.Use `=UNICHAR(code)`, where the code is the decimal Unicode number of the symbol, for example `=UNICHAR(10003)` for a check mark.
CHAR works with a system-dependent character set up to 255. UNICHAR works with Unicode, so it covers symbols and every language, and gives the same result everywhere.
Use UNICODE: `=UNICODE("€")` returns 8364.
Use `UNICHAR(10)`, for example `=A2&UNICHAR(10)&B2`, and turn on Wrap Text for the cell.
Tracks take you from the basics to modelling, one graded exercise at a time.