CHAR turns a number into its character — a line break, a bullet, a degree sign — and CODE does the reverse. They’re how you insert characters you can’t easily type and inspect mystery characters in messy data.
CHAR(10) is the line-feed character; join it between values (and turn on Wrap Text) to stack them on two lines.
The example
Common CHAR codes and what they produce.
| A | B | |
|---|---|---|
| 1 | Formula | Result |
| 2 | CHAR(10) | line break |
| 3 | CHAR(176) | ° (degree) |
| 4 | CHAR(8226)? → UNICHAR(8226) | • (bullet) |
| 5 | CODE("A") | 65 |
The formula
A line break joined between two cells:
How it works
CHAR and CODE convert between numbers and characters:
CHAR(n)returns the character for coden—CHAR(10)is a line break,CHAR(176)is the degree sign,CHAR(9)is a tab.CODE("A")returns the number for a character —65— handy for spotting stray invisible characters (CODE(LEFT(A2))).- For characters beyond the basic 255 (emoji, bullets, arrows), use
UNICHARandUNICODE— e.g.UNICHAR(8226)is a bullet. - Remember to enable Wrap Text for
CHAR(10)line breaks to actually show.
Diagnose “invisible” characters: if a lookup fails, =CODE(RIGHT(A2)) on a suspect cell often reveals a trailing 160 (non-breaking space) or 10 (line break) hiding in your data.
Try it: interactive demo
Enter a code number; see the character (and its CODE back).
Variations
Bullet list in one cell
Bullets + line breaks (Wrap Text on):
Degree or other symbol
Append a degree sign:
Find a hidden character
Code of the last character:
Pitfalls & errors
CHAR(10) needs Wrap Text. Without it, the line break is there but the cell shows everything on one line.
CHAR only goes to 255. For higher code points (bullets, arrows, emoji), use UNICHAR/UNICODE instead.
Codes differ by system slightly above 127 (Windows vs Mac). Stick to UNICHAR for portable symbols.
Practice workbook
Frequently asked questions
How do I add a line break inside a formula in Excel?
How do I insert a special character like a bullet or degree sign?
How do I find an invisible character causing a lookup to fail?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class