Formatting Issues

How to Insert an Excel Line Break Automatically with Formulas

Aamir Naveed AkramAamir Naveed Akram Oct 19, 2026 872 views

Question details

The user wants to automatically insert an in-cell line break to split text strings without having to manually press Alt+Enter.

How to Insert an Excel Line Break Automatically Using a Formula
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the destination cell

Click on an empty cell where you want the automatically split text to appear.

2
Enter the CHAR(10) formula

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.

3
Apply the formula

Press Enter to execute the formula. The text will initially appear on a single line.

4
Enable Wrap Text

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.

Insert Line Breaks Automatically Using the CHAR(10) Formula
Wrap Text Requirement: Always remember to enable Wrap Text on the destination cell, otherwise the CHAR(10) line break will remain hidden.
WPS Spreadsheet Solution

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. 1. Open your workbook: Launch WPS Spreadsheet and open the file containing the text you want to split.
  2. 2. Enter the manipulation formula: Select a blank cell and input your formula, inserting &CHAR(10)& exactly where the line break should occur.
  3. 3. Confirm the input: Press Enter to apply the formula to the cell.
  4. 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.
100% compatibility with Microsoft Excel formulas and formattingSeamlessly use CHAR(10) and Wrap Text features to style your dataFree, lightweight, and incredibly easy to use across all your devicesIntuitive tabbed interface for managing multiple spreadsheets efficiently
microsoft office alternative - wps office

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.