Skip to content

UNICHAR

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()

Text

Excel 2013 and later.

Try it

Edit the formula in B2 or change the inputs. The sheet recalculates as you type.

B2
A
B
C
1
Code
Character
2
65
A
3

B2 =UNICHAR(A2) returns A

How UNICHAR works

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.

The one argument

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!.

Useful code points

  • 65 to 90: the capital letters A to Z.
  • 8364: the euro sign. 163 is the pound sign and 165 the yen sign.
  • 10003: a check mark. 10007: a cross.
  • 9650 and 9660: a triangle up and a triangle down. 8593 and 8595: an up arrow and a down arrow.
  • 9733 and 9734: a solid star and an empty star.
  • 160: a non-breaking space, a common cause of cleaning problems.

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.

Common patterns

  • Rating stars: =REPT(UNICHAR(9733),B2) repeats a star B2 times.
  • Trend arrows: =IF(B2>A2,UNICHAR(8593),UNICHAR(8595)).
  • Line breaks: use UNICHAR(10) in a formula, and turn on wrap text for the cell.
  • Currency symbols: =UNICHAR(8364)&TEXT(A2,"#,##0.00").
  • Remove non-breaking spaces: =SUBSTITUTE(A2,UNICHAR(160)," ").

UNICHAR and CHAR

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.

The reverse

UNICODE does the opposite: it returns the code point of the first character of a text. =UNICHAR(UNICODE("€")) returns the euro sign again.

Errors

UNICHAR returns #VALUE! for 0, for negative numbers, for numbers beyond the Unicode range and for text that isn't a number.

Arguments

number
The Unicode code point as a whole number, for example 65 or 8364. Zero and values that are not valid code points return #VALUE!.

Examples

Each example is a live sheet. Change the inputs or the formula and watch the result.

Example 1

A letter from its code

B2 =UNICHAR(A2)

Result: A

65 is the code point of the capital letter A.

B2
A
B
C
1
Code
Character
2
65
A
3

B2 =UNICHAR(A2) returns A

Example 2

A currency sign

B2 =UNICHAR(A2)

Result: €

The euro sign sits at code point 8364.

B2
A
B
C
1
Code
Character
2
8364
€
3

B2 =UNICHAR(A2) returns €

Example 3

Build a star rating

B2 =REPT(UNICHAR(9733),A2)

Result: ★★★

REPT repeats the star character the number of times in A2.

B2
A
B
C
1
Rating
Stars
2
3
★★★
3

B2 =REPT(UNICHAR(9733),A2) returns ★★★

Your turn.

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.

B2
A
B
C
D
E
1
Code
Symbol
Rating
Stars
2
8593
3
3
8595
5
4
8594
1
5

Common mistakes

  • UNICHAR uses decimal numbers. The euro sign is 8364, not the hexadecimal 20AC. Use HEX2DEC to convert.
  • Zero and invalid code points return #VALUE!.
  • A symbol may display as an empty box if the cell's font has no glyph for it.
  • CHAR and UNICHAR agree for 32 to 126 only. Use UNICHAR for anything else.

Questions people ask

How do I insert a symbol using a formula?

Use `=UNICHAR(code)`, where the code is the decimal Unicode number of the symbol, for example `=UNICHAR(10003)` for a check mark.

What is the difference between UNICHAR and CHAR?

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.

How do I find the code of a character?

Use UNICODE: `=UNICODE("€")` returns 8364.

How do I add a line break in a formula?

Use `UNICHAR(10)`, for example `=A2&UNICHAR(10)&B2`, and turn on Wrap Text for the cell.

Learn UNICHAR in a real sheet.

Tracks take you from the basics to modelling, one graded exercise at a time.