Log in  \/ 
x
or
x
x
Register  \/ 
x

or

Excel Formula: Combine cells with line break

In Excel, sometimes, you may want to combine cells into one cell with line break as below screenshot shown. Here, in this tutorial, it introduces two formulas to solve this task with examples.
doc combine cells with line break 1

Generic formula:

Formula 1

Text_1&CHAR(10)&Text_2&CHAR(10)&…&Text_n

Formula 2

CONCATENATE(Text_1,CHAR(10),Text-2,CHAR(10),…Text_n)

Arguments

Text_1,Text_2, Text_n: the text strings you want to combine into one cell.
CHAR(10): the character code 10 which represents line break in Excel.

How this formula work

For instance, combine cell B2, C2 and D2 into one cell with line break. Using the formula:

=B2&CHAR(10)&C2&CHAR(10)&D2

Or

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

Press Enter key, then select the formula cell, and click Home > Wrap Text, then the cell B2, C2 and D2 are combined into one cell with line breaks.
doc combine cells with line break 2

Explanation

The CONCATENATE function is used to combine multiple values into one cell.

Remarks

In different office systems, the line break punctuation is represented by different character codes. In Windows is the CHAR(10), but in Mac system, is the CHAR(13).

If you want to add line break by OS (Office System), you just need one step before using above formulas.

In a blank cell, cell B1, type this formula

=IF(INFO("system")="mac",CHAR(13),CHAR(10))

doc combine cells with line break 3

This formula will adjust the line break character according to the environment you work.

Then in the cell you want to place the combined result, for instance, cell E4, just type the formula

=B4&B1&C4&B1&D4

Or

=CONCATENATE(B2,B1,C2,B1,D2)

B4, C4 and D4 are the text strings you want to combine, the B1 is the cell containing the IF(INFO) formula.
doc combine cells with line break 4

Sample File

doc sampleClick to download sample file


Relative Formulas

  • Count cells equal to
    With the COUNTIF function, you can count cells that equal to or not contain a specified value.
  • Count cells that equal to x or y
    In some times, you may want to count the number of cells that meet one of two criteria, in this case, you can use the COUNTIF function.
  • Check if cell contains one of things
    Supposing in Excel, there is a list of values in column E, you want to check if the cells in column B contain all of the values in column E, and return TRUE or FALSE.
  • Check if cell contains number
    Sometimes, you may want to check if a cell contains numeric characters. This tutorial provides a formula which will return TRUE if the cell contains number, FALSE if cell does not contain number.

The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

Would you like to complete your daily work quickly and perfectly? Kutools for Excel brings 300 powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) and save 80% time for you.

  • Designed for 1500 work scenarios, helps you solve 80% Excel problems.
  • Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands.
  • Become an Excel expert in 3 minutes. No longer need to remember any painful formulas and VBA codes.
  • 30-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years.
Ribbon of Excel (with Kutools for Excel installed)

Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Firefox, And New Internet Explorer.
Screen Shot of Excel (with Office Tab installed)
Say something here...
symbols left.
You are guest
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.