We can easily add a line break with a formula using the concatenation operator (&) along with the CHAR function in excel. This post will provide a step-by-step guide on how to use the function together with the operator to add a line break with formula in excel.
Figure 1: How to add a line break with a formula
General syntax of the formula
= “text” &CHAR(10) & “text)
Understanding the formula
- To fully understand how this formula works, it is important that we focus on the example in the above figure.
- The formula pieces together the text in cells B4, C4 and D4 using the concatenation operator (&).
- Between each piece, we have the CHAR function which appears with an argument 13. Note that the character code for line break will vary based on the platform. Check the operating system you are using to know the character code to use.
- For this formula to work perfectly, we need to have the text wrap enabled for all the cells that contain line breaks.
Instant Connection to an Expert through our Excelchat Service
Most of the time, the problem you will need to solve will be more complex than a simple application of a formula or function. If you want to save hours of research and frustration, try our live Excelchat service! Our Excel Experts are available 24/7 to answer any Excel question you may have. We guarantee a connection within 30 seconds and a customized solution within 20 minutes.