Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Excel Formula to Go to Next Line: How to Insert Line Breaks

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To insert a line break within a single Excel cell (so text appears on the next line), you use the CHAR(10) function in a formula, combined with concatenation, and ensure the cell is formatted to wrap text. No special add-ins or permissions are required—just Excel installed and access to the cell you want to edit.

What You'll Need

  • Microsoft Excel (any recent version: Microsoft 365, Excel 2021, Excel 2019, or Excel 2016)
  • A cell containing text you want to split across multiple lines
  • Access to the formula bar to edit formulas
  • Optional: A reference to another cell containing part of the text

Step-by-Step

  1. Open your Excel workbook and identify the cell where you want the line break to appear (e.g., cell A1).
  2. Decide how to build the text. You can either:
    • Type literal text directly into the formula, or
    • Reference other cells (e.g., A2 and A3) to combine their contents with a line break in between.
  3. Enter the formula in the target cell. For example, to combine text from A2 and A3 with a line break:

    =A2 & CHAR(10) & A3

    Or, to insert a static break between two phrases:

    ="First line" & CHAR(10) & "Second line"

  4. Press Enter to apply the formula. At this point, the line break may not yet be visible.
  5. Enable text wrapping to make the line break visible:
    • Select the cell (or range) containing the formula.
    • Go to the Home tab on the ribbon.
    • Click the Wrap Text button in the Alignment group.
  6. Adjust row height if needed:
    • Double-click the boundary between row numbers (e.g., between row 1 and 2) to auto-fit the height, or
    • Drag the row boundary manually to expand it until all lines are fully visible.
  7. Verify the result. The text in the cell should now display on two separate lines, with the break appearing exactly where you inserted CHAR(10).

Common Mistakes

  • Forgetting to wrap text: Without enabling Wrap Text, Excel will display only the first line and may show a square symbol or nothing at all, even though the line break exists in the formula result.
  • Using CHAR(13) instead of CHAR(10): CHAR(13) is a carriage return, and while CHAR(13)&CHAR(10) works on Windows, using only CHAR(13) may not produce a visible break in Excel. Stick with CHAR(10) for reliable line breaks across platforms.
  • Typing \n or pressing Enter inside the formula bar: Typing \n literally just inserts those two characters—it’s not interpreted as a line break. Pressing Alt+Enter inside the cell (not the formula bar) inserts a break, but that’s manual entry, not a formula-based solution.
  • Not referencing the correct cells: If using cell references, ensure the cell addresses in the formula match your data layout. A typo like A2 & CHAR(10) & B3 instead of A2 & CHAR(10) & A3 will pull unrelated data.

Tips

  • Use CHAR(10) for Windows-compatible line breaks. Excel on Windows treats CHAR(10) as the standard line feed. On Mac, CHAR(13) is more common, but CHAR(10) still works in most modern Excel versions.
  • Combine multiple breaks for longer lists: =A1 & CHAR(10) & A2 & CHAR(10) & A3 creates three lines.
  • Use TEXTJOIN for dynamic lists (Excel 2016 and later): =TEXTJOIN(CHAR(10), TRUE, A1:A5) joins all non-empty cells in A1:A5 with line breaks—ideal for variable-length data.
  • Format the cell font to improve readability: monospace fonts like Consolas or Courier New make line breaks easier to scan visually.
  • Lock cells before sharing if the formula should remain intact: right-click the cell > Format Cells > Protection tab > check Locked, then protect the sheet (Review > Protect Sheet).

Troubleshooting

If your line break isn’t appearing as expected, follow these checks:

  1. Is Wrap Text enabled? This is the most frequent cause. Re-select the cell and toggle Home > Wrap Text on (or off and back on).
  2. Is the row height too small? Even with wrapping, if the row is compressed, only part of the text shows. Double-click the row boundary to auto-fit, or expand it manually.
  3. Is the formula actually returning text? If the cell shows #VALUE! or #NAME?, there’s a syntax error (e.g., missing quotes around text strings, incorrect function name). Review the formula in the formula bar.
  4. Are you trying to break lines in a header/footer? Excel headers and footers do not support CHAR(10) line breaks. Use the header/footer editor and press Alt+Enter instead.
  5. Is the cell set to merge? Merged cells can distort text layout and hide line breaks. Unmerge the cell (Home > Merge & Center > Unmerge Cells) if applicable.
  6. Is Excel in compatibility mode? If the workbook was saved in an older format (e.g., .xls), some newer functions may behave differently. Save as .xlsx and reopen.

Frequently Asked Questions

Can I insert a line break without using a formula?

Yes. Double-click the cell to enter edit mode, then press Alt+Enter (Windows) or Control+Option+Return (Mac) at the point where you want the break. This inserts a literal line break in the cell contents, but it’s static—not recalculated like a formula-based break.

Does CHAR(10) work in Excel Online?

Yes. Excel in the browser supports CHAR(10) and text wrapping. However, line breaks in formulas may render slightly differently depending on the browser and screen size—always verify the output by viewing the actual cell.

Can I use line breaks in cell comments or notes?

No. Cell comments (and Microsoft Notes in Excel 365) do not support CHAR(10) or formula-based line breaks. To add multi-line text, type directly into the comment box and use Alt+Enter while editing the comment.

Why does my line break disappear after copying the cell?

When pasting, Excel may paste only values and drop formatting—including wrap text. After pasting, right-click the destination > Paste Options > choose Values (or All if preserving formatting), then re-enable Wrap Text on the new cell.

Can I make line breaks automatically based on cell width (like word wrap)?

No—Excel’s Wrap Text only breaks lines at space characters when the text exceeds column width. It does not insert hard line breaks. To force breaks at specific points, you must use CHAR(10) or manual entry (Alt+Enter).

How do I remove all line breaks from a column of data?

Use the SUBSTITUTE function: =SUBSTITUTE(A1, CHAR(10), ""). This replaces every line feed with nothing, joining the lines into one. Paste the result as values if you want to overwrite the original.