How to Fix CHAR(10) Not Creating a New Line in Excel
Question details
The user is trying to use the CHAR(10) function to insert a line break within an Excel formula, but the text remains on a single line.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Using the CHAR(10) function to concatenate text with line breaks in an Excel cell.
- Observed behavior
- The text appears on one continuous line instead of breaking into multiple lines as intended.
Verify that your formula is typed correctly without syntax errors, using the ampersand (&) to concatenate your text strings with the CHAR(10) function.
Enable Wrap Text for the Formula Cell
Activate the Wrap Text formatting option, which is required for formula-generated line breaks to display correctly in Excel.
When you manually enter a line break using the Alt + Enter keyboard shortcut, Excel automatically activates the Wrap Text setting for that cell. However, when a line break is generated dynamically via a formula using CHAR(10), Excel does not automatically toggle this setting. You must enable it manually to see the text displayed on multiple lines.
Click on the cell or highlight the range of cells containing the formula with the CHAR(10) function.
Look at the ribbon at the top of the Excel window and click on the 'Home' tab.
In the 'Alignment' group, click on the 'Wrap Text' button. Your text will instantly format with the intended line breaks.

Easily Manage Formulas and Formatting with WPS Spreadsheet
WPS Spreadsheet offers an intuitive interface for managing complex formulas like CHAR(10) and applying cell formatting seamlessly. It provides robust tools for everyday data management and full compatibility with legacy and modern spreadsheet formats.
- 1. Open your file in WPS Spreadsheet: Launch WPS Office and open your existing spreadsheet file.
- 2. Enter your concatenation formula: Type your formula using CHAR(10), for example: ="please"&CHAR(10)&"help".
- 3. Apply text wrapping: Select the cell, navigate to the 'Home' tab, and click the 'Wrap Text' icon to instantly display your line breaks.

Frequently Asked Questions
Why does Alt + Enter work without enabling Wrap Text?
When you manually use the Alt + Enter shortcut to create a line break inside a cell, Excel is programmed to automatically enable the Wrap Text setting for you in the background. This automation does not apply to formula-driven line breaks like CHAR(10).
What is the Mac equivalent for CHAR(10) in Excel?
On older Mac systems, CHAR(13) was used for carriage returns. However, in modern versions of Excel for Mac, CHAR(10) works universally to insert a line-feed character.
Can I use CHAR(10) with the TEXTJOIN function?
Yes, you can use CHAR(10) as the delimiter in a TEXTJOIN function to list items on separate lines within a single cell. For example, =TEXTJOIN(CHAR(10), TRUE, A1:A5). Remember to enable Wrap Text for the resulting cell.
How do I remove CHAR(10) line breaks from my cells?
You can use the CLEAN function (e.g., =CLEAN(A1)) to remove non-printable characters, including line breaks, from your text. Alternatively, you can use the Find and Replace tool by pressing Ctrl + J in the 'Find what' box to input a line break, leaving the 'Replace with' box empty, and clicking 'Replace All'.




