If trim isn’t working for you, why not do a simple find and replace of the “space” character. That may well work for you.

Answer from chrismason1518 on community.spiceworks.com
🌐
DataCamp
datacamp.com › tutorial › how-to-remove-spaces-in-excel
How to Remove Spaces in Excel: 5 Good Methods | DataCamp
March 4, 2026 - Learn how to remove leading, trailing, and extra spaces in Excel using TRIM(), SUBSTITUTE(), and CLEAN() for clearer data, plus tips for accurate spreadsheets.
🌐
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
🌐
Wikihow
wikihow.com › computers and electronics › software › office › spreadsheets › microsoft excel › how to remove spaces between numbers & words in excel
How to Remove Spaces Between Numbers & Words in Excel
September 13, 2024 - This method removes any extra spaces between numbers, words, and other characters. To eliminate leading and trailing spaces, see Using the TRIM Function. This method will not delete extra space at the beginning or end of the value, just spaces between characters.
🌐
ExcelDemy
exceldemy.com › home › excel formulas › how to remove a space after a number in excel (6 easy ways)
How to Remove a Space after a Number in Excel (6 Easy Ways) - ExcelDemy
May 4, 2024 - The product codes contain extra spaces after numbers. ... Insert an additional column: ‘Cleaned Value’. Select cell D5. ... Press Enter. The value of cell C5 is now in D5 without spaces. Drag the Fill Handle tool from cell D5 to D8. We get results like the following image. Read More: How to Remove Space in Excel after Text
🌐
Reddit
reddit.com › r/excel › how to remove spaces before numbers
r/excel on Reddit: How to remove spaces before numbers
November 10, 2024 -

When i copy and paste a table with numbers from an email to excel, there will be spaces before the numbers. Is there an easy formula to remove these spaces (i tried to add an image, but my post was removed)

Edit: thank you all for the support. The following formula solved it

=0+SUBSTITUTE(B2,CHAR(160),"")

Edit 2:

u/semicolonsemicolon & u/Joe3453 deserves credit for recognizing nbsp being the issue.

For curious lurkers: https://en.wikipedia.org/wiki/Non-breaking_space

🌐
Reddit
reddit.com › r/excel › remove a space after a number in cells
r/excel on Reddit: Remove a space after a number in cells
December 18, 2018 -

Hello,

I copy-pasted data from a database into excel and used the "Text to Columns" function to separate the values.

This is an example of a line I copy-pasted into excel: (2, 0, 0, 0, 262, 0, 0, 0). I used the comma delimiter and every value was brought into a different cell. The problem I'm having is that in the first column every number has a space behind it and I want to remove it.

How it looks in excel

I already tried the following methods:

Method 1: I pressed CTRL+F and went into the tab "Replace" and pressed the space bar once into "Find what". In "Replace with" I didn't type anything. When I pressed the "Replace all" button excel says: "We couldn't find anything to replace..."

Method 2: I inserted a new column next to column A and typed into the first cell: =SUBSTITUTE(A2;" "; ""). The space after the number was not removed.

Anyone has an idea on how to fix this?

Thanks in advance!

Find elsewhere
🌐
YouTube
youtube.com › watch
Remove Space Between Numbers In Excel - YouTube
*Learn how to remove space between numbers in Excel quickly and easily.* If you're dealing with messy data — like phone numbers, account numbers, or values t...
Published: August 6, 2025
Views: 17K
🌐
WPS Office
wps.com › academy › how-to-remove-spaces-after-text-in-excel-quick-tutorials-1864700
How to remove spaces after text in Excel | WPS Office Academy
September 7, 2023 - You can use the SUBSTITUTE function or the Find and Replace option to remove non-breaking spaces. In Excel, the LEN function estimates the number of characters in a cell, which aids in locating cells with specified character counts, especially ...
🌐
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. But what if your data is numbers, not text?
🌐
GeeksforGeeks
geeksforgeeks.org › excel › how-to-remove-spaces-in-excel
How to Remove Spaces in Excel - GeeksforGeeks
April 29, 2024 - The easiest way to get rid of excess spaces is using the standard Excel Find & Replace option. Here are different types of spaces you can remove in Excel: 1. Leading Spaces: These are spaces before your text.
🌐
Excel Insider
excelinsider.com › home › our blog › excel pro tips › how to remove space after text in excel (6 effective ways)
How to Remove Space After Text in Excel (6 Effective Ways) - Excel Insider
August 31, 2025 - Learn how to remove space after text in Excel using Find & Replace, TRIM, LEFT, SUBSTITUTE, Power Query, or VBA for clean and accurate data.
🌐
Unstop
unstop.com › home › blog › remove spaces in excel: key methods to tackle different types
Remove Spaces In Excel: Key Methods To Tackle Different Types
February 3, 2025 - To address this, use the SUBSTITUTE function to replace spaces with no characters. For example, =SUBSTITUTE(A1, " ", "") will convert a number formatted with spaces into a usable numeric value, ensuring accuracy in calculations like SUM or AVERAGE.
🌐
SimonsezIt
simonsezit.com › article › remove-spaces-in-excel
How to Remove Spaces in Excel? 3 Easy Methods
November 7, 2022 - Remove spaces in Excel using TRIM and CLEAN function ... This is another method to remove extra spaces between words or numbers. This method works on the principle of finding the number of spaces and replacing it.