Sheets CHAR: How to Use the CHAR Function in Google Sheets
Sheets CHAR is the Google Sheets CHAR function, and it turns a number into a character. Type =CHAR(65) and you get the letter A, type =CHAR(97) and you get a lowercase a, and type =CHAR(10) and you get a line break inside a cell. If you have ever needed a special symbol, a quote mark, or a new line inside a formula, CHAR is the function that makes it possible, without copying and pasting the character from somewhere else.
In this guide we explain what the Sheets CHAR function does, how to use it, the character codes you will use most often, and practical examples for line breaks, quotes, symbols, and building text with formulas. We also cover common errors and how CHAR works with other functions such as CONCATENATE, TEXTJOIN, REPT, and CODE.
What Is the CHAR Function in Google Sheets?
The CHAR function in Google Sheets returns the character for a given number, using the Unicode character set. Its syntax is simple: =CHAR(number), where number is the code for the character you want. For example, =CHAR(65) returns A, because 65 is the Unicode code for a capital A. =CHAR(36) returns a dollar sign, and =CHAR(8364) returns the euro sign.
CHAR is the opposite of the CODE function. CODE takes a character and returns its number, so =CODE(“A”) returns 65, while CHAR takes a number and returns the character. Together, they let you move between characters and their codes inside a formula, which is useful when you need to build text that would be hard to type directly.
You do not need to memorise hundreds of codes. Most people use CHAR for a small set of characters: line breaks, quote marks, commas, tabs, and a few symbols. Once you know those, you can use CHAR in almost any formula that builds text.
How to Use CHAR in Google Sheets
The basic syntax
To use CHAR, type =CHAR(number) in a cell, replacing number with a code or a cell reference that holds a code. For example, if cell A1 holds the number 72, then =CHAR(A1) returns H. You can also use CHAR inside a larger formula, such as =”Hello”&CHAR(10)&”World”, which puts Hello and World on two lines in the same cell. Remember to turn on text wrapping for the cell, or the line break will not show properly.
Common CHAR codes to remember
Use the table below for the codes you are most likely to need. You can copy these examples into a sheet and try them yourself.
| Formula | Result | What it is |
|---|---|---|
| =CHAR(10) | Line break | New line inside a cell |
| =CHAR(32) | Space | Normal space |
| =CHAR(34) | “ | Double quote mark |
| =CHAR(39) | ‘ | Single quote mark |
| =CHAR(44) | , | Comma |
| =CHAR(9) | Tab | Tab character |
| =CHAR(160) | Non-breaking space | Space that does not break a line |
| =CHAR(8226) | • | Bullet point |
| =CHAR(8594) | → | Right arrow |
| =CHAR(10003) | ✓ | Check mark |
| =CHAR(9733) | ★ | Star |
| =CHAR(8364) | € | Euro sign |
These codes work in Google Sheets, and most of them also work in Excel, because both use the same Unicode values for common characters. If a code does not show the character you expect, check that you typed the right number, and check that the font you are using supports that character. Some symbols need a font that includes them, and a missing symbol may show as a box or a question mark.
Practical Examples of Sheets CHAR
1. Add a line break inside a formula
The most common use of CHAR is to add a line break with CHAR(10). For example, to show a name and an address on two lines, use =A1&CHAR(10)&B1, where A1 holds the name and B1 holds the address. Then select the cell, open Format, and turn on Wrap text, or the two parts will appear on one line with a small box where the break should be. This is useful for labels, invoices, and any report where you want two pieces of information in one cell.
2. Add a quote mark inside text
In Google Sheets, a double quote inside a formula normally ends a text string, so you cannot type it directly. CHAR(34) solves this. For example, =”She said “&CHAR(34)&”hello”&CHAR(34) produces: She said “hello”. This is useful when you are building sentences, product descriptions, or quoted text with a formula.
3. Build a list with bullet points
You can use CHAR(8226) to add a bullet before each item in a list. For example, =CHAR(8226)&” “&A1&CHAR(10)&CHAR(8226)&” “&A2 creates a two-line bulleted list from cells A1 and A2. Again, turn on text wrapping so the line break shows. This is a simple way to build a readable list inside one cell, without merging cells or using extra columns.
4. Create a separator or a repeated character
CHAR works well with REPT, which repeats text a set number of times. For example, =REPT(CHAR(9472), 20) creates a line of 20 horizontal line characters, which you can use as a divider in a report. You can also use CHAR with TEXTJOIN to join a range with a line break, such as =TEXTJOIN(CHAR(10), TRUE, A1:A5), which joins five cells with a line break between each one.
5. Generate letters and numbers in order
Because letters have consecutive codes, you can generate a sequence with CHAR and ROW. For example, =CHAR(64+ROW()) in a column will give you A, B, C, and so on as you copy it down, because 65 is A, 66 is B, and 67 is C. This is useful for labels, grades, and simple lists, and it shows why it helps to know that capital letters run from 65 to 90 and lowercase letters run from 97 to 122.
CHAR vs CODE: What Is the Difference?
CHAR and CODE are opposites. CHAR turns a number into a character, and CODE turns a character into a number. Use CHAR when you know the code and want the character, and use CODE when you have a character and want to know its code. For example, if you are not sure what code a symbol has, type =CODE(“€”) in a cell, and Sheets will tell you it is 8364. You can then use =CHAR(8364) in another formula to get the euro sign back.
This pair is also useful for cleaning data. If a cell contains a strange character, CODE can tell you what it is, and CHAR can help you replace it. For example, a non-breaking space has the code 160, so you can find it with CODE and replace it with a normal space, which has the code 32. That kind of cleaning is hard to do by eye, because the two spaces look the same.
Common CHAR Errors and How to Fix Them
- #VALUE! error: CHAR expects a number. If you pass text that is not a number, such as =CHAR(“A”), you will get an error. Use CODE to get the number first, or pass a number directly.
- Line break not showing: CHAR(10) only shows as a new line if text wrapping is on. Select the cell, open Format, and choose Wrap, or the break will appear as a small box.
- Wrong character: check that you used the right code. A common mistake is to use the ASCII code from an old table that does not match Unicode, or to mix up a similar-looking character, such as a hyphen and a dash.
- Box or question mark: the character may not be supported by the font. Try a different font, or choose a more common symbol.
- Number out of range: CHAR in Google Sheets accepts Unicode values, but very large or invalid values can cause an error. Check the code against a Unicode table if you are unsure.
If you are building a larger spreadsheet and need to move data between Excel and Sheets, our guide to converting Excel to Google Sheets explains the steps, and our guide to the Excel SUMIF function shows another useful formula for working with numbers in a spreadsheet.
Frequently Asked Questions
What does CHAR do in Google Sheets?
CHAR returns the character for a given number, using Unicode. For example, =CHAR(65) returns A, =CHAR(97) returns a, and =CHAR(10) returns a line break. It is used to add special characters, quotes, and line breaks inside formulas.
How do I add a line break in Google Sheets with CHAR?
Use CHAR(10) inside your formula, such as =A1&CHAR(10)&B1, and then turn on text wrapping for the cell. Without wrapping, the line break will not show as a new line.
What is the difference between CHAR and CODE in Sheets?
CHAR turns a number into a character, and CODE turns a character into a number. For example, =CHAR(65) returns A, and =CODE(“A”) returns 65. They are opposites, and they are often used together.
Why is my CHAR formula showing a box instead of a symbol?
The character may not be supported by the font you are using, or you may have used the wrong code. Check the code against a Unicode table, try a different font, and test the formula with a common character such as =CHAR(65) to make sure the function itself is working.
Can I use CHAR in Excel as well?
Yes. Excel also has a CHAR function with the same basic syntax, =CHAR(number), and most common codes are the same. There are some differences in how Excel and Sheets handle very high Unicode values, so test your formula in the program you will actually use.
Sheets CHAR is a small function with a big job: it lets you put characters into a formula that you cannot type directly, from line breaks and quote marks to symbols and arrows. Learn the few codes you use most, such as CHAR(10) for a line break and CHAR(34) for a quote, and you will be able to build cleaner text, better labels, and more readable reports in Google Sheets.