How to combine cells with a line break between them
✓ Verified in LibreOffice 25.8.7.3 ✓ Verified in Google Sheets (2026-08-30)Join text from several cells into one cell with each piece on its own line (e.g. an address block).
The formula
| App | Formula | Notes |
|---|---|---|
| Excel | =A2&CHAR(10)&B2 | CHAR(10) is a line feed. Turn on Wrap Text to see the breaks. |
| Google Sheets | =A2&CHAR(10)&B2 | Same; enable wrapping. |
| LibreOffice Calc | =A2&CHAR(10)&B2 | Same. |
How it works
CHAR(10) inserts a newline character; & glues the pieces together. The break only shows visually when the cell has Wrap Text enabled, otherwise it looks like one line.
Verified, not just documented
We ran =A2&CHAR(10)&B2 in LibreOffice 25.8.7.3 (headless, with forced recalculation) and it returned line1
line2 — exactly the expected result. We then ran the same formulas in Google Sheets, executed 2026-08-30: a formula-only workbook goes into Google Drive, which converts it to a Sheet and recalculates every formula with Google’s own engine, and comes back out as .xlsx carrying the values Google computed. It returned line1
line2 for the worked example, the same value LibreOffice produced. Both engines’ numbers on this page are executed results. The Excel formula follows Microsoft’s official documented syntax — we do not run Excel.
Functions used
CHAR — see full Excel, Google Sheets & LibreOffice compatibility for each.