You can remove leading spaces, trailing spaces, extra spaces or all spaces from selected cells in Excel easily with one click without writing any VBA code. Dose for Excel‘s Trim Spaces utility can implement this with one click on huge number of cells.
Click DOSE » Text » Trim Spaces

Remove leading spaces
- Select range of cells, and check Leading (_A) option to remove leading spaces from selected cells and keep the remaining spaces.
- Then click Apply. You will see the result as shown in the below screenshot.

Remove trailing spaces
- Select range of cells, and check Trailing (A_) option to remove trailing spaces from selected cells and keep the remaining spaces.
- Then click Apply. You will see the result as shown in the below screenshot.

Remove extra spaces
- Select range of cells, and check Extra (__A___B____) option to remove extra spaces from selected cells and keep the remaining spaces.
- Then click Apply. You will see the result as shown in the below screenshot.

Remove all spaces
- Select range of cells, and check All option to remove all spaces from selected cells.
- Then click Apply. You will see the result as shown in the below screenshot.

Demo
More Features:
How To Reverse Text Or Words In Excel
Reverse Text String Order In Excel Reverse any text the way you want, reverse all…
Excel Split
In Excel, split the first and last word, or divide them by a delimiter or…
Excel Filter By Selected Value
Excel Fast Filter To not wasting time by navigating to Data tab and click on…
Excel Random Generator
Generate Random Data (Numbers, Date, String, etc…) Sometimes you want to generate some random data…
Excel Import Files Names
Import Files Names From Your Folder Into Excel Import your directory or folder files names…
Dose For Excel Settings
Edit Settings of Dose for Excel Using Dose for Excel settings, you can configure what…