How to Insert an Excel Line Break Automatically with Formulas
Question details
The user wants to automatically insert an in-cell line break to split text strings without having to manually press Alt+Enter.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Automatically formatting and splitting long text within a single cell using automated entries or functions.
- Observed behavior
- Excel's AutoCorrect does not reliably support replacing text with an Alt+Enter line break, requiring an alternative approach using formulas and the Wrap Text feature.
Identify the cells where you want to split the text automatically, and note that you must apply the 'Wrap Text' formatting for formula-based line breaks to become visible.
Insert Line Breaks Automatically Using the CHAR(10) Formula
This is the most reliable method to split text inside a cell automatically, avoiding the formatting limitations of Excel's AutoCorrect feature.
Excel's AutoCorrect feature generally strips out multi-line formatting and cannot insert an Alt+Enter line break directly. Instead, you can use the CHAR(10) function combined with text manipulation functions like MID to inject a line break exactly where you need it.
Click on an empty cell where you want the automatically split text to appear.
Type a formula that combines your text segments with the CHAR(10) function. For example, use =MID(A1,1,3)&CHAR(10)&MID(A1,4,LEN(A1)-3) to place a line break after the third character of cell A1.
Press Enter to execute the formula. The text will initially appear on a single line.
Select the formula cell, navigate to the Home tab on the top ribbon, and click the 'Wrap Text' button to make the line break visible.

Use Find and Replace for Bulk Line Breaks
If you want to replace a specific character with a line break across multiple cells instead of writing individual formulas, you can use the Find and Replace dialog.
Format Cell Text Automatically in WPS Spreadsheet
You can effortlessly insert line breaks and manage complex cell formatting using the CHAR(10) formula and text wrapping tools in WPS Spreadsheet, an excellent tool fully compatible with Excel formats.
- 1. Open your workbook: Launch WPS Spreadsheet and open the file containing the text you want to split.
- 2. Enter the manipulation formula: Select a blank cell and input your formula, inserting &CHAR(10)& exactly where the line break should occur.
- 3. Confirm the input: Press Enter to apply the formula to the cell.
- 4. Apply text wrapping: With the cell selected, go to the Home tab and click the 'Wrap Text' icon to reveal your properly formatted line breaks.

Frequently Asked Questions
Why isn't my CHAR(10) formula showing a line break?
By default, spreadsheet cells do not wrap text automatically. You must select the cell containing your formula, go to the Home tab, and click 'Wrap Text' for the line break inserted by CHAR(10) to become visible.
Can I use AutoCorrect to insert an Alt+Enter line break in Excel?
No, Excel's AutoCorrect does not reliably support inserting in-cell line breaks (such as Alt+Enter). It is highly recommended to use formulas with CHAR(10) or the Find and Replace method with Ctrl+J instead.
What exactly does the CHAR(10) function do?
The CHAR(10) function returns a line feed character based on the standard ASCII character set. When concatenated with text strings and combined with the Wrap Text cell format, it acts as an automatic in-cell line break.




