try like this:
=INDEX(SUBSTITUTE(A1:A10; "_"; " "))
Answer from player0 on Stack OverflowI have a google sheet with lots of business names in the column
-
Company name 1
-
Company name 2
-
Company name 3
How do I remove those empty spaces and replace it with a Dash? So that it looks like:
-
Company-name-1
-
Company-name-2
-
Company-name-3
EDIT: solution is to use Edit>find and replace.
how to replace every underscore with a space instead?
google sheets - Combine two cells in a new cell, replace all spaces with dash, and lowercase - Stack Overflow
How to remove unwanted spaces - Google Docs Editors Community
Source Google Sheets: Replace whitespaces with underscore in stream name
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!
Your basic formula is:
=LOWER(SUBSTITUTE(A1," ","-"))
We can concatenate two cells together to get the desired output:
=LOWER(SUBSTITUTE(A1&"-"&B1," ","-"))

Google Sheets

This formula is dynamic in that it doesnt actually matter how many cells you decide to incluce:
=SUBSTITUTE(LOWER(JOIN("-",A1:A2))," ","-")
