Forum Discussion
Help! Removing a Space in Excel
If this is in a single column, for example in D1:D12000:
In an empty column, enter the following formula in the cell in row 1:
=TRIM(D1:D12000)
The formula result will spill down to row 12000.
Select the result, copy it, then paste as values over D1:D12000.
You can now clear the column with the formulas.
If the data are in multiple columns, you might use a macro (in the desktop version of Excel).
Let me know if you need that.
- Harun24HRAug 09, 2025Bronze Contributor
TRIM() will remove only leading & trailing spaces but OP wants to remove from middle of sentence. So, TRIM() shouldn't work here.
- Riny_van_EekelenAug 09, 2025Platinum Contributor
"TRIM() will remove only leading & trailing spaces but OP wants to remove from middle of sentence. So, TRIM() shouldn't work here."
Not true!
- Harun24HRAug 09, 2025Bronze Contributor
Oh yes! May be TRIM() signature has been updated. Thanks for pointing it out. However, OP has some other character in his string.