Method 2 – Use the REPT Function to Add Multiple Spaces in Excel The REPT functionrepeats a text. Here’s its basic use. We will preserve the employee’s name and department in one cell. Use the following formula in the target cell, hit Enter, and apply AutoFill to fill in the colum...
Enter the following formula in an empty cell (A16). =TRIM(A5) The TRIM function will remove extra blank spaces from A5. Press ENTER and no blank spaces will be displayed in A16. Drag A16 to apply the formula to all other cells in column A. Read More: How to Remove Space Before Tex...
column for the trimmed values. consider an example that contains different combinations of leading, trailing, and spaces in-between. to trim the extra spaces for the values, enter the function=trim(cell_number)in the destination cell or the formula bar. here, cell_number denotes the place of...
To deal with these unwanted space problems, we have a built-in function called TRIM in Excel, which can remove all the unwanted spaces in the Excel cells. The syntax is very simple. We need to select the required cell to be trimmed. The TRIM function removes all the spaces except the s...
In this case, Cell B2 is the cell you want to remove all excess spaces.Then drag fill handle over the cells you want to apply this formula.Note: The TRIM function will remove all extra spaces including leading space, trailing spaces and the extra spaces between words. If you want to rem...
Let's say your data are in A1:A100. Enter the following formula in B1: =TRIM(SUBSTITUTE(A1,CHAR(160),"")) Fill down to B100. Column B will now contain the strings without trailing spaces. If you wish, you can copy column B and paste as values, to remove th...
Remove all spaces by SUBSTITUTE function If you want to remove all spaces but preserve the original data, you can use theSUBSTITUTEfunction to obtain the data without any spaces in a new column. Step 1: Select a cell and use SUBSTITUTE function ...
How to remove all spaces in Excel In some situations, you may want to remove absolutely all white spaces in a cell, including single spaces between words or numbers. For example, when you have imported a numeric column where spaces are used as thousands separators, which makes it easier to...
1. Select Your Cell Range:Choose the range of cells containing data with trailing spaces that you want to clean up. 2. Insert the TRIM Function:Click on an empty cell where you want the cleaned data to appear. This can be in the same column as your original data or a different one....
Once done, pick the first cell in the Helper column, pressShift+F10, and paste the same by pressingCTRL+V. Remove the Helper column, and you'd have removed all extra spaces. RELATED:How to Use the TRIM Function in Excel Using the Trim Spaces Tool ...