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.
Recommended Productivity Tools
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:
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:
4. Then click OK and close the dialog box, all of the spaces between the values are deleted. See screenshot:
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.|
If you have installed Kutools for Excel, you can remove the spaces as follows:
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. For more detailed information about Remove Spaces, please visit here.
Recommended Productivity Tools
Bring handy tabs to Excel and other Office software, just like Chrome, Firefox and new Internet Explorer.
Amazing! Increase your productivity in 5 minutes. Don't need any special skills, save two hours every day!
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...
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
To post as a guest, your comment is unpublished.· 1 years agoThanks a lot for helping us!!!!!!!!! :-)
To post as a guest, your comment is unpublished.· 1 years agoTHANKS A LOT FOR HELPING US!!!!!!!!!!!!!!
To post as a guest, your comment is unpublished.· 2 years agoThanks a lot for sharing this Tool :-)
To post as a guest, your comment is unpublished.· 2 years agoThank You. Your help has reduced my effort a lot.
To post as a guest, your comment is unpublished.· 2 years agoNeither of these suggestions work... except, I'm sure, the Kutools solution so conveniently suggested. What an awesome blog. Thanks.