How to Combine Cells with Line Breaks in Excel

📅 Jan 08, 2026 📝 Sarah Miller

Manually merging spreadsheet data often results in cluttered, unreadable blocks of text that disrupt your reporting workflow. When consolidations involve complex tracking-such as organizing standard funding sources like federal grants and private equity-standard concatenation falls short. Utilizing a dynamic line-break formula grants immediate visual clarity, transforming dense rows into structured, professional assets. As a crucial stipulation, you must enable Excel's "Wrap Text" feature for these breaks to render. For example, combining cells using =A2&CHAR(10)&B2 instantly separates your data points. Below, we outline the exact formulas and formatting steps to implement this solution efficiently.

How to Combine Cells with Line Breaks in Excel

Excel Formula to Combine Cells with Line Break

When working in Microsoft Excel, you often need to merge data from multiple cells into a single cell. While combining names, dates, or numbers horizontally is straightforward, formatting them vertically within a single cell can be a bit more challenging. Creating a mailing address, generating a multi-line description, or formatting a clean report often requires combining cells with a line break.

In this comprehensive guide, we will explore the different ways to combine cells with a line break in Excel. Whether you are using the latest version of Microsoft 365 or an older legacy version of Excel, we have got you covered with methods utilizing the TEXTJOIN function, the Ampersand (& ) operator, and the CONCATENATE function.


The Secret Ingredient: The CHAR Function

Before diving into the formulas, you must understand how Excel recognizes a line break. Excel cannot read a standard keyboard "Enter" key inside a formula. Instead, we use the CHAR function, which returns a character based on its ASCII code number.

  • CHAR(10): This is the line feed character used in Windows systems.
  • CHAR(13): This is the carriage return character used in classic Mac systems. (Note: Modern Excel for Mac generally supports CHAR(10) as well).

For almost all modern Excel applications, CHAR(10) is the universal formula component used to insert a line break.

Crucial Step: Turn on "Wrap Text"
If you write your formula and the output still displays on a single line (often separated by a strange space or a small square box), it is because you have not enabled Wrap Text. Select the cell, go to the Home tab on the Ribbon, and click the Wrap Text button in the Alignment group.

Method 1: The Modern & Best Way – Using TEXTJOIN

If you are using Excel 2019, Excel 2021, or Microsoft 365, the TEXTJOIN function is by far the most powerful and elegant solution. Unlike older methods, TEXTJOIN allows you to specify a; line break) just once and automatically ignores empty cells if you want it to.

TEXTJOIN Syntax:

=TEXTJOIN(delimiter, ignore_empty, text1, [text2], ...)

How to use it with a Line Break:

To combine cells A2, B2, and C2 with line breaks, use the following formula:

=TEXTJOIN(CHAR(10), TRUE, A2, B2, C2)

Why TEXTJOIN is Superior:

  • Handles Empty Cells Gracefully: By setting the second argument to TRUE, Excel will completely skip any empty cells in your range. This prevents awkward double line breaks if some of your data rows have missing information (e.g., an address without a "Unit/Suite" line).
  • Saves Time with Ranges: Instead of selecting individual cells, you can select a contiguous range, such as =TEXTJOIN(CHAR(10), TRUE, A2:D2).

Method 2: The Classic Way – Using the Ampersand (&) Operator

If you are working with an older version of Excel (like Excel 2010 or 2013) or if you prefer a quick formula without calling heavy functions, the Ampersand (&) operator is your best friend. The ampersand acts as a concatenation tool in Excel.

Formula Structure:

=Cell1 & CHAR(10) & Cell2 & CHAR(10) & Cell3

Step-by-Step Example:

Imagine you have a customer database with the following layout:

  • Column A: First Name (e.g., "Jane")
  • Column B: Last Name (e.g., "Doe")
  • Column C: City (e.g., "Chicago")

To merge these into a single multi-line block, write this formula in cell D2:

=A2 & " " & B2 & CHAR(10) & C2

This formula first combines the first name and last name with a space, then inserts a line break (CHAR(10)), and finally appends the city name. Once you hit enter and click Wrap Text, the output will look like this:

Jane Doe
Chicago


Method 3: The CONCAT and CONCATENATE Functions

The CONCATENATE function (or its newer, shorter successor, CONCAT) is another alternative. While it works similarly to the Ampersand operator, many users find it easier to read because it looks like a traditional function.

Using CONCATENATE (Older Excel Versions):

=CONCATENATE(A2, CHAR(10), B2, CHAR(10), C2)

Using CONCAT (Excel 2016 and Newer):

=CONCAT(A2, CHAR(10), B2, CHAR(10), C2)

While this method works perfectly, it does not support range selections with a; TEXTJOIN does. You must manually insert CHAR(10) between every single cell reference, making it tedious for large datasets.


How to Handle Empty Cells in Older Excel Versions

As mentioned, TEXTJOIN handles blank cells automatically. But what if you are stuck using an older version of Excel and must use the Ampersand (&) method? If you combine cells where some might be empty, you will end up with messy, blank lines in your output.

To solve this, you can nest your cells inside an IF statement to check if they are blank before adding the line break.

The Conditional Formula:

=A2 & IF(B2<>"", CHAR(10) & B2, "") & IF(C2<>"", CHAR(10) & C2, "")

How it works: The IF(B2<>"", CHAR(10) & B2, "") portion tells Excel: "If cell B2 is not empty, add a line break followed by the content of B2. If it is empty, add absolutely nothing." This keeps your final concatenated block clean and compact.


Quick Comparison of Methods

Method Excel Compatibility Handles Blanks? Best For
TEXTJOIN Excel 2019+, M365 Yes (Automatic) Combining large ranges, address lists, complex data structures.
Ampersand (&) All Versions No (Requires IF formulas) Quick, simple combinations of 2 or 3 cells.
CONCAT / CONCATENATE All Versions No Users who prefer traditional function syntax over operators.

Step-by-Step Practical Example: Building a Mailing Label

Let's put this into practice by building a standard 4-line mailing address block from a customer table. Assume your data is organized as follows:

  • Row 2: John Smith (Col A) | Acme Corp (Col B) | 123 Main St (Col C) | New York (Col D) | NY (Col E) | 10001 (Col F)

We want the output to look like a professional shipping label:

John Smith
Acme Corp
123 Main St
New York, NY 10001

To achieve this dynamically using the modern TEXTJOIN function, we can combine it with standard cell concatenation for the city/state/zip line:

=TEXTJOIN(CHAR(10), TRUE, A2, B2, C2, D2 & ", " & E2 & " " & F2)

If some clients don't have a company name (Column B is blank), TEXTJOIN's ignore-empty feature ensures that the company line is skipped entirely, moving the street address up immediately below the recipient's name without leaving an empty white line.


Summary of Best Practices

  • Always turn on "Wrap Text": This is the single most common reason why line break formulas appear to fail. If you see a single-line string, toggle the Wrap Text button on your Home tab.
  • Adjust Row Height: Sometimes, Excel does not automatically resize the row height to show the newly added lines. Double-click the boundary below the row number to autofit the row height.
  • Use TEXTJOIN when possible: It is less prone to errors and results in much cleaner, easier-to-read formulas.

By mastering the use of CHAR(10) alongside Excel's merging functions, you can easily clean up datasets, design better-looking dashboards, and prepare data for seamless imports into other business platforms.

Disclaimer:
The documents and templates provided on this page are for informational and illustrative purposes only. They do not constitute professional, legal, or financial advice, and should not be relied upon as such. Because individual circumstances and regulatory requirements vary, these materials may not be suitable for your specific needs. We recommend consulting with a qualified professional before adapting or using any of these examples for official or commercial purposes.