=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 Answer from cara27hhh on reddit.com
🌐
Microsoft Support
support.microsoft.com › en-us › excel › functions › 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 formula to remove space between words in a cell - Stack Overflow
I've a huge data in excel file. For eg: say i've a word like paul son,i've to make it as paulson. input:paul son output:paulson. In some cells ,i've data like mic-li,when this type of words come... More on stackoverflow.com
🌐 stackoverflow.com
how do i remove extra space from a cell
To remove extra spaces from a cell in Excel, you can use the TRIM function, which removes all extra spaces from text except for single spaces between words. More on learn.microsoft.com
🌐 learn.microsoft.com
8
0
June 28, 2025
Remove Space Between Numbers in Excel
I know this is a very basic function but even after searches and a YouTube video, I can’t seem to find how to do this and funny, I’ve done it before… I need to remove the spaces in a row…I’ve tried following examples of the TRIM function but it just doesn’t seem to be working ... More on community.spiceworks.com
🌐 community.spiceworks.com
7
6
February 13, 2018
Remove space(s) before a numerical value within a cell
Trying to remove the space in front of the number '1' in cell A2. So value in cell A2 is = " 1" TRIM function does not work for removing the space before the 1. Any ideas please? More on mrexcel.com
🌐 mrexcel.com
18
0
August 1, 2011
🌐
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 - They typically pop up in your worksheets when you’ve imported data that contains non-breaking space characters. A non-breaking space can be created in Excel with CHAR(160). The TRIM function doesn’t remove these, but the SUBSTITUTE function can.
Find elsewhere
🌐
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
🌐
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 - The TRIM function in Excel is used to remove leading and trailing spaces from a text string. It is useful for cleaning up data where extra spaces may have been inadvertently included.
🌐
Indeed
uk.indeed.com › career-advice › career-development › how-to-remove-space-in-excel
How to remove space in Excel using 5 different methods | Indeed.com UK
June 16, 2026 - For example, there are 'Remove leading and trailing spaces', 'Trim extra spaces between words to one' and 'Delete non-breaking spaces'. When you've decided, simply click on the 'Trim Spaces' button to remove the unwanted space. ... When deciding on a method with which to remove excess space in Excel, it helps to understand which space, in particular, you want to remove.
🌐
Ablebits
ablebits.com › ablebits blog › excel › excel formulas › how to remove blank spaces in excel - leading, trailing, non-breaking
How to remove blank spaces in Excel - leading, trailing, non-breaking
March 20, 2023 - As its names suggests, CLEAN is purposed for cleaning data, and it can delete any and all of the first 32 non-printing characters in the 7-bit ASCII set (values 0 through 31) including line break (value 10). Assuming the data to be cleaned is in cell A2, the formula is as follows: ... If the Trim/Clean formula joins the contents of multiple lines without spaces, you can fix it by using one of these techniques: Utilize the "Replace All" feature of Excel: in the "Find what" box, input a carriage return by pressing the Ctrl+J shortcut; and in the "Replace with" box, type a space.
🌐
Atlassian
atlassian.com › data › databases › how to remove leading and trailing spaces in an entire column in excel google docs
Trimming Spaces in Excel & Google Sheets | Atlassian
The most obvious (and generally efficient) method for removing both leading and trailing space is to use the TRIM() function. As stated in the official documentation, TRIM() “removes all spaces from text except between words.” Unfortunately, ...
🌐
Browserling
browserling.com › tools › remove-all-whitespace
Remove All Whitespace - Delete Spaces, Tabs, Newlines - Online - Browserling Web Developer Tools
Useful, free online tool that removes all spacing. No ads, nonsense, or garbage, just a whitespace deleter. Press a button – get the result.
🌐
Code Beautify
codebeautify.org › remove-extra-spaces
Remove Extra Spaces Online: Whitespace and Tab
Remove Extra Spaces Online is easy to use tool to remove extra spaces between words. Copy, Paste and delete extra spaces.
🌐
MrExcel
mrexcel.com › forums › question forums › excel questions
Remove space(s) before a numerical value within a cell | MrExcel Message Board
August 1, 2011 - Find and Replace (Ctl+H) Select column A Find: (enter a space) Replace: (leave blank) Hit Replace All
🌐
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
If your worksheet has characters that do not print out, use the CLEAN function with TRIM and SUBSTITUTE to eliminate spaces and symbols you don't want all at once: ... Sometimes, you may need to delete all spaces in a cell, including single ...
🌐
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 - Simply enter =TRIM(A1) in a new cell, replacing A1 with your target cell reference. This will eliminate all leading, trailing, and extra spaces between words. Excel typically deals with three types of spaces: leading spaces (before text), trailing ...
🌐
Excel Easy
excel-easy.com › examples › remove-spaces.html
Remove Spaces in Excel - Step by Step Tutorial
The TRIM function in Excel removes leading spaces, extra spaces and trailing spaces. Use the SUBSTITUTE function to remove all spaces or non-breaking spaces.