With the Text Toolkit for Excel, you can easily trim excess spaces and leading zeros in the selected cells. In this manual, find out how to use the Trim Spaces utility.
-
To run the tool in Excel, go to the Home tab and click the Text Toolkit icon:
-
Select Trim Spaces:
-
You will see the Trim Spaces pane. Select your options and click the Trim button:
- Select the range of cells where you want to trim unwanted spaces or zeros.
- Tick this box to get rid of all zeros before cell values in the selected range.
- Pick Trim leading/trailing spaces to remove excess spaces before or after cell values.
- Select Trim spaces between words to 1 in case your text cells may have extra spaces between words and you want to delete these spaces.
- Choose this option to remove non-breaking spaces.
- If there is a check mark next to Don't change cells with formulas, the add-in won't process cells that contain formulas.
- With the Create a backup copy option selected, the Restore button is added and a hidden copy of your sheet will be saved. After the tool has processed your data, the Restore button gets enabled. You can click it and return to the previous version of the processed sheet if necessary.
Tip. To see available backup copies, right-click any sheet tab in your Excel workbook and choose "Unhide".
Note. You can delete hidden backups with the Remove all backup sheets option in the More menu. To see it, click the three dots in the lower-right corner of the Text Toolkit pane: