Syntax
| Parameter | Description |
|---|---|
| number | Parameter of the CHAR function. |
Examples
Insert line break in cell
=A1 & CHAR(10) & B1
Generate alphabet letters
=CHAR(64+ROW())
Add tab character
=A1 & CHAR(9) & B1
Common Errors
Occurs when the number is outside the valid range (1-255 for CHAR). Use UNICHAR for code points above 255.
Some implementations return #NUM! instead of #VALUE! for out-of-range numbers like 0 or negative values.
Tips
CHAR(10) = line feed, CHAR(9) = tab, CHAR(13) = carriage return, CHAR(34) = double quote, CHAR(65) = A, CHAR(97) = a.
Use CHAR(34) to embed literal double quotes: ="Price is " & CHAR(34) & A1 & CHAR(34) produces Price is "50".
CODE is the inverse of CHAR. =CODE("A") returns 65, and =CHAR(65) returns "A". Useful for character math.
Try CHAR in Viztab
Import your data and use CHAR with 370+ other formulas. No signup required.
Open Viztab