๐ŸŒ
DataCamp
datacamp.com โ€บ tutorial โ€บ how-to-remove-spaces-in-excel
How to Remove Spaces in Excel: 5 Good Methods | DataCamp
March 4, 2026 - The SUBSTITUTE() function removes every space (including the space between words) from a cell and replaces any character, including spaces, with something else. It cleans numerical data, such as removing spaces that separate digits. ... Create a helper column.
๐ŸŒ
ExtendOffice
extendoffice.com โ€บ home โ€บ office tips โ€บ excel tips
Easily remove leading, trailing, extra or all spaces in cells
1. Select the cells containing spaces you will remove, press the Ctrl + H keys to open the Find and Replace dialog box. 2. In the Find and Replace dialog and under the Replace tab, type one space into the Find what textbox, keep the Replace with textbox empty, and then click the Replace All button.
Discussions

Remove spaces before and after the word in Cell
This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. ... I'm AnnaThomas and I'd be happy to help you with your question. In this Forum, we are Microsoft consumers just like yourself. Here's a simple formula in Excel to remove spaces ... More on learn.microsoft.com
๐ŸŒ learn.microsoft.com
8
366
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
๐ŸŒ r/excel
18
9
July 20, 2023
trimming leading and trailing spaces from a csv file that has no headers

Hi u/dallibab

Could i suggest this :

  • Trim you .csv file like a .txt text in a first step

Get-Content  C:\scripts\CrappyFile.csv -replace('\s',',')  ...

At this step, your file will be good.

  • Import your pseudo .csv file with ConvertFrom-Csv cmdlet

$file | ConvertFrom-Csv -Delimiter "," -Header A, B, C

Now, you have retreived your missign headers. :-)

Regards

Olivier

More on reddit.com
๐ŸŒ r/PowerShell
21
21
February 23, 2020
How to get rid of extra spaces when copying a table from Excel to Powerpoint
You may want to take a look at the TRIM function. It removes all spaces except for single spaces between words. However since you're saying the problem seems to occur in powerpoint, I don't know if that will help at all. More on reddit.com
๐ŸŒ r/excel
3
4
December 14, 2014
People also ask

How do I remove spaces in Excel?
Use the TRIM function: =TRIM(A1). This removes all leading, trailing, and duplicate spaces while keeping single spaces between words. For non-breaking spaces that TRIM misses, use =TRIM(SUBSTITUTE(A1, CHAR(160), " ")).
๐ŸŒ
xelplus.com
xelplus.com โ€บ home โ€บ tutorials โ€บ how to remove spaces in excel (trim, substitute, clean & copilot)
How to Remove Spaces in Excel: 5 Methods (TRIM, CLEAN, Power Query)
How do I remove spaces in Excel for an entire column?
Select the column header, press Ctrl+H, type one space in Find, leave Replace blank, and click Replace All. For formula-based cleanup, put =TRIM(A1) in B1, double-click the fill handle to copy down, then copy column B and paste as values over column A. Delete the helper.
๐ŸŒ
practicetestgeeks.com
practicetestgeeks.com โ€บ home โ€บ microsoft excel โ€บ how to remove spaces in excel (every method that actually works)
๐Ÿ”Ž How to Remove Spaces in Excel: TRIM, SUBSTITUTE & 2026 July
Why is TRIM not removing spaces in Excel?
TRIM only removes regular spaces (ASCII code 32). Data copied from web pages, PDFs, or Word documents often contains non-breaking spaces (ASCII code 160), which TRIM does not recognize. Use =TRIM(SUBSTITUTE(A1, CHAR(160), " ")) to convert them to regular spaces first, then trim.
๐ŸŒ
xelplus.com
xelplus.com โ€บ home โ€บ tutorials โ€บ how to remove spaces in excel (trim, substitute, clean & copilot)
How to Remove Spaces in Excel: 5 Methods (TRIM, CLEAN, Power Query)
๐ŸŒ
Trump Excel
trumpexcel.com โ€บ home โ€บ remove extra spaces in excel (leading, trailing, double spaces)
Remove Spaces in Excel - Leading, Trailing and Double
Excel TRIM function removes the leading and trailing spaces, and double spaces between text strings. For example, in the above example, to remove spaces from the entire list if first names (in A2:A7), use the following formula in cell C1 and drag it down for all the first names:
Published ย  November 2, 2015
๐ŸŒ
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 - In this case, use the CODE function to determine the character value, and then remove it as shown in this example: Identify and remove specific non-printing characters in Excel. In some situations, you may want to remove absolutely all white spaces in a cell, including single spaces between words or numbers. For example, when you have imported a numeric column where spaces are used as thousands separators, which makes it easier to read big numbers, but prevents your formulas from calculating.
๐ŸŒ
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
Leading and trailing spaces will also be trimmed to 1, but will not be removed. Select one or several columns with the data to delete spaces between words. Press Ctrl + H to get the "Find and Replace" dialog box. Press the Space bar twice in the Find What field and once in Replace With ยท Click on the "Replace all" button, and then press Ok to close Excel confirmation dialog. Repeat step 4 until you see the message "We couldn't find anything to replace." :) If you often import data to Excel from external sources and spend much time polishing up your tables, the Trim Spaces tool will clean data imported from the web or any other external source.
Published ย  April 21, 2016
Views ย  76K
๐ŸŒ
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 - Learn how to get rid of extra spaces and other characters that interfere with functions, calculations, and queries.
๐ŸŒ
TeachExcel
teachexcel.com โ€บ excel-tutorial โ€บ remove-spaces-between-text-in-excel_1477.html
3 Methods to Remove Spaces Between Text in Excel - TeachExcel.com
This is what Excel will replace the spaces with, nothing. Hit Enter and that's it! To apply this to the entire list, simply double-click the small black square in the bottom right of the cell that you can see when cell B1 is selected in the above image; this effectively copies the function down the entire list. Notice that this has removed all spaces from all of the examples, regardless of how many spaces were in the examples.
Find elsewhere
๐ŸŒ
The Excel Factor
theexcelfactor.com โ€บ home โ€บ data validation โ€บ no more gaps โ€“ a formula to remove spaces in lists or empty rows in ranges
No more gaps - a formula to remove spaces in lists or empty rows in ranges | The Excel Factor
June 28, 2022 - Perhaps you just want to create a better looking table from a long list of values. I use this formula all the time for these situations, so itโ€™s a good one to have in your Excel tool kit ready to use. =IFERROR(INDEX(B$9:B$30,AGGREGATE(15,6,(ROW(B$9:B$30)-ROW(B$9)+1)/(B$9:B$30<>โ€โ€),ROWS(B9:B$9))),โ€โ€) Note carefully where the anchoring is row being the start of the list in column B, row 30 being the end including some spaces.
๐ŸŒ
Practice Test Geeks
practicetestgeeks.com โ€บ home โ€บ microsoft excel โ€บ how to remove spaces in excel (every method that actually works)
๐Ÿ”Ž How to Remove Spaces in Excel: TRIM, SUBSTITUTE & 2026 July
4 weeks ago - Open your data with Data โ†’ From Table/Range, right-click the column, choose Transform โ†’ Format โ†’ Trim. Power Query removes leading and trailing whitespace from every cell. To remove internal spaces too, add a Replace Values step: replace ...
Rating: 4.8 โ€‹ - โ€‹ 2.48K votes
๐ŸŒ
XelPlus
xelplus.com โ€บ home โ€บ tutorials โ€บ how to remove spaces in excel (trim, substitute, clean & copilot)
How to Remove Spaces in Excel: 5 Methods (TRIM, CLEAN, Power Query)
Delete extra words (e.g., remove โ€œN/Aโ€ or โ€œTestโ€ from a list) Standardize data (e.g., replace all underscores _ with spaces) ๐Ÿ‘‰ Best for: Cleaning up imported data, fixing formatting issues, and standardizing text in Excel.
Published ย  April 16, 2026
๐ŸŒ
MyExcelOnline
myexcelonline.com โ€บ home โ€บ how to delete spaces in excel โ€“ line breaks, and non-breaking characters in excel
How to Delete Spaces in Excel - Line Breaks, and Non-Breaking Characters in Excel | MyExcelOnline
July 15, 2024 - To remove the spaces using the SUBSTITUTE function: Select an empty cell, letโ€™s say B2. Enter the formula =SUBSTITUTE(A2, โ€ โ€œ, โ€œโ€) in cell B2. Press Enter. The cleaned text will appear in cell B2 as โ€œHomerSimpsonโ€ without any spaces.
๐ŸŒ
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.
๐ŸŒ
Microsoft Support
support.microsoft.com โ€บ en-us โ€บ excel โ€บ functions โ€บ trim-function
TRIM function | Microsoft Support
This article describes the formula syntax and usage of the TRIM function in Microsoft Excel. Removes all spaces from text except for single spaces between words.
๐ŸŒ
SimonsezIt
simonsezit.com โ€บ article โ€บ remove-spaces-in-excel
How to Remove Spaces in Excel? 3 Easy Methods
November 7, 2022 - To trim the values of unwanted spaces, enter the formula =SUBSTITUTE(A22,โ€ โ€œ,โ€โ€) in the destination cell or the formula bar. Here, A1 is the cell that contains the untrimmed values.
๐ŸŒ
Excel Cookbook
excel-cookbook.com โ€บ home โ€บ recipes โ€บ the space sweeper: how to remove all spaces in excel with substitute
The Space Sweeper: How to Remove All Spaces in Excel with SUBSTITUTE - Excel Cookbook
March 23, 2026 - Master removing all spaces from text strings in Excel using SUBSTITUTE. Clean up data for consistent analysis, credit card numbers, and phone numbers.
๐ŸŒ
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 - For example, if you want to remove spaces from C2 through C30, highlight those cells. 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.
๐ŸŒ
ExcelTrick
exceltrick.com โ€บ home โ€บ how to remove extra spaces in excel (5 super easy ways)
How To Remove Extra Spaces In Excel (5 Super Easy Ways)
November 10, 2023 - Select the cells from where you want to remove the spaces. In the Home tab's Editing group, click on the Find & Select button and select Replaceโ€ฆ from the list. This will open the Find and Replace dialogue box.
๐ŸŒ
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, =TRIM(A1) removes any excess space from the A1 cell and can be easily adapted for use elsewhere. If you want to remove space in Excel, you can use the substitute function.