Function Problems

How to Insert Line Breaks with TEXTJOIN and CHAR(10) in Excel

Elise WilliamsElise Williams Oct 10, 2026 873 views

Question details

The user wants to replace CONCAT with TEXTJOIN to combine multiple horizontally arranged cell values and insert a line break after each value.

How to Insert Line Breaks Using TEXTJOIN and CHAR(10) in Excel
Product
Excel
Device & OS
not provided
Scenario
Combining three horizontally arranged production-shift values into a single cell with each value on a new line.
Observed behavior
The user needs the combined text to display properly on separate lines within a single cell, which requires the correct formula delimiter and cell formatting.
Before you start

Ensure you are using a version of Excel or a spreadsheet application that supports the TEXTJOIN function, such as Office 2019, Microsoft 365, or WPS Office.

Solution 1Recommended

Use TEXTJOIN with CHAR(10) and Enable Wrap Text

This method uses TEXTJOIN to combine cells while ignoring empty ones, using CHAR(10) to generate a carriage return (line break) between the values.

Using TEXTJOIN is far more efficient than CONCAT or CONCATENATE when dealing with arrays or ranges, as you only need to specify the delimiter once. CHAR(10) acts as the line break character in Windows environments.

1
Select the result cell

Click on the cell where you want the combined values with line breaks to appear.

2
Enter the TEXTJOIN formula

Type the formula using CHAR(10) as the delimiter. For example: =TEXTJOIN(CHAR(10), TRUE, OFFSET('[Sample Titanium T1 Crib Sheets.xlsx]Data'!$D$6,0,(COLUMN()-COLUMN($D$6))*3,1,3)). The TRUE argument ensures empty cells are ignored.

3
Apply the formula

Press Enter to apply the formula. Initially, the text might appear continuously on a single line.

4
Enable Wrap Text

Select the result cell, navigate to the 'Home' tab on the ribbon, and click the 'Wrap Text' button. The text will now correctly break into separate lines for each combined value.

Use TEXTJOIN with CHAR(10) and Enable Wrap Text
Note on Wrap Text: If you do not enable 'Wrap Text', the combined text will display in a single line, and the CHAR(10) line breaks will remain invisible.
Seamless Spreadsheet Data Management

Combine Text Easily in WPS Spreadsheet

WPS Office fully supports the TEXTJOIN and CHAR(10) functions, allowing you to combine complex data ranges with line breaks effortlessly. It is fully compatible with Microsoft Excel formulas.

  1. 1. Open your workbook: Launch WPS Spreadsheet and open the file containing your data.
  2. 2. Input the formula: Select the target cell and input your TEXTJOIN formula with CHAR(10) as the delimiter.
  3. 3. Format with Wrap Text: Go to the Home tab and click 'Wrap Text' to display the line breaks properly inside the cell.
100% compatible with Microsoft Excel formats (.xlsx, .xls) and formulasSupports advanced dynamic array functions including TEXTJOIN and OFFSETFree, lightweight, and fast-loading spreadsheet solution for everyday data tasks
QA img-9

Frequently Asked Questions

Why isn't CHAR(10) creating a new line in my cell?

The CHAR(10) character requires 'Wrap Text' to be enabled on the cell to render properly. Select the cell, go to the Home tab, and click Wrap Text for the line breaks to display correctly.

Does TEXTJOIN ignore empty cells when inserting line breaks?

Yes, if you set the second argument of the TEXTJOIN function to TRUE, it will ignore any empty cells in the selected range. This prevents consecutive line breaks from appearing in your result.

Can I use CHAR(10) for line breaks on a Mac?

Historically, Mac Excel used CHAR(13) as the line break character. However, in newer versions of Excel for Mac and Microsoft 365, CHAR(10) is fully supported and will work perfectly.