Skip to main content

Quickly remove spaces before / after text or remove extra spaces from text in Excel

Kutools for Excel

Boosts Excel With 300+
Powerful Features

Sometimes, when you operating an Excel file, you may need to delete or remove spaces before or after the text, or delete extra spaces from text. With the Remove Spaces utility of Kutools for Excel, you can quickly do following options:

Remove spaces before text string (remove leading spaces from text string)

Remove spaces after text string (remove trailing spaces from text string)

Remove leading and trailing spaces from text string

Remove extra spaces from text string

Remove all spaces from text string


Click Kutools >> Text >> Remove Spaces. See screenshots:


Remove spaces before text string (remove leading spaces from text string)

You can delete or remove spaces before text string (remove leading spaces from text string) as follows:

1. Select the range that you need to remove the leading spaces.

2. Apply this utility (click Kutools > Text > Remove Spaces).

3. In the Remove Spaces dialog box, please check Leading spaces from Spaces Type. And you can preview the result in the Preview box. See screenshot:

4. Click Ok or Apply. All of the leading spaces before the text string have been removed. See screenshots:

Note: Click Ok button will apply the operation and close the dialog box, but click Apply will only apply the operation without closing the dialog box.


Remove spaces after text string (remove trailing spaces from text string)

Trailing spaces in text string / spaces after text string. Please see:

As you see in the above screenshot, there is a lot of space characters after the text string and before the cursor position. And you can delete or remove such spaces after text string (remove trailing spaces from text string) as shown in the above screenshot as follows:

1. Select the range that you need to remove the trailing spaces.

2. Apply this utility (click Kutools > Text > Remove Spaces).

3. In the Remove Spaces dialog box, please check Trailing spaces from Spaces Type. See screenshot:

4. Click Ok or Apply. All of the trailing spaces after the text string have been removed. See screenshots:


Remove leading and trailing spaces from text string

If you want to remove or delete both the leading spaces and trailing spaces from text string, you can get it done as follows:

1. Select the range that you need to remove both the leading and trailing spaces.

2. Apply this utility (click Kutools > Text > Remove Spaces).

3. In the Remove Spaces dialog box, please check Leading & Trailing spaces from Spaces Type. See screenshot:

4. Click Ok or Apply. All of the leading and trailing spaces within the text strings have been removed. See screenshots:


Remove extra spaces from text string

With this function, you can quickly remove extra spaces between the texts as well.

1. Select the range that you need to remove extra spaces from text.

2. Go to the Remove Spaces dialog box by clicking Kutools > Text > Remove Spaces.

3. Select All excess spaces from Spaces Type, and you can preview the result in the Preview box. See screenshot:

4. Click Ok or Apply. All of the excess spaces between the text values have been removed. see screenshots:


Remove all spaces from text string

Supposing you want to remove all of the spaces between the text values, the following steps can help you quickly deal with it.

1. Highlight the range that you want to remove all spaces fro text.

2. Go to the Remove Spaces dialog box by clicking Kutools > Text > Remove Spaces.

3. Select All spaces from Spaces Type, and you can preview the result in the Preview box. See screenshot:

4. Click Ok or Apply. All of the spaces between the text values have been removed. see screenshots:


Notes:

1. This utility supports Undo, and the undo is only one level.

2.  Share this feature to your friend or social media button: If you like this feature and want to share it to your friends or other social media, please click this button in the Remove Spaces dialog box. See screenshot:



Productivity Tools Recommended
The following tools can greatly save your time and money, which one is right for you?
Office Tab: Using handy tabs in your Office, as the way of Chrome, Firefox and New Internet Explorer.
Kutools for Excel: More than 300 Advanced Functions for Excel 2021, 2019, 2016, 2013, 2010, 2007 and Office 365.

Kutools for Excel

The functionality described above is just one of 300 powerful functions of Kutools for Excel.

Designed for Excel(Office) 2021, 2019, 2016, 2013, 2010, 2007 and Office 365. Free download and use for 30 days.

Screen shot of Kutools for Excel

btn read more      btn download     btn purchase

Comments (1)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Trying to remove spaces in text like this 11 660 749,29. Nothing happens(
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations