๐ŸŒ
DataCamp
datacamp.com โ€บ tutorial โ€บ how-to-remove-spaces-in-excel
How to Remove Spaces in Excel: 5 Good Methods | DataCamp
March 4, 2026 - It cleans numerical data, such as removing spaces that separate digits. ... Create a helper column. Enter the formula: =SUBSTITUTE(A2," ",""). Press Enter and drag it down to apply it to all rows. Using the SUBSTITUTE() function. Image by Author. If you want a quick and easy fix, Iโ€™d recommend ...
๐ŸŒ
Reddit
reddit.com โ€บ r/excel โ€บ find and replace - how to include blank spaces before and after a word you want to replace
r/excel on Reddit: Find and replace - how to include blank spaces before and after a word you want to replace
October 10, 2023 -
  • I have a very long list of names, where the word "and" often appears between the two names. For example, "John and Mary."

  • I want to find every occurrence of the word "and" and replace it with " ^ " (Purpose is to use as delimiter for later splitting text to column, but that is another matter). In the example above, I would like the names to be shown as "John ^ Mary".

  • My problem: I can't figure out how to get Excel to include spaces in the text that I am seeking find and replace. In other words, I want Excel to look for (space)and(space). I have typed it into find like this: " and " << (without the quote marks, but typing a space before and after the word "and").

  • However, Excel ignores the spaces when it does the replacement, which messes up my list.

More info: Issue is, many of the names on my list contain the letters "and", and Excel is finding and replacing those text strings, even though they don't have a space before and after. Example: "John and Sandra" would be replaced with "John ^ S^ra" (instead of "John ^ Sandra). Or, "Andrew" would be replaced with "^rew"

If "find" in Excel also included the spaces you entered, then the problem would be solved, but Excel apparently can't find the spaces. (This is unlike Word, which definitely can find spaces.)

I have been searching for an solution for a long time, can anyone help?

๐ŸŒ
Avantix Learning
avantixlearning.ca โ€บ home โ€บ how to replace spaces in excel with underscores (_), dashes (-) or other values
How to Replace Spaces in Excel with Underscores (_), Dashes (-) or Other Values
April 13, 2022 - If you want to replace the space with nothing, leave the box blank. Click Replace All. A dialog box appears indicating the number of replacements. ... You can also create a formula and use the SUBSTITUTE function to replace spaces in text strings.
๐ŸŒ
ExcelTips (ribbon)
excelribbon.tips.net โ€บ T012488_Using_a_Formula_to_Replace_Spaces_with_Dashes.html
Using a Formula to Replace Spaces with Dashes (Microsoft Excel)
December 3, 2022 - She needs a way to replace all the spaces between words with dashes. She knows she could use Find and Replace, but would prefer to use a formula to do the replacements. Perhaps the easiest way to accomplish this task, using a formula, is to rely on the SUBSTITUTE function. At its most simple, SUBSTITUTE is used to replace one character in a text string with a different character.
๐ŸŒ
The Bricks
thebricks.com โ€บ home โ€บ resources โ€บ how to replace space in excel
How to Replace Space in Excel
February 20, 2025 - It reduces any multiple internal spaces down to a single space. If you have a cell with " Quarterly Report ", TRIM will perfectly transform it into "Quarterly Report". Itโ€™s the ideal tool for standardizing data entry. ... Upload a CSV or Excel file and Bricks instantly creates polished charts, tables, and insights you can share with your team. No design work, no formulas, no learning curve.Create my first dashboard โ†’
๐ŸŒ
Reddit
reddit.com โ€บ r/excel โ€บ excel function to remove spaces and replace them with commas
r/excel on Reddit: Excel function to remove spaces and replace them with commas
January 4, 2023 -

Hi, I have a large data set of numbers which have spaces in between, and I want to remove the spaces and replace them with commas (effectively making me able to sum them up for instance). Which formula can I use?

๐ŸŒ
ExcelDemy
exceldemy.com โ€บ home โ€บ excel basics โ€บ how to find and replace space in excel: 5 methods
How to Find and Replace Space in Excel: 5 Methods - ExcelDemy
May 24, 2024 - I hope that when using the SUBSTITUTE function if you can identify the spaces between words, and add the space properly in the formula, your problem will be solved. 3. Let us now discuss how Find and Replace works. Find and Replace is a useful feature to replace spaces between numbers in a cell.
Find elsewhere
๐ŸŒ
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 - This will return the result you're looking for: text with no spaces before or after it. When you copy the formula down for the whole column, the result looks like this. As you can see, the spacing between the words remains in place, but any spacing before or after the text is removed. With this method, we had to create a whole new column, so you would have to add the additional step of replacing the original column with the new one using Copy and Paste Values.
๐ŸŒ
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 - If the Trim/Clean formula joins ... "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....
๐ŸŒ
Template.net
template.net โ€บ excel โ€บ how to replace spaces with dashes in excel using a formula
How to Replace Spaces with Dashes in Excel Using a Formula
September 2, 2025 - This function is adept at swapping specific text within a text string for your chosen text. The formula structure for SUBSTITUTE is =SUBSTITUTE(text, old_text, new_text, [instance_num]).
๐ŸŒ
The Bricks
thebricks.com โ€บ home โ€บ resources โ€บ how to replace spaces with underscores in excel
How to Replace Spaces with Underscores in Excel - Bricks
February 12, 2025 - This formula tells Excel to look at cell A2, find every space character (" "), and replace each one with an underscore ("_").
๐ŸŒ
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
In the first cell of the helper column (C2), enter the formula to trim excess spaces =TRIM(A2) Copy the formula across the other cells in the column. Feel free to use some tips from Enter the same formula into all selected cells at a time.
Published: April 21, 2016
Views: 76K
๐ŸŒ
ExtendOffice
extendoffice.com โ€บ home โ€บ office tips โ€บ excel tips
How to replace blank space with nothing/underscore/dash/comma in Excel?
August 29, 2024 - 1. Open all workbooks you will ... Advanced Find and Replace pane, go to the Replace tab, and: (1) In the Find what box, please type a space; (2) In the Replace with box, type underscore/dash/comma as you need....
๐ŸŒ
MrExcel
mrexcel.com โ€บ forums โ€บ question forums โ€บ excel questions
Excel formula - remove commas, hyphens, spaces and replace with underscore | MrExcel Message Board
July 4, 2020 - Expected output: Reyes_MaLuisa_Text123; JunOh_Junee_Text123; Carter_JohnJr_Text 123 (no period and trailing space removed) Formula used: =REPLACE(I2,FIND(", ",I2,1),2,"_") & "_Text123" where I is the name field.
๐ŸŒ
Statology
statology.org โ€บ home โ€บ how to replace space with underscore in excel
How to Replace Space with Underscore in Excel
August 17, 2023 - Then type Ctrl + H to bring up the Find and Replace feature in Excel. Then type a single space in the Find what box and type a single underscore in the Replace with box.
๐ŸŒ
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.