๐ŸŒ
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 - In Excel, you can replace spaces in text strings with underscores, dashes or other values using Find and Replace, by creating a formula or by using Flash Fill.
Discussions

how to replace every underscore with a space instead?
You can select all the headers, then press ctrl+f -> replace -> find _ replace with space, replace all Its important to select just the headers otherwise you might replace things outside of headers that wasn't intended More on reddit.com
๐ŸŒ r/excel
8
0
October 17, 2023
Excel formula - remove commas, hyphens, spaces and replace with underscore
I have data like this: Reyes, Ma. Luisa Jun-Oh, Junee Carter, John Jr. I need to use a combination of excel formulas in one cell to remove commas, periods, spaces and replace with underscore. Also need to add text after the names (to be used as PDF filename). Expected output... More on mrexcel.com
๐ŸŒ mrexcel.com
7
0
July 4, 2020
excel - Replace space between two words with an underscore - Stack Overflow
On column C I have values from C2 to C236. Some of them have a space between two words. Is it possible to use VBA to replace the space with a _ instead? I guess a FOR loop on column C then when a... More on stackoverflow.com
๐ŸŒ stackoverflow.com
Find and replace - how to include blank spaces before and after a word you want to replace
u/Old_Pizza_1149 - Your post was submitted successfully. Once your problem is solved, reply to the answer(s) saying Solution Verified to close the thread. Follow the submission rules -- particularly 1 and 2. To fix the body, click edit. To fix your title, delete and re-post. Include your Excel version and all other relevant information Failing to follow these steps may result in your post being removed without warning. I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns. More on reddit.com
๐ŸŒ r/excel
10
1
October 10, 2023
๐ŸŒ
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.
๐ŸŒ
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 - Enter Your Criteria: A dialog box will appear. In the "Find what:" field, press the spacebar once. Don't type the word "space," just a literal space character. In the "Replace with:" field, type an underscore ( _ ).
๐ŸŒ
Automate Excel
automateexcel.com โ€บ home โ€บ replace space with underscore in excel & google sheets
Replace Space With Underscore in Excel & Google Sheets - Automate Excel
February 27, 2023 - In the Find and Replace window, (1) type a space in Find what box and (2) underscore (_) in the Replace with box.
๐ŸŒ
MrExcel
mrexcel.com โ€บ forums โ€บ question forums โ€บ excel questions
Excel formula - remove commas, hyphens, spaces and replace with underscore | MrExcel Message Board
July 4, 2020 - let Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content], #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}}), #"Replaced Value" = Table.ReplaceValue(#"Changed Type",",","_",Replacer.ReplaceText,{"Column1"}), #"Replaced Value1" = Table.ReplaceValue(#"Replaced Value",".","_",Replacer.ReplaceText,{"Column1"}), #"Replaced Value2" = Table.ReplaceValue(#"Replaced Value1"," ","_",Replacer.ReplaceText,{"Column1"}), #"Added Suffix" = Table.TransformColumns(#"Replaced Value2", {{"Column1", each _ & "Text123", type text}}) in #"Added Suffix" ... My data consists of Lastname then a comma and space. Firstly I need the last name to not have spaces or other special characters, then an underscore after.
Find elsewhere
๐ŸŒ
Arab Psychology
scales.arabpsychology.com โ€บ home โ€บ replace space with underscore in excel
Replace Space With Underscore In Excel
November 18, 2025 - The combined formula would look like this: =SUBSTITUTE(TRIM(A2), โ€ โ€œ, โ€œ_โ€). This nested approach first normalizes the spacing and then performs the precise space-to-underscore conversion, resulting in perfectly clean data.
๐ŸŒ
YouTube
youtube.com โ€บ watch
Replace space with underscore in Excel - YouTube
The video offers a quick tutorial on how to replace space with underscore in Excel.
Published: June 12, 2022
๐ŸŒ
The Bricks
thebricks.com โ€บ home โ€บ resources โ€บ how to replace spaces with underscores in excel using ai
How to Replace Spaces with Underscores in Excel Using AI
February 20, 2025 - You should see the text from A2, but with all spaces replaced by underscores. For instance, "Product Number" becomes "Product_Number." Click on cell B2 again. Hover your mouse over the small green square at the bottom-right corner of the cell (the "fill handle"). Your cursor will turn into a small black plus sign. Click and drag the fill handle down to apply the formula to all the corresponding rows of your data. Alternatively, you can just double-click the fill handle, and Excel will automatically fill it down to the last row of your adjacent data.
๐ŸŒ
Ucdavis
dw-test.elc.ucdavis.edu โ€บ home โ€บ jampu
Excel Replace Spaces With Underscores - Data Science Workbench
October 18, 2023 - In this formula, text is the original ... occurrence of old_text to replace. For example, if you have the formula =SUBSTITUTE("My File Name", " ", "_"), Excel will replace the space in "My File Name" with an underscore, resulting ...
๐ŸŒ
Excel Forum
excelforum.com โ€บ excel-general โ€บ 728119-how-to-copy-text-from-another-cell-and-replace-space-with-underscore.html
How to copy text from another cell and replace space with underscore
1) Copy the cell(s) to the new location 2) Do a CTRL-H (search replace) to search for spaces and replace with underscores. To do it in a formula: =SUBSTITUTE(A1, " ", "_") ... Microsoft MVP 2010 - Excel Visit: Jerry Beaucaire's Excel Files & Macros If you've been given good help, use the icon ...
๐ŸŒ
Arlevent
arlevent.ime.calpoly.edu โ€บ home โ€บ youknowit โ€บ replace spaces with underscores in excel quickly and easily
Replace Spaces with Underscores in Excel Quickly and Easily - Arlevent Hub
May 30, 2025 - To replace spaces with underscores using the REPLACE function, follow these steps: 1. Select the cell or range of cells where you want to replace spaces with underscores. 2. Enter the following formula: `=REPLACE(A1," ","_")`, assuming the text ...
๐ŸŒ
IPAM Power Hub
ipam.powerschool.com โ€บ home
Excel Replace Spaces With Underscores - IPAM Power Hub
October 18, 2023 - Replace All: Click on โ€œReplace Allโ€ to replace all spaces with underscores in your selected range. If you want to keep your original data intact and create a new column with the modified text, you can use the SUBSTITUTE function. Assuming Data: Letโ€™s say your data is in column A. Enter Formula: In a new column (say, column B), enter the following formula in the first cell where you want the modified text to appear:
๐ŸŒ
Arab Psychology
scales.arabpsychology.com โ€บ psychological scales โ€บ how can i replace spaces with underscores in excel?
How Can I Replace Spaces With Underscores In Excel?
April 8, 2024 - Another way to replace spaces with underscores in Excel is to use the SUBSTITUTE function. We can type the following formula into cell B2 to replace each space in cell A2 with an underscore:
๐ŸŒ
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 - If you need a formula to change spaces to some other character, the SUBSTITUTE function fits the bill. Here's how to use it.