🌐
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 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
Does removing spaces in Excel affect formulas in those cells?
Yes — if you run Find & Replace on cells containing formulas, Excel replaces spaces inside the formula syntax, which can break the formula. Always select just the data range when running Ctrl+H, never select entire columns that mix formulas and values. The TRIM and SUBSTITUTE functions operate on values, not formulas, so they're safe in helper columns.
🌐
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
🌐
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.
🌐
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
1 month 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
Find elsewhere
🌐
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.
🌐
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.
🌐
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
🌐
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.
🌐
MyExcelOnline
myexcelonline.com › home › excel remove leading spaces fast – step by step guide
Excel Remove Leading Spaces Fast - Step by Step Guide | MyExcelOnline
July 19, 2024 - You’re now a space-removing ninja, and your data is as neat as a row of dominos. Roll up those sleeves; it’s time to dive deep into Excel’s Find and Replace with a couple of advanced maneuvers: Counting spaces: Use Ctrl + H to bring up Find and Replace. In the ‘Find what’ field, enter a space and hit ‘Find All’. A list ...
🌐
MakeUseOf
makeuseof.com › home › productivity › how to remove spaces in excel
How to Remove Spaces in Excel
October 22, 2021 - Your table becomes disorderly and difficult to use. There are three ways to remove extra spaces in Excel. You can use the Find & Replace option, the Trim formula, and the Trim spaces tool.