
The Excel CHAR function returns the character that matches a numeric code. For example, =CHAR(65) returns "A". It is the reverse of CODE.
CHAR is often used when a formula needs a character that is awkward to type directly, such as a line break or a special symbol. The best-known example is CHAR(10), which inserts a new line inside a cell.
In practice, CHAR often appears in formatting and cleanup formulas. A workbook might use CHAR(10) for a line break, CHAR(32) for a normal space, or a punctuation code when building a label from smaller pieces.
So CHAR is less about typing letters and more about controlling output. When a formula needs to generate a character on demand, especially one that is invisible or awkward to type, CHAR gives you a reliable way to do it.
Returns a character from a numeric code in the computer character set.
Returns one character as text. Invalid codes return an error.
=CHAR(number)
number is the code you want to convert. In Excel, CHAR is usually used with values from 1 to 255. If the code is outside the valid range for CHAR, the formula returns an error.
CHAR works with traditional character codes, while UNICHAR is the modern Unicode version. CODE and CHAR also work as opposites: CODE gives you the number for a character, and CHAR turns that number back into the character.
| Function | Main Role | Use When |
|---|---|---|
CHAR |
Code to character | You need a standard character such as a line break or degree symbol |
CODE |
Character to code | You want to identify the code of the first character |
UNICHAR |
Unicode code to character | You need a wider range of symbols than CHAR provides |
The most common use of CHAR is adding a line break in a formula. You cannot press Enter directly inside a text formula, but CHAR(10) inserts the line break character for you. To see it properly, the cell usually needs Wrap Text enabled.
CHAR is also useful for symbols such as quotation marks, tabs, and degree signs. In these cases, it can be easier and safer to use the code than to type the character directly inside a long formula.
CHAR(10) for a line break inside a formula.This is the direct use of CHAR. A numeric code is converted into its matching character.
=CHAR(65) // "A"
=CHAR(97) // "a"
=CHAR(48) // "0"
In cell C1, use CHAR to get the character for the number in B1.
This is the CHAR example most Excel users meet first. The formula joins two values with a line break so they appear on separate lines inside one cell.
="Hello"&CHAR(10)&"World"
=TEXTJOIN(CHAR(10),TRUE,A1:A5)
In cell D2, join the text in B2 and C2 with a line break between them.
CHAR can insert symbols into labels and measurements. That makes it useful when a formula should produce a finished text result such as a temperature reading.
=B3&CHAR(176)&"C" // 25°C
=CHAR(34)&"Quoted"&CHAR(34)
In cell C3, add a degree symbol after the number in B3.
The code does not have to be typed directly into the formula. You can store it in another cell and let CHAR read it there.
=CHAR(C4)
// If C4 = 36, the result is "$"
In cell C4, use CHAR to get the character for the number stored in B4.
Codes above the basic range can vary more by platform and font. If you need a symbol that should be consistent across modern systems, UNICHAR is usually the better choice.
CHAR is a small function, but it solves a lot of practical text problems. This lesson showed that it turns a numeric code into a character, which is useful when typing the character directly would be awkward or less clear inside a formula.
The most common beginner use is still CHAR(10) for a line break, but the examples also showed how it helps with symbols like degree signs and quotes. Once you know a few common codes, CHAR becomes a handy text-building tool.
CHAR converts a numeric code into a character.=CHAR(number).CHAR(10) when a formula needs a new line inside one cell.Tell your friends about this post