=SUBSTITUTE(PROPER(SUBSTITUTE(A20,"_"," "))," ","")

It first replaces _ for a space character. Then creates Caps for the first character after the space and finally removes the spaces.

If you truly only need the character after _ to be in caps, then use this Office 365 solution:

=LET(cell, A2,
     a,    SEQUENCE(LEN(cell)),
SUBSTITUTE(
           REDUCE( A20, a,
           LAMBDA( b,   c,
IF(MID(b,c,1)="_",
   LEFT(b,c-1)&UPPER(MID(b,c,2))&RIGHT(b,MAX(a)-c-1),
   b))),"_",""))
Answer from P.b on Stack Overflow
๐ŸŒ
MrExcel
mrexcel.com โ€บ archive โ€บ formulas โ€บ removing-underscores
Removing Underscores - Excel Formulas - Board Archive - MrExcel Publishing
June 18, 2001 - ... Does anyone know how to remove underscores from text by using either a macro or a formula. Thanks for your help. Sam ยท Posted by Mark W. on June 18, 2001 8:32 AM ยท =SUBSTITUTE(A1,"_"," ") will replace underscores in cell A1 with a space.
๐ŸŒ
Excel Forum
excelforum.com โ€บ excel-programming-vba-macros โ€บ 665042-remove-underscores.html
Remove Underscores
September 12, 2008 - U dont have to do fine and replace on each different number. Just do find and replace "In Find box type -- _(undersocre) and replace box -- Leave in blank ... Is there a reason you can't select ALL the cells with underscores and use <edit><replace> to remove them?
Discussions

Excel replace underscore with next character in uppercase and remove underscore - Stack Overflow
I have some strings like avg_face_count and I need to convert them in avgFaceCount in Excel Basically I need to find every underscore in the string, remove it and replace the next underscore charac... More on stackoverflow.com
๐ŸŒ stackoverflow.com
remove a "_" from a field
I have a table "Emp ID" that is set as a text. Some of the numbers have "_" between them generating a table log error. Is there anyway to remove the "_" from the numbers if the position changes frequently. Example:โ€ฆ More on learn.microsoft.com
๐ŸŒ learn.microsoft.com
12
1
June 9, 2014
Macro find and replace underscore but do not remove ...
๐ŸŒ answers.microsoft.com
December 16, 2010
Remove underscore and pick first value seperately and next two values in another cell in excel - Stack Overflow
Kindly suggest on how remove underscore and pick first value seperately and next two values together in another cell in excel Example |List Item | Desired Value1 | Desired Value 2| |----------|----... More on stackoverflow.com
๐ŸŒ stackoverflow.com
๐ŸŒ
Reddit
reddit.com โ€บ r/excel โ€บ how to replace every underscore with a space instead?
r/excel on Reddit: how to replace every underscore with a space instead?
October 17, 2023 -

I have TONS of headers that look like the following

owner2_address_1_city

There underscores instead of spaces make it hard to read quickly and make wrapping text useless. is there an easy way to change it to normal text i.e. below:

"owner 2 address 1 city"

Thanks in advance!

๐ŸŒ
Dashboards Excel
dashboardsexcel.com โ€บ blogs โ€บ blog โ€บ excel-tutorial-remove-underscore-excel
Excel Tutorial: How To Remove Underscore In Excel โ€“ DashboardsEXCEL.com
March 30, 2024 - You can combine multiple functions such as TRIM and SUBSTITUTE to remove underscores and clean up your data at the same time. For advanced users, using VBA code can provide a more automated and efficient way of removing underscores in Excel.
๐ŸŒ
Microsoft Learn
learn.microsoft.com โ€บ en-us โ€บ answers โ€บ questions โ€บ 4833115 โ€บ remove-a-from-a-field
remove a "_" from a field - Microsoft Q&A
June 9, 2014 - To see if that is, indeed what the problem is. ... The criterion will ensure that only those ID's containing an underscore will be edited, though it won't anything harmful other than wasting time; the Replace function will convert all underscores to zero length strings, "squeezing them out" of the field value. Since this query will not be reversible (no way to tell where the underscore used to be!) and just for safety's sake, run it on a COPY of the table, not your production data.
๐ŸŒ
Excelcommand
excelcommand.com โ€บ excel-help โ€บ excel-how-to.php
Excel - Remove Underscores - Hi I have... - Free Excel Help
Hello, I'm a bit of a newbie with Excel, but... I have several cells with data that contain both letters and numbers (4H, 8V, 4FH, etc.) What I want to do is remove only the text characters from these cells, and add the remaining number values together among a series of cells with this data type. If your answer involves using a macro or VB, please provide a link on how to use the formula.
Find elsewhere
๐ŸŒ
MrExcel
mrexcel.com โ€บ forums โ€บ question forums โ€บ excel questions
Eliminate Underscore in Column Label | MrExcel Message Board
November 14, 2011 - Highlight the row. ctrl H will open the find and replace dialog box You wan to find "_" and replace with a " ". You don't need quotes but if you forget to replace with " " the words will run together.
๐ŸŒ
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. Recommended article: How to Delete Blank Rows in Excel (5 Fast Ways to Remove Empty Rows)
๐ŸŒ
Stack Overflow
stackoverflow.com โ€บ questions โ€บ 51142329 โ€บ formula-to-remove-text-between-two-underscores-in-excel
vba - Formula to remove text between two underscores in excel? - Stack Overflow
To remove just the text between the underscores, you would use something like this: =LEFT(A2,FIND("_",A2))&RIGHT(A2,LEN(A2)-FIND("_",A2,FIND("_",A2)+1)+1) ... Sign up to request clarification or add additional context in comments.
๐ŸŒ
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.
๐ŸŒ
Quora
personalfinancemoney.quora.com โ€บ https-www-quora-com-How-do-I-remove-an-underscore-from-text-in-Excel-answer-Abhishek-Pandey-328-1
How to remove an underscore from text in Excel
Quora is a place to gain and share knowledge. It's a platform to ask questions and connect with people who contribute unique insights and quality answers.
๐ŸŒ
Learnexcel
learnexcel.io โ€บ home โ€บ how to โ€บ how to remove underline in excel
How to Remove Underline in Excel - Learn Excel
June 16, 2026 - New ยท Premium Excel templates โ€” budgets, loan & project trackers, and more. Shop now โ†’ โœ• ... To remove a font underline in Excel, select the cells and press Ctrl + U (Windows) or Cmd + U (Mac) to toggle it off.