Quite often the issue is a non-breaking space - CHAR(160) - especially from Web text sources -that CLEAN can't remove, so I would go a step further than this and try a formula like this which replaces any non-breaking spaces with a standard one

=TRIM(CLEAN(SUBSTITUTE(A1,CHAR(160)," ")))

Ron de Bruin has an excellent post on tips for cleaning data here

You can also remove the CHAR(160) directly without a workaround formula by

  • Edit .... Replace your selected data,
  • in Find What hold ALT and type 0160 using the numeric keypad
  • Leave Replace With as blank and select Replace All
Answer from brettdj on Stack Overflow
🌐
Microsoft Support
support.microsoft.com › en-us › excel › trim-function
TRIM function | Microsoft Support
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. For formulas to show results, select them, press F2, and then press Enter.
Discussions

excel tricks to remove spaces at the beginning and ending of the cells?
Dear experts, I would like to seek your support on how to remove the spaces containing at the beginning and ending of some cells in a range? I already knew that we can use Conditional Formatting to find out and color the target cells but - how… More on learn.microsoft.com
🌐 learn.microsoft.com
4
0
Trim spaces without formula?
VBA is your friend. That link has a discussion on various methods for trimming. More on reddit.com
🌐 r/excel
2
1
February 6, 2020
trim spaces from excel - Apple Community
How do I trim leading spaces from an Excel file? I'd like to remove leading spaces from cells B2 to B&myData (myData is 12,857). I can't find the TRIM command in the Excel applescript manual or in the Microsoft Excel dictionary. More on discussions.apple.com
🌐 discussions.apple.com
March 7, 2016
Remove space at beginning of cell
Yikes! Using the TRIM function I can't remove the empty space that exists at the head of most (not all) cells in Col. E. I am using Times New Roman font. Any suggestions? Is the blank space some other character, and not the same as that between… More on answers.microsoft.com
🌐 answers.microsoft.com
9
48
June 7, 2012
🌐
Macabacus
macabacus.com › home › how to trim cells in excel
How to Trim Cells in Excel (Downloadable Template)
November 18, 2025 - You can click and drag the formula downward through a column or across a row to other cells if you wish to trim multiple cells. The cell references will automatically adjust accordingly when new ones are introduced into them using MS Excel. By following the simple steps above, you can remove unnecessary spaces from your data quickly, thus ensuring consistent and accurate financial models and reports.
🌐
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 - With Ultimate Suite installed in your Excel, removing spaces in Excel is as simple as this: Select the cell(s) where you want to delete spaces. Click the Trim Spaces button on the ribbon.
🌐
W3Schools
w3schools.com › excel › excel_trim.php
Excel TRIM Function
The TRIM function is premade in Excel and used to remove irregular text spacing and keep single spaces between words.
🌐
Excel Campus
excelcampus.com › home › tutorials (blog) › 5 ways to find and remove blank spaces in excel
5 Ways to Find and Remove Blank Spaces in Excel - Excel Campus
January 24, 2026 - If you are relatively new to Power ... Modern Excel Blueprint. Let's look at the same example we used for the TRIM function, but this time we will use a macro to trim extra spaces from text. Start by opening the VB Editor. Go to the Developer tab and select the Visual Basic Button...
Find elsewhere
🌐
Acuity Training
acuitytraining.co.uk › news-tips › trim-function-excel
Excel's TRIM Function [inc 2 Examples & Troubleshooting] - Acuity Training
February 2, 2026 - It’s especially handy when cleaning data imported from other sources. To find the TRIM function, go to the top of the ribbon on your screen. Click Formulas > Text, and scroll down to the TRIM function button.
Call   02036030150
Address   44 Southampton Buildings, WC2A 1AP, London
(4.8)
Top answer
1 of 4
1

Re: have removed spaces but some are still there.

Importing data can bring in unwanted spaces and other characters.
The 'non breaking space', character 160, is one of them.
From 10 years ago...

Using Replace:  
Select the column or columns with data in it,  
Press CTRL+H to bring up the Replace dialog box.  
In the "Find what" field, type ALT+0160 using only the Number Pad to type in the digits.  
To be safe: type a single space character into the "Replace with" field  
Next, click the "Options" button to reveal all the available options and make sure  
the check box labeled "Match entire cell contents" does not have a check mark in it.  
Finally, click the "Replace All" button.  

'---

Or you can select one of the left over spaces and paste it into the Replace dialog box.
Or you could use a formula =SUBSTITUTE(D1,CHAR(160),"")
Or you could avail yourself of my free 'Professional Compare' workbook, which has a "Clean Data" utility. It provides several options. Download from OneDrive...
https://1drv.ms/u/s!Au8Lyt79SOuhZw2MCH7_7MuLj04?e=sAwbHU

'---
Nothing Left to Lose

2 of 4
0

.... Excel tricks to remove spaces at the beginning and ending of the cells?

One of my very first vba codes added to the toolbar was a code to clean input data. On each cell, use Replace to remove Chr(160), followed by using the function "Clean", and then "Trim".

Vba's TRIM() function does what you want: Removes Spaces at the beginning and end. The worksheet TRIM is slightly different because it also removes extra spaces in the middle.

🌐
Microsoft Learn
learn.microsoft.com › en-us › power-platform › power-fx › reference › function-trim
Trim and TrimEnds functions - Power Platform | Microsoft Learn
June 10, 2024 - Trim( SingleColumnTable ) TrimEnds( SingleColumnTable ) SingleColumnTable - Required. A single-column table of strings to remove spaces from. The following examples use a single-column collection, named Spaces, that contains these strings: To create this collection, set the OnSelect property of a Button control to this formula, open Preview mode, and then click or tap the button: ClearCollect( Spaces, [ " Jane Doe ", " Jack and Jill", "Already trimmed", " Venus, Earth, Mars ", "Oil and Water " ] )
🌐
Quora
quora.com › How-do-I-use-the-trim-function-in-Excel
How to use the trim function in Excel - Quora
Answer (1 of 4): The TRIM function is used with text-containing cells, to remove (or trim away) the spaces between words, leaving only the usual single space between each word and those after a punctuation mark. So, TRIM(“Apple is good. ”) returns the result “Apple is good.”
🌐
Reddit
reddit.com › r/excel › trim spaces without formula?
r/excel on Reddit: Trim spaces without formula?
February 6, 2020 -

Hey everyone! Wondering if someone can help; I'm seeing lots of references to a Trim Spaces button in older versions of Excel, but it's nowhere to be found in the new one and shunting data around between columns and using formulas is gonna be a drag on this much data. Is there seriously no way to do this without formulas any more? Thanks!!

🌐
Apple Community
discussions.apple.com › thread › 7485053
trim spaces from excel - Apple Community
March 7, 2016 - TRIM() is an Excel function, so you could do this within Excel by creating a new column filled with TRIM() functions. If you want an AppleScript-based solution, that would involve using AppleScript's text handling routines.. IMHO, the Excel path is probably easier, especially if you're not familiar with AppleScript, but post back if you can't work/find out how to do it in AppleScript. ... Thanks for the reply.
🌐
Knowledge Wave
knowledgewave.com › blog › msoffice › excel-clean-your-sheets-with-trim-and-substitute.html
Excel: Clean Your Sheets with TRIM and SUBSTITUTE
May 21, 2015 - 1. Click in a cell and begin typing ... A4. 2. Press Enter and copy the formula down by double-clicking the bottom-right of the green outline with the left mouse button......
🌐
CNET
download.cnet.com › trim-spaces-for-microsoft-excel › 3000-18483_4-10816836.html
Trim Spaces for Microsoft Excel for Windows - Free download and software reviews - CNET Download
October 27, 2010 - We installed Trim Spaces in Excel ... Access Toolbar. The tool is very easy to use. We selected a range of cells and clicked the Trim Spaces button on the Ribbon....
🌐
WPS Office
wps.com › blog › how-to-fix-excel-trim-function-not-working
How to Fix Excel TRIM Function Not Working (A Easy Way)
June 1, 2026 - Navigate to the Home tab on your Excel ribbon. ... Click on the "Replace" option. This action will prompt the appearance of the Find and Replace window. ... In the Find and Replace window: Enter a space character in the "Find what" box. Keep the "Replace with" box empty. ... Click on the "Replace All" button.
🌐
SimpleSheets
simplesheets.co › blog › essential-steps-to-remove-spaces-in-excel-that-you-need-to-know
Essential Steps To Remove Spaces in Excel That You Need To Know
This method has the advantage of replacing the values in their original position, eliminating the need for an extra empty column to accommodate the trimmed values. Select the cells. Go to the Home tab, under the Editing group, and click the Find and Select tool. Select Replace from the options. In the Find and Replace dialog box, type double-space in the Find What box. In the Replace With box, type single space. Click the Replace All and OK buttons in the Microsoft Excel pop-up box.
🌐
Microsoft Answers
answers.microsoft.com › en-us › msoffice › forum › all › remove-space-at-beginning-of-cell › e20e69f0-96ac-4a45-809e-3821448338f4
Remove space at beginning of cell - Microsoft Q&A
June 7, 2012 - To be safe (in case you have non-breaking spaces between words where a normal space should be), type a single space character into the "Replace with" field. Next, click the "Options>>" button to reveal all the available options and make sure the check box labeled "Match entire cell contents" does not have a check mark in it. Finally, click the "Replace All" button. Formula method: I am assuming your formula looks generally like this... ... Change it to look like this... =TRIM(SUBSTITUTE(<more formula stuff>,CHAR(160)," ")
🌐
YouTube
youtube.com › watch
Remove Spaces With Excel TRIM Function - YouTube
Use the TRIM function in Excel to remove spaces in a text string.The TRIM function removes spaces at the start and end of the text string, and all but single...
Published   December 30, 2010