Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Remove Duplicates Example in Excel
  • How to Create Column Chart in Excel
  • How to create Checklist in Excel
  • How To Load Analysis ToolPak in Excel
  • How to combine 2 or more chart types in a single chart in Excel

References

  • How to use Excel MATCH Function
  • How to use Excel OFFSET function
  • How to use Excel ROW Function
  • How to use Excel ROWS Function
  • VLOOKUP function: Description, Usage, Syntax, Examples and Explanation

Data Validations

  • Excel Data validation with conditional list
  • Excel Data validation must contain specific text
  • Excel Data validation number multiple 100
  • Excel Data validation must not contain
  • Excel Data validation exists in list

How to add a line break with a formula while joining text strings in Excel

by

To add a line break with a formula, you can use the concatenation operator (&) along with the CHAR function.

Note: make sure you have text wrap enabled on cells that contain line breaks.

Formula

="text"&CHAR(10)&"text"

Explanation

In the example shown the formula in E4 is:

=B4&CHAR(10)&C4&CHAR(10)&D4

How this formula works

This formula “glues together” the pieces of text that appear in B4, C4, and D4 using the ampersand (&) which is the concatenation operator in Excel.

Worked Example:   How to count line breaks in cell in Excel worksheet

In between each piece of text, the CHAR function appears with an argument of 13. The character code for a line break in Excel varies depending on the platform. On Windows, the  code is 10 and on a Mac it’s 13.

Worked Example:   Add line break based on OS in Excel

The result of the concatenation is text with line breaks:

Worked Example:   How to find nth occurrence of character in Excel

Traci Brown¬
1301 Robinson Court¬
Saginaw, MI 48607

To know more on how to join multiple text strings in Excel you can visit: Join Text Strings Using Concatenate or ‘& Operator’ .

Post navigation

Previous Post:

How to abbreviate names or words in Excel

Next Post:

Add line break based on OS in Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • How to use Excel TRUE Function
  • Not Equal To ‘<>‘ operator in Excel
  • How to use Excel FALSE Function
  • IF function: Description, Usage, Syntax, Examples and Explanation
  • How to use IFS function in Excel

Date Time

  • How to calculate project start date based on end date in Excel
  • Get days, hours, and minutes between dates in Excel
  • Count dates in current month in Excel
  • Convert date to text in Excel
  • Get work hours between dates in Excel

Grouping

  • Calculate conditional mode with criteria in Excel
  • Group arbitrary text values in Excel
  • Running count group by n size in Excel
  • How to randomly assign data to groups in Excel
  • Map inputs to arbitrary values in Excel

General

  • How to choose page/paper size in Excel before Printing
  • How to get random value from list or table in Excel
  • Subtotal by color in Excel
  • Count cells less than in Excel
  • Mark Workbook as Final in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning