Method A: Remove all extra spaces from strings with the TRIM function (2 steps) Remove extra spaces from strings 1. Select a cell next to the cell you want to remove extra spaces from string, type this formula =TRIM(B2) B2 is the cell you want to remove spaces from, See screenshot:...
TheTRIM function in Excelis used to remove leading and trailing spaces from a text string. It is useful for cleaning up data where extra spaces may have been inadvertently included. For example, if a cell contains the text "Data", the TRIM function will remove the leading and trailing space...
In Excel, you can remove extra spaces between words with TRIM. Please do as follows: Step 1. Type formula =TRIM(A1) in cell B1 which is adjacent to cell A1, see screenshot:Step 2. Press Enter key and select B1, then drag the fill handle over the range of cells that you want to...
Removing those cells one by one will surely cost a lot of time especially when there are many cells that contain additional spaces. Therefore, you can use the methods below to remove spaces. Method 1: Find and Replace In this method, we will show you to use the “Find and Replace” fea...
Using formula to remove all spaces You may need to delete all blanks, like in a formula chain. To do this, you can create a helper column and enter the formula:=SUBSTITUTE(A1," ","") HereA1is the first cell of the column with numbers or words where all spaces must be deleted. ...
#2 - Remove Non-Breaking Leading Spaces in Excel Cell It is very easy to remove normal leading spaces in the Excel cell. However, the TRIM function goes wrong in the case of non-breaking leading spaces. For example, look at the below image. ...
1.1 – Using the TRIM Function to Remove All Extra Spaces The TRIM functionremoves additional spaces from a text value. Steps: In cellD5, enter the following formula and pressENTER: =TRIM(C5) The extra spaces are removed. 1.2 – Combining the TRIM, MID, FIND & LEN Functions to Remove ...
5. Press Enter:After selecting the cell, press the Enter key. The TRIM function will process the text in the chosen cell and remove any leading or trailing spaces. 3. Removing Trailing Spaces with SUBSTITUTE Function in Excel If you're aiming for a customizable way to eliminate trailing spac...
In this formula, multiple spaces act as the link delimiter. The “TRUE”value of theignore_emptyargument will ignore all the empty values. ThisTEXTJOINfunction will joinC4toC6cell values using the given delimiter. How to Remove Spaces in Excel?
For example, to remove spaces in cell A1, you use this formula: =TRIM(A1) And the following screenshot shows the result: Yep, it's that simple! Please note that the TRIM function was designed to remove only the space character, which has value 32 in the7-bit ASCIIcode system. If in...