Extra Blank Lines in Some Cells

Written by Allen Wyatt (last updated February 3, 2024)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021


1

Ray notes that when Excel displays text information on the screen as wrapped text with cell height adjusted automatically to the amount of text, it seems to randomly leave an extra blank line at the bottom of some cells. Adjusting column width can make the blank line disappear. Why does that blank line occur, and how can it be avoided?

There are two possible reasons for the blank line. Let's deal with the obvious one that can be easily fixed: There may be an invisible character (such as a space or two) at the end of the information in the cell. You can check this by editing the cell contents, placing the insertion point at the end of those contents, and pressing the Backspace key however many times are necessary. If those invisible characters are removed, then that should get rid of the unwanted blank line.

The other possible reason is trickier. If you see a blank line and there are no invisible characters, then the line could be caused by Excel's internal calculations relative to text wrapping. How Excel does the calculation is not public, nor is it adjustable. You can, however, affect it by simply changing some things that it obviously takes into account. For instance, you could change column width, typeface, or font size. Less obvious, though, is that you can change things such as vertical alignment of the cell contents or size of cell margins.

Change any of these, and you'll see a change in how the wrapping occurs. Don't be surprised, however, if a change "fixes" one cell, but causes a blank-line issue with another cell. The only way to make sure there are no extra lines is to turn off text wrapping and, instead, manually adjust row height. That way, there are no internal calculations taking place that could affect the height.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (11024) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Allowing Passive Voice in Writing

When you have Word do grammar checking on your document, it typically marks everything it considers wrong with the way ...

Discover More

Using the CONCATENATE Worksheet Function

The process of combining string (text) values to make a new string is called concatenation. Excel provides the ...

Discover More

Inserting the Date and Time

Inserting a date and time in your document is a snap using the tools provided in Word. Just pick the command, then ...

Discover More

Save Time and Supercharge Excel! Automate virtually any routine task and save yourself hours, days, maybe even weeks. Then, learn how to make Excel do things you thought were simply impossible! Mastering advanced Excel macros has never been easier. Check out Excel 2010 VBA and Macros today!

More ExcelTips (ribbon)

Professional Looking Fractions

Professional typesetting has, in many ways, spoiled us. One way this is evident is in the preference we show for making ...

Discover More

Replacing Cell Formats

Need to replace the formats applied to some cells with a different format? You can use Excel's Find and Replace tool to ...

Discover More

Creating 3-D Formatting for a Cell

The formatting capabilities provided by Excel are quite diverse. This tip examines how you can use those capabilities to ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is two more than 9?

2024-02-05 10:51:47

Mechie

I too agree that this action (occasional extra blank rows) appears to be a result of what Excel (internally) thinks the text wrapping is, vs what it actually is on your screen. I've sometimes wondered if one would see this effect if a font with a fixed width character size was used. Can't say that I've ever tested that theory though. Perhaps this action is being triggered by font substitutions, screen font approximations vs actual font... something along those lines.

My own observation over the years is that this typically happens when the last line of text is almost a full row. That is, the last line is about 80% or more of the column width. If it is less, then the additional blank row typically doesn't occur. If one shortens the last row of text, you will hit a point where the blank row below disappears. Supports the idea that Excel's internal calculation is not aligned with what one sees on the screen.


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.