Hi Riny van Eekelen
Thank you so much, the formula exactly works as expected.
Reddit
reddit.com › r/excel › is there any way to automatically remove unwanted spaces for text within a cell?
r/excel on Reddit: Is there any way to automatically remove unwanted spaces for text within a cell?
July 20, 2023 -
I copy text from documents into Excel and when they come through, there will be anywhere between 2 and 10 spaces between words. Is there anything I can do to get rid of those?
Thanks for the help!
Top answer 1 of 6
7
=TRIM function If you don't want the formula in the cell afterwards, use the trim function, copy the text afterwards, and then use paste special to paste only text without formula
2 of 6
2
I just use find and replace (ctrl+h) . In the find what box I just put a single space, leave the replace with box empty. Then replace all.
How do I add spaces before and after some of the dashes but not the last one? Jan 2, 2023
r/excel 3y ago
Remove blank spaces at front and back. TRIM doesnt work on more than a single space
TRIM trims ALL leading and trailing spaces. Maybe there are different characters in play, html nbsp; for one. This is easy to test in a single cell with a multi space string before and after and then trim it, and do a count of characters with len() More on reddit.com
Is there any way to automatically remove unwanted spaces for text within a cell?
=TRIM function If you don't want the formula in the cell afterwards, use the trim function, copy the text afterwards, and then use paste special to paste only text without formula More on reddit.com
How to remove spaces before numbers
u/Major-Bar388 - Your post was submitted successfully. Once your problem is solved, reply to the answer(s) saying Solution Verified to close the thread. Follow the submission rules -- particularly 1 and 2. To fix the body, click edit. To fix your title, delete and re-post. Include your Excel version and all other relevant information Failing to follow these steps may result in your post being removed without warning. I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns. More on reddit.com
How to remove space after words of the entire column at once?
It might be hard space (char 160). Have you tried removing that? =SUBSTITUTE(A1,CHAR(160),"") EDIT: You could also see wtf that character's code is with this and then you'll know what to use in a substitute: =CODE(RIGHT(A1,1)) More on reddit.com
Excel University
excel-university.com › home › blog › how to remove leading spaces in excel
How to Remove Leading Spaces in Excel - Excel University
January 17, 2023 - This forces the text to flow to the next line at that point. If you want to remove such line breaks, start by selecting all the cells you want to fix. Use Ctrl + F to pull up the Find dialog box. Select the Replace tab, and in the Find what section, type Ctrl + J. This should display a blinking dot. Note that on Mac, you’ll use Ctrl + Option + Return. Leave the Replace with section empty, click Replace All, and you’ll be all set! Removing leading spaces is one great way to clean data in Excel and make your spreadsheets look professional and consistent.
DataCamp
datacamp.com › tutorial › how-to-remove-spaces-in-excel
How to Remove Spaces in Excel: 5 Good Methods | DataCamp
March 4, 2026 - You need to turn the text back into a number to fix this. To do so, you can either multiply by 1 or use this formula: ... This removes spaces and ensures Excel treats the data as numbers. Combine VALUE() and TRIM() to remove spaces before numbers.
Ablebits
ablebits.com › ablebits blog › excel › excel formulas › excel trim function - quick way to remove extra spaces
Excel TRIM function - quick way to remove extra spaces
March 20, 2023 - Select all cells with Trim formulas (B2:B8 in this example), and press Ctrl+C to copy them. Select all cells with the original data (A2:A8), and press Ctrl+Alt+V, then V. It is the paste values shortcut that applies the Paste Special > Values · Press the Enter key. Done! As you have just seen, the Excel TRIM function removed all extra spaces from a column of text data without a hitch.
WPS Office
wps.com › academy › how-to-remove-space-before-text-in-excel-quick-tutorials-1864698
6 Easy Ways to Remove Leading Spaces in Excel [2026] | WPS Office Academy
March 27, 2025 - Method-1 How to use "TRIM Function" to remove spaces in Excel Method-2 How to use the "Find and Replace" tool to remove leading spaces in Excel Method-3: How to use "Data Validation" to remove spaces before data in Excel Method-4: How to use "Trim formula" to remove space before Text Method-5: How to use "Trim formula" to remove space before the number Method-6: How to use "VBA" to remove space before the number The Functionality of Trim and The Find and Delete Method WPS Office - Free Alternative to Microsoft Office to Remove Spaces in Excel FAQs about removing leading spaces in Excel Summary
YouTube
youtube.com › watch
EXCEL Remove Spaces Before and After Text - YouTube
Learn how to quickly remove spaces in Excel cells. Remove leading spaces in Excel and spaces after text, as well as how to remove extra spaces between text.T...
Published May 12, 2021 Views 97K
The Bricks
thebricks.com › home › resources › how to remove space in front of text in excel
How to Remove Space in Front of Text in Excel
April 22, 2025 - It cleans up spaces at the beginning (leading) and end (trailing) of your text string in one go. Let's say your messy data is in column A, starting from cell A2. Step 1: Create a Helper Column In an empty column next to your data (e.g., column B), click into the first cell (B2). This will be our "helper column" where the cleaned-up data will appear. Step 2: Enter the TRIM Formula Type the following formula into cell B2 and press Enter: ... This tells Excel to take the contents of cell A2 and remove all extra spaces.
Microsoft Support
support.microsoft.com › en-us › excel › functions › trim-function
TRIM function | Microsoft Support
Cell The cell reference containing the text from which you want spaces removed. Example 1: =TRIM(" Sales report ") removes spaces at the beginning and end of "Sales report". Example 2: =TRIM(C3) removes spaces at beginning and end of contents of cell C3. Example 3: =TRIM(CLEAN(B5)) combines TRIM and CLEAN functions to remove spaces and clean string. Example 4: Copy the example data in the following table and paste it in cell A1 of a new Excel worksheet.
Ablebits
ablebits.com › ablebits blog › excel › excel formulas › 3 ways to remove spaces between words / numbers in excel cells
3 ways to remove spaces between words / numbers in Excel cells
The easiest way to get rid of excess spaces is using the standard Excel Find & Replace option: Press Ctrl + Space to select all cells in a column. Press Ctrl + H to open the "Find & Replace" dialog box.
Published April 21, 2016 Views 76K