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

Find elsewhere
๐ŸŒ
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 ...
๐ŸŒ
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!

๐ŸŒ
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
๐ŸŒ
ExtendOffice
extendoffice.com โ€บ home โ€บ office tips โ€บ excel tips
Easily remove leading, trailing, extra or all spaces in cells
Replace space with specific character in Excel cells In many cases, you prefer to replace spaces with specific characters rather than remove them from cells directly. Here provides methods for you to easily replace space with underscore, dash or comma in cells. Click to know more... Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
๐ŸŒ
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.
๐ŸŒ
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.
๐ŸŒ
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.
๐ŸŒ
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.