Google Sheets CHAR Function: Guide and Usage Examples
In this article
The Google Sheets CHAR function returns the character specified by a given Unicode number. To use it, enter =CHAR(number) into a cell, where the number represents the specific character code you want to display. This is primarily used to insert characters that are difficult to type using a standard keyboard, such as line breaks, non-breaking spaces, or special symbols like copyright signs and checkmarks.
What You'll Need
- A Google account with access to Google Sheets.
- The Unicode (or ASCII) decimal value of the character you wish to generate.
- Basic familiarity with entering formulas into a cell.
Step-by-Step
- Open your Google Sheet: Launch your browser, navigate to Google Sheets, and open the specific spreadsheet where you want to insert the special character.
- Identify the Character Code: Determine the Unicode number for the character you need. For example, if you want a line break (carriage return), the code is 10. If you want a copyright symbol (©), the code is 169. If you want a checkmark (✓), the code is 10003.
- Select the Target Cell: Click on the cell where you want the character to appear.
- Enter the Formula: Type
=CHAR(followed by the number. For example, to get a copyright symbol, type=CHAR(169). - Close the Parenthesis and Press Enter: Complete the formula by typing the closing parenthesis
)and pressing the Enter key. The cell will now display the character associated with that number. - Combine with Other Text (Optional): If you want the character to appear as part of a sentence, use the ampersand (& symbol) to concatenate it. For example,
="Copyright " & CHAR(169) & " 2026"will result in "Copyright © 2026". - Implement a Line Break (Advanced): To force a line break within a single cell using a formula, use
=CHAR(10). For example,="First Line" & CHAR(10) & "Second Line". Note that for this to be visible, you must enable "Wrap text" for that cell via the toolbar menu.
Common Mistakes
One of the most frequent errors is forgetting to enable text wrapping when using CHAR(10). By default, Google Sheets displays content in a single line. If you insert a line break character but the cell is set to "Overflow" or "Clip," the line break will be invisible, and the text will appear to run together or be cut off. Always check the Format menu or the toolbar wrap icon to ensure "Wrap" is selected.
Another common mistake is entering the character code as text instead of a number. The CHAR function requires a numeric value. Entering =CHAR("65") may work because Google Sheets attempts to coerce the text into a number, but it is bad practice and can lead to errors in more complex nested formulas. Always use raw numbers: =CHAR(65).
Users also frequently confuse the CHAR function with the CODE function. While CHAR converts a number to a character, CODE does the opposite—it takes a character and tells you its numeric value. If you try to put a letter inside the CHAR function (e.g., =CHAR("A")), the formula will return a #VALUE! error because it expects a number.
Finally, some users attempt to use hexadecimal codes directly. The CHAR function in Google Sheets expects decimal integers. If you find a Unicode character listed as U+2713, you cannot simply type =CHAR(2713) if that number is in hex. You must convert the hexadecimal value to a decimal value first before placing it inside the CHAR function.
Tips
To find the numeric code for a character you already have in your sheet, use the =CODE() function. If cell A1 contains the symbol "$", typing =CODE(A1) will return 36. You can then use =CHAR(36) elsewhere to replicate it.
For those creating professional dashboards, using CHAR(10) is an excellent way to create clean, multi-line labels within a single cell without having to manually press Alt+Enter repeatedly. This is especially useful when your labels are generated dynamically via a formula based on other cell values.
If you are working with large datasets and need to clean data, CHAR(32) represents a standard space. Sometimes, data imported from the web contains "non-breaking spaces" (CHAR(160)), which look like regular spaces but cause VLOOKUP or MATCH functions to fail. You can use the SUBSTITUTE function to replace these problematic characters: =SUBSTITUTE(A1, CHAR(160), CHAR(32)). This replaces the invisible non-breaking space with a standard space, fixing your lookup errors.
You can create a "Character Map" tab in your workbook. List common Unicode numbers in column A and the corresponding =CHAR() formula in column B. This allows you to quickly copy and paste the formulas you use most often without having to memorize the numeric codes.
Troubleshooting
If the formula returns a #VALUE! error, check the input inside the parentheses. Ensure there are no letters, symbols, or spaces inside the CHAR() function. It must be a positive integer. If you are referencing another cell, ensure that the referenced cell contains only a number.
If the formula returns a #NUM! error, it means the number you provided is outside the range of supported Unicode characters. While Google Sheets supports a vast range of characters, extremely high numbers that do not correspond to a defined Unicode character will trigger this error. Double-check your source for the correct decimal code.
If the character appears as a square box or a question mark, this is not a Google Sheets formula error, but a font rendering issue. The font currently selected for the cell does not have a glyph for that specific Unicode character. To fix this, try changing the font to a more universal one, such as Arial or Noto Sans, which support a wider array of international symbols and emojis.
If CHAR(10) is not creating a new line, first verify the formula is correct. Then, go to the top toolbar, find the Text Wrapping icon (which looks like an arrow curving back), and select the middle option ("Wrap"). If the row height is too short, you may still not see the second line; drag the row boundary down to expand the height.
Frequently Asked Questions
How do I insert a newline in a Google Sheets formula?
Use the CHAR(10) function combined with the ampersand (&) for concatenation. For example: ="Line 1" & CHAR(10) & "Line 2". Remember to enable "Wrap text" for the cell to see the effect.
What is the difference between CHAR and CODE?
CHAR converts a number to a character (e.g., =CHAR(65) becomes "A"). CODE converts a character to its numeric value (e.g., =CODE("A") becomes 65).
Can I use CHAR to insert emojis?
Yes, if you have the decimal Unicode value for the emoji, the CHAR function can display it. However, because many emojis have very high Unicode values, ensure your browser and system fonts support them to avoid seeing boxes instead of icons.
Why does my CHAR(10) formula just look like a space?
This happens when the cell's text wrapping is set to "Overflow" or "Clip." You must change the setting to "Wrap" via the format menu or toolbar to allow the line break to push text to a new line.
How do I find the number for a specific symbol?
You can use the =CODE("symbol") function in a cell to find the number, or search online for "Unicode character table" to find the decimal value of the symbol you need.
Does the CHAR function work in Excel too?
Yes, the CHAR function exists in Microsoft Excel and works similarly, although Excel may use different character sets depending on the system's language settings for certain higher-value characters.