Suppose the data is in the B column, write in the C column the formula:

=SUBSTITUTE(B1," ","")

Copy&Paste the formula in the whole C column.

edit: using commas or semicolons as parameters separator depends on your regional settings (I have to use the semicolons). This is weird I think. Thanks to @tocallaghan and @pablete for pointing this out.

Answer from vulkanino on Stack Overflow
๐ŸŒ
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.
Published ย  April 21, 2016
Views ย  76K
๐ŸŒ
Reddit
reddit.com โ€บ r/excel โ€บ how do i remove the space between words? example below.
r/excel on Reddit: How do I remove the space between words? Example below.
October 13, 2025 -

Patrรญcia Neves = patricianeves Helio of Pianti = heliodepianti รlvaro Marques = alvaromarques

I want to do this in bulk with a thousand names.

Edit: The user gutsyspirit told me the simplest way for anyone who has the same question:

Ctrl + H -> find what: space bar Replace with: does not write anything

Just press replace to adjust or replace all.

๐ŸŒ
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.
๐ŸŒ
TeachExcel
teachexcel.com โ€บ excel-tutorial โ€บ remove-spaces-between-text-in-excel_1477.html
3 Methods to Remove Spaces Between Text in Excel - TeachExcel.com
Type a comma again to move to the next argument and then type "" making sure that there is NO SPACE between the double quotation marks this time. 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.
๐ŸŒ
Microsoft Support
support.microsoft.com โ€บ en-us โ€บ excel โ€บ 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.
Find elsewhere
๐ŸŒ
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.
๐ŸŒ
How To Excel
howtoexcel.org โ€บ remove-unwanted-space-characters
4 Ways to Remove Unwanted Space Characters | How To Excel
It removes all spaces from a text string except for single spaces between words. The TRIM function has one required input, and this is the text from which we want to trim off excess spaces. The input can either be a cell reference like B2 or a hardcoded string like โ€ Hello World!
๐ŸŒ
SimonsezIt
simonsezit.com โ€บ article โ€บ remove-spaces-in-excel
How to Remove Spaces in Excel? 3 Easy Methods
November 7, 2022 - Excel has a lot of functions and formulas to help you perform certain operations. To remove unwanted spaces between texts you can use the TRIM function.
๐ŸŒ
ASAP Utilities
asap-utilities.com โ€บ asap-utilities-excel-tools-tip.php
Remove Leading, Trailing, and Extra Spaces Between Words | Extra features for Excel
For example: - "Lennox Street 141 ... spaces in between " becomes "Multiple spaces in between" It works like Excel's TRIM() function but with enhancements....
๐ŸŒ
Indeed Career Guide
sg.indeed.com โ€บ career guide โ€บ career development โ€บ how to remove space in excel (including types of spaces)
How to Remove Space in Excel (Including Types of Spaces) | Indeed.com Singapore
September 8, 2023 - The general syntax for this function is TRIM (Text), where text represents the cell you wish to extract unwanted spaces. Using this technique, you can remove leading, trailing and extra spaces between words and enhance your writing experience.
๐ŸŒ
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.
๐ŸŒ
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.
๐ŸŒ
Igmguru
igmguru.com โ€บ blog โ€บ how-to-remove-spaces-in-excel
How to Remove Spaces in Excel: 5 Best Methods
1 week ago - One of the most popular options in Excel add-in is the Trim Spaces tool. This tool is designed specifically for cleaning text data. It can remove leading spaces, trailing spaces, extra spaces between words, line breaks, and even non-breaking ...
๐ŸŒ
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 - The tutorial explains how to remove blank spaces in Excel using formulas and the Text Toolkit tool. You will learn how to delete leading and trailing spaces in a cell, eliminate extra spaces between words, get rid of non-breaking white space and non-printing characters.
๐ŸŒ
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 would instantly remove all the leading and trailing spaces in the cell. Once you have the cleaned data, copy it paste it as values in place of the original data. This function is also helpful if you have more than one space character between words.
Published ย  November 2, 2015