Getting Rid of Trailing Spaces in Table Cells

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


1

Randy works with tables regularly in his documents. It is not uncommon for cells in a table to have trailing spaces. Randy wonders if there is a way to find and delete any trailing spaces in a table.

Perhaps the easiest way to get rid of trailing spaces in table cells is to follow these steps:

  1. Select the cells within the table that you want to affect.
  2. Press Ctrl+E. Word centers all the text in the table cells and, at the same time, removes any trailing spaces.
  3. Press Ctrl+L. Word now aligns all your text at the left of the cell.

This process sounds simple, but there are a couple of caveats to keep in mind. First of all, you cannot select the entire table in step 1. If you do so, then Ctrl+E (step 2) centers the table, not the contents of the cells within the table. If you want to get rid of trailing spaces in all cells, then make sure you select just the cells and not the end-of-row markers that appear to the right of the rightmost column in the table.

Another caveat is to understand that if you are using styles for the text within the table, these steps can mess up those styles because you are applying explicit formatting (centering and then left justifying) over the top of whatever the style may specify for the text. So, if you are using styles, you may want to press Ctrl+Q instead of Ctrl+L in step 3. This returns the paragraph formatting within the table to whatever is appropriate for the styles that are applied to the text in the table.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (9994) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, Word 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

Using the Discussion Pane

Tips for using the Discussion pane during a Discussion session.

Discover More

Determining Picture Size in a Macro

When processing a document using a macro, you may need for your macro to figure out the sizes of the images in your ...

Discover More

Editing an AutoText Entry

Once you've created an AutoText entry, you may believe that it is "set in stone" and cannot be changed. Not so! You can ...

Discover More

The First and Last Word on Word! Bestselling For Dummies author Dan Gookin puts his usual fun and friendly candor back to work to show you how to navigate Word 2013. Spend more time working and less time trying to figure it all out! Check out Word 2013 For Dummies today!

More WordTips (ribbon)

Turning Off Automatic Resizing of Tables by Default

You can format your tables to either keep cell sizes static or to automatically resize based on cell contents. By ...

Discover More

Borders Disappear on Shaded Table Rows

When creating a table, it is possible that adding row or cell shading can affect how cell borders are displayed. This ...

Discover More

Table Borders Won't Print

Print a table and you may be surprised if it has no borders. That could be because you actually have the borders turned ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, 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 7?

2024-01-13 10:51:19

Ann Olmsted

Thank you! I've been looking for a simple way to remove those trailing spaces quickly for a very long time.


This Site

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

Videos
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, 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.