How to Stop Microsoft Excel from Automatically Adding Line Breaks

The Wrap Text Confusion

Microsoft Excel is designed to keep your spreadsheets looking neat. One of the ways it attempts to do this is through a feature called “Wrap Text.” If you type a long sentence into a narrow cell and press Enter, Excel will often automatically increase the height of the entire row and insert line breaks into your text, forcing the sentence to stack vertically so it fits within the horizontal constraints of the column. While this is helpful for creating readable paragraphs in a report, it is incredibly annoying if you are building a dense data table where you explicitly want all rows to remain exactly the same height, regardless of how much text spills over the edge.

How to Disable Automatic Text Wrapping

You can turn off this automatic formatting behavior by adjusting the cell alignment settings, forcing Excel to let your long text simply bleed across the adjacent empty cells instead of stacking vertically.

1. Highlight the cells, columns, or rows where you are experiencing the unwanted line breaks. (To apply this to the entire sheet, click the small triangle in the extreme top-left corner where the row numbers and column letters meet).

2. Right-click anywhere in the highlighted area and select Format Cells….

3. In the Format Cells window, click on the Alignment tab at the top.

4. Look under the “Text control” section.

5. You will see a checkbox labelled Wrap text. If the box has a checkmark or a solid square in it, click the box until it is completely empty.

6. Click OK.

With this setting disabled, your long text strings will remain on a single, continuous line. If the cell to the right is empty, the text will visually spill over it. If the cell to the right contains data, the long text will visually truncate at the column border, but the row height will remain perfectly uniform.

Using the Ribbon Shortcut

If you only need to fix a few cells quickly, you don’t need to open the full Format Cells dialog box.

Highlight the offending cells, go to the Home tab on the main Excel ribbon, look in the Alignment group, and click the Wrap Text button (the icon looks like the letters “ab” with a curved arrow under them). If the button is highlighted grey, the feature is active. Clicking it will instantly turn it off and collapse your row back to its standard height.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.