This post will describe two quick ways to remove all space characters between numbers or words in excel. How to remove unwanted spaces from cells in a select range of cells in Excel.
Assuming that you have a list of data with text string and numbers in one cell, and you want to remove all spaces between text character and numbers in those cells. You can use Excel Find & replace or SUBSTITUTE function. This post will guide you how to use those two ways to remove all spaces.
Table of Contents
Remove all spaces using Find and Replace option
The below steps will teach you how to remove all spaces between characters and numbers using the standard Excel Find & Replace option:
Step 1# select the range of cells that you want to remove spaces
Step 2# go to “Home” Tab, then click “Find & Select” -> “Replace…”, then the Find and Replace dialog box will appear. Or press “CTRL+H” shortcut to open the “Find and Replace” dialog box.
Step 3# press the space bar in the Find what text box, and do not input any character in the “replace with” box. Then click Replace All button. Click “OK’ button.
You will see that how many spaces have been removed from the above screenshot.
Step 4# let’s see the last result:
Remove all spaces using SUBSTITUTE function
You may want to remove all space characters between numbers or characters using an excel formula, then you can use the SUBSTITUTE function to create a formula as follows:
=SUBSTITUTE(A1," ", "")
You just need to enter the above formula in another cell, such as: B1, then press Enter.
Then you can select cell B1, then drag the AutoFill Handle down the other cell that you want to apply this formula.
Related Formulas
-
remove non numeric characters from a cell
If you want to remove non numeric characters from a text cell in excel, you can use the array formula:{=TEXTJOIN(“”,TRUE,IFERROR(MID(B1,ROW(INDIRECT(“1:”&LEN(B1))),1)+0,””))}… - Remove Numeric Characters from a Cell
If you want to remove numeric characters from alphanumeric string, you can use the following complex array formula using a combination of the TEXTJOIN function, the MID function, the Row function, and the INDIRECT function.… - Using Find and Replace Tool to replace text
The Find and Replace tool is a very useful tool to replace the text string or characters with new text or character in excel.… - Remove text before the first match of a specific character
If you want to remove all characters that before the first occurrence of the comma character, you can use a formula based on the RIGHT function, the LEN function and the FIND function….. - Replace all characters before the first specific character
If you want to replace characters before the first match of the comma character in a text string in Cell B1.you still need to use the SUBSTITUTE function to replace the old_text with new_text… - Remove text after a specific character
If you want to remove all characters after the first match of the comma character in a text string in Cell B1, you can create an excel formula based on the LEFT function and FIND function….. - How to remove unwanted characters from text string
If you want to remove unwanted or specified characters from a text string, you can create an excel formula based on the SUBSTITUTE function and CHAR function…..
Related Functions
- Excel Substitute function
The Excel SUBSTITUTE function replaces a new text string for an old text string in a text string.The syntax of the SUBSTITUTE function is as below:= SUBSTITUTE (text, old_text, new_text,[instance_num])….
Leave a Reply
You must be logged in to post a comment.