Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or
0
0
0
s2smodern

How to remove spaces between characters and numbers within cells in Excel?

When you copy some data into Excel, there may be some spaces between characters or numbers, and how can you remove all spaces? This tutorial can introduce some tips for you to remove all spaces in the range of cells.

Remove all spaces between characters in Excel

Remove all spaces with the Replace function

Quickly remove extra spaces, leading spaces or trailing spaces with one click


Quickly remove all spaces (extra spaces, leading spaces or trailing spaces) from cells

The Remove Spaces utility of Kutools for Excel can help you quickly remove all spaces from cells of selected range as below screenshot. Besides, you can also apply the feature to only remove leading spaces, trailing spaces or extra spaces from cells.

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!


Remove all spaces between characters in Excel


1. In a blank cell C2 which is adjacent to the original data cell, enter the formula =Substitute(A2," ",""). See screenshot:

2. Select C2, then drag the fill handle over the range of cells that you want to apply this formula. Then the original contents are extracted to the new column with all spaces between characters removed. See screenshot:

doc remove all spaces 2


Remove all spaces with the Replace function

Sometimes, we want to remove all spaces between character and numbers in a range, we can use Replace function to solve it.

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

2. Click Home > Find & Select > Replace…, the Find and Replace dialog box will pop out.

3. In the Find what box, press the space bar once, don’t input anything in the Replace with box, then click Replace All. There will be a prompt message telling you how many spaces have been removed. See screenshot:

doc remove all spaces 3

4. Then click OK and close the dialog box, all of the spaces between the values are deleted. See screenshot:

doc remove all spaces 4


Quickly remove extra spaces, leading spaces or trailing spaces with one click

There is a flexible way to remove extra spaces, all spaces, leading spaces, trailing spaces or leading and trailing spaces in a range. If you have Kutools for Excel, you can use the Remove Spaces feature to quickly remove any types of spaces in the range with one click.

Kutools for Excel : with more than 120 handy Excel add-ins, free to try with no limitation in 60 days. 

1. Select the range you want to remove spaces.

2. Click Kutools > Text > Remove Spaces. See screenshot:

3. Then a Remove Spaces dialog box will display, choose All spaces from the Spaces Type that you want to remove, and then click Ok, all the spaces between the cell values have been removed at once. See screenshot:

Note: From the Spaces Type, we can see there are many other spaces types that we can quickly remove with this Remove Spaces tool.

Tips:

If you want to split names in cells such as split names into first names and last names, the Split Names utility of Kutools for Excel can help you to easily acheive it. See screenshot:

Also, you can split selected cells by certain characters (such as space, new line, semicolon and so on) into rows or columns as you need with the Split range utility.

Tip.If you want to have a free trial of this utility, please go to download the software freely first, and then go to apply the operation according above steps.


Demo: Remove extra spaces, leading spaces, trailing spaces or all spaces between text strings

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!


Recommended Productivity Tools

Office Tab

gold star1 Bring handy tabs to Excel and other Office software, just like Chrome, Firefox and new Internet Explorer.

Kutools for Excel

gold star1 Amazing! Increase your productivity in 5 minutes. Don't need any special skills, save two hours every day!

gold star1 200 New Features for Excel, Make Excel Much Easy and Powerful:

  • Merge Cell/Rows/Columns without Losing Data.
  • Combine and Consolidate Multiple Sheets and Workbooks.
  • Compare Ranges, Copy Multiple Ranges, Convert Text to Date, Unit and Currency Conversion.
  • Count by Colors, Paging Subtotals, Advanced Sort and Super Filter,
  • More Select/Insert/Delete/Text/Format/Link/Comment/Workbooks/Worksheets Tools...

Screen shot of Kutools for Excel

btn read more      btn download     btn purchase

Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Stefan · 4 years ago
    Thank you, easy to understand. best on the web
  • To post as a guest, your comment is unpublished.
    Janardhan · 4 years ago
    Very easy to understand. Good to follow.
    • To post as a guest, your comment is unpublished.
      ashutosh · 3 years ago
      bullshit....doesn't work
      • To post as a guest, your comment is unpublished.
        Joel · 2 years ago
        Didnt work for me too, however found the right way. Select and highlight the space you want to get rid of. Copy this space and select the find and replace. Paste this space in find and replace with nothing. I guess it wasnt a space in the first place. Whatever it was you now find it by copying whatever it was. Hope it works for you.
        • To post as a guest, your comment is unpublished.
          Ramesh Kumar P · 1 years ago
          It really worked....I tried may function like Clean, Trim, Substitute, etc
        • To post as a guest, your comment is unpublished.
          Jay · 1 years ago
          THAT WORKED! Thanks man
        • To post as a guest, your comment is unpublished.
          kati · 2 years ago
          thanks soo much. you are a genius!!!!
        • To post as a guest, your comment is unpublished.
          Imran · 2 years ago
          [quote name="Erika"]It worked for me! Thank you![/quote]
          Thank you so much for that. This saved a lot of time
        • To post as a guest, your comment is unpublished.
          Erika · 2 years ago
          It worked for me! Thank you!
  • To post as a guest, your comment is unpublished.
    Muhibullah Afzalzada · 4 years ago
    Thanks a lot, the Replace option worked as a charm... you really saved loads of my time.
  • To post as a guest, your comment is unpublished.
    Muhibullah Afzalzada · 4 years ago
    Thanks a lot, I really needed and the Replace option was a charm.
    • To post as a guest, your comment is unpublished.
      Stephen · 1 years ago
      Thanks a lot for the explanation - saved our dept a lot of work.