Function · Convert text and numbers
Excel CHAR function
The Excel CHAR function returns the character for a code. CHAR(65) is A. CHAR(10) is a line break. Codes above 127 are not the same on every system.
Syntax =CHAR(number)
=CHAR(65)Arguments
| Name | Required | What to pass |
|---|---|---|
| number | Required | A character code from 1 through 255. A fraction is cut down to the integer. |
Examples
The capital letter A
=CHAR(65)Result A
| A | B | |
|---|---|---|
| 1 | Code | 65 |
| 2 | Character | A |
CHAR turns a code into one character. 65 is A. 97 is a. 36 is the dollar sign. 10 is a line break, which CLEAN removes and which you can build with &CHAR(10)& when a cell should hold two lines. Turn on wrap text or the break is invisible.
Codes 1 through 127 are the familiar ASCII set. Codes 128 through 255 depend on the operating system’s character set, so a workbook that uses CHAR(233) for an accented letter can show a different glyph on another computer. UNICHAR takes a Unicode code point and does not have that limit. CODE is the reverse of CHAR for the first character of a string.