Remove extra spaces in Excel

If extra spaces in your Excel worksheet don't let process your data correctly, use the Text Toolkit add-in. It will help you remove leading and trailing spaces or get rid of excess blanks between words. Here you will learn how to remove spaces in Excel 2016 - 2007.

Before you start

We care about your data. The add-in will back up your file if you select the corresponding option.

How to trim spaces in the range

To run the needed tool, click the Trim Spaces icon in the Text group on the Ablebits Data tab:
Remove spaces in Excel.

Then simply pick the needed options:
How to trim spaces in Excel.

  1. Select the range where you want to remove extra spaces in your Excel worksheet.
  2. If you want to highlight the whole table quickly, click the Expand selection icon.
  3. Choose the option or a combination of options that suits you best:
    • If you pick Trim leading/trailing spaces, the spaces before and after cell values will be deleted.
    • By ticking Trim spaces between words to 1, you'll have extra spaces between words within a cell removed.
    • The Trim ' ' option means that non-breaking spaces that look like   in your worksheet will be deleted from the selected range.
    • Tip. You can run any of these options right away by clicking the down arrow below the add-in's icon and picking the necessary option from the drop-down menu:
      Trim spaces directly from the Excel ribbon.
  4. We always recommend selecting the Back up the worksheet option to keep your original table intact.
  5. Click the Trim button to remove all extra spaces in one click.

Ask a question (posted publicly)

If you have any questions or issues with this add-in, please feel free to post your concerns in the comments area. As soon as we answer, a notification message will be sent to your e-mail. If you do not want to share your thoughts in public, please contact us at
Privacy policy Terms of use Contact us

Microsoft and the Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.