To add a line break (a new line) inside a concatenated string in Excel, use the CHAR(10) function as the separator between the text pieces you join. For example, with first names in A2 and last names in B2, the formula =A2 & CHAR(10) & B2 puts the first name on one line and the last name on the next. The same works inside CONCATENATE: =CONCATENATE(A2, CHAR(10), B2). You must also enable Wrap Text on the cell, otherwise the line break stays hidden and the text appears on a single line.
What You’ll Need
- Microsoft Excel (any version from 2010 onward; steps are for Excel 365 on Windows, with Mac differences noted).
- The data you want to join, already typed into worksheet cells.
- A cell where you want the combined result to appear.
Step-by-Step
- Decide which cells contain the text to combine. For this guide, assume you have first names in column A (starting at A2) and last names in column B (starting at B2). Your result will go in column C.
- Click the cell where you want the combined text to appear. For example, click C2.
- Type the formula using the ampersand (&) operator. Enter:
=A2 & CHAR(10) & B2. Press Enter. The cell will show the text with an invisible line break between the two values (you may not see it yet because Wrap Text is off). - Alternatively, use the CONCATENATE function. In C2, type:
=CONCATENATE(A2, CHAR(10), B2). Press Enter. Both formulas produce the same result. - Enable Wrap Text on the result cell. Select C2, then go to the Home tab, and in the Alignment group, click Wrap Text. The line break now shows as a new line inside the cell. If you have multiple result cells, select the whole range (e.g., C2:C10) before clicking Wrap Text.
- Adjust row height if needed. If the row height doesn’t auto-expand, go to the Home tab, in the Cells group, click Format > AutoFit Row Height. Or manually drag the row boundary.
- For more than two pieces, add CHAR(10) between each. Example:
=A2 & CHAR(10) & B2 & CHAR(10) & C2joins three cells with line breaks.
Common Mistakes
- Forgetting to turn on Wrap Text. Without it, the line break is invisible and the text appears on one line (though the break is still there).
- Using CHAR(13) instead of CHAR(10). CHAR(13) is a carriage return, which works on Mac but not on Windows. Use CHAR(10) for a line feed that works in both.
- Using a space or comma instead of CHAR(10). That gives you a normal separator, not a new line.
- Typing a literal line break inside the formula. Pressing Alt+Enter inside the formula bar inserts a real newline, but it’s hard to manage and often breaks the formula. Stick with CHAR(10).
- Not adjusting row height. Even with Wrap Text on, if the row height is fixed, the second line may be hidden.
Tips
- Add extra line breaks. Use
CHAR(10) & CHAR(10)to create a blank line between text blocks. - Combine with other functions. You can nest CHAR(10) inside TEXTJOIN (Excel 2019 and later) like this:
=TEXTJOIN(CHAR(10), TRUE, A2:A5)to join a range with line breaks, skipping empty cells. - Copy and paste to other programs. When you copy a cell with line breaks, the newline carries over into Notepad, Word, or email.
- Use Alt+Enter to manually type a line break. If you only need a one-off, double-click the cell, place the cursor where you want the break, and press Alt+Enter (Windows) or Control+Option+Return (Mac).
- For a comma and space plus line break, use
=A2 & ", " & CHAR(10) & B2to get “John, ” on the first line and “Smith” on the second.
Troubleshooting
- Line break doesn’t show. Check that Wrap Text is enabled on the cell. Also verify the row height isn’t set to a fixed value that clips the text.
- Formula shows as text, not result. Ensure the cell is not formatted as Text. Select the cell, go to the Home tab, and in the Number group, change the format to General, then re-enter the formula (press F2 and Enter).
- Line break shows as a small square or box. This happens when the font doesn’t support the line feed character, or when the cell is in edit mode. Press Enter to exit edit mode and the square disappears.
- On Mac, CHAR(10) doesn’t work. Actually CHAR(10) works on Mac Excel, but if you used CHAR(13) by mistake, replace it with CHAR(10). Also, the keyboard shortcut for manual line break is Control+Option+Return.
- Row height doesn’t auto-fit. Manually set the row height: right-click the row number, choose Row Height, and type a larger number, or use Format > AutoFit Row Height.
Frequently Asked Questions
1. Can I use CONCATENATE with CHAR(10)?
Yes. =CONCATENATE(A2, CHAR(10), B2) works exactly like the ampersand version.
2. Does CHAR(10) work in Excel for the web?
Yes, but you must still enable Wrap Text. The formula works the same in the browser version.
3. How do I add a line break after a comma?
Use =A2 & ", " & CHAR(10) & B2 to get a comma and space, then a new line.
4. Can I use a line break in a formula that also uses IF or VLOOKUP?
Yes, CHAR(10) is just a text character. For example: =IF(A2="", "", A2 & CHAR(10) & B2).
5. Why does my line break disappear when I copy the cell?
If you copy and paste as values, the line break remains. If you paste into a program that collapses whitespace (like some HTML editors), it may appear as a space. Paste into Notepad to see the break.
6. Is there a way to remove line breaks from a cell?
Yes, use the SUBSTITUTE function: =SUBSTITUTE(A2, CHAR(10), " ") replaces each line break with a space.
Related
- Data Entry Role in SAM.gov: What It Really Means
- Matlab Generate Vector of Random Numbers
- How to Add Date in Data Validation Excel
Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.
More in Formulas & functions
- Subtotal and COUNTIF Combined in ExcelYes, you can combine SUBTOTAL and COUNTIF in Excel, but not directly in a single formula. The standard…
- Excel INDIRECT: Reference Cells on Another SheetYes. In Excel for Microsoft 365, INDIRECT can turn a text reference into a reference to a cell…
- Excel Data Validation If-Then Lists: How They WorkYes. In Excel for Microsoft 365 on Windows, an if-then list is usually a dependent dropdown: the choice…
- Excel Sort Dates by Quarter: Methods and TipsYes. In Excel for Microsoft 365 on Windows, add a helper column that calculates each date’s quarter, then…
- How to Use CONCAT in Excel to Join TextTo join text in Excel, enter a formula such as =CONCAT(A2," ",B2) in an empty cell, replacing A2…
- Excel Formula to Split Text by Delimiter: How It WorksIn Microsoft 365 for Windows, split text with =TEXTSPLIT(A2,","), replacing A2 with the cell that contains your text…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.