Skip to main content

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

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates  |  Delete Blank Rows  |  Combine Columns or Cells without Losing Data  |  Round without Formula ...
Super VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup...
Adv. Drop-down List: Easy Drop Down List  |  Dependent Drop Down List  |  Multi-select Drop Down List...
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  Compare Columns to Select Same & Different Cells ...
Featured Features: Grid Focus  |  Design View  |  Big Formula Bar  |  Workbook & Sheet Manager | Resource Library (Auto Text)  |  Date Picker  |  Combine Worksheets  |  Encrypt/Decrypt Cells  |  Send Emails by List  |  Super Filter  |  Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters ...)  |  50+ Chart Types (Gantt Chart ...)  |  40+ Practical Formulas (Calculate age based on birthday ...)  |  19 Insertion Tools (Insert QR Code, Insert Picture from Path ...)  |  12 Conversion Tools (Numbers to Words, Currency Conversion ...)  |  7 Merge & Split Tools (Advanced Combine Rows, Split Excel Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...

Description


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, Edge and Firefox.
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations