Removing special characters
Hello!
I am importing from excel and ending up with extra characters in the cell. For example, instead of the cell displaying:
Spanish, Portugues
I am instead seeing:
["Spanish","Portugues"]
Is there a formula that would remove the [ ] " from the cell?
Thank you!
Best Answer
-
This should do the trick:
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE([YOUR COLUMN]@row, ",\"", ", "), "\"", ""), "[", ""), "]", "")
Answers
-
=SUBSTITUTE(SUBSTITUTE([YOUR COLUMN]@row, "[", ""), "]", "")
Replace the column name as needed. This assumes that all entries are in the same column.
-
@Carson Penticuff Your formula removed the [ ] and resulted in:
"Spanish","Portuguese"
Is it possible to remove all of the " " to result in:
Spanish, Portuguese
-
This should do the trick:
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE([YOUR COLUMN]@row, ",\"", ", "), "\"", ""), "[", ""), "]", "")
-
@Carson Penticuff This should do the trick:
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE([YOUR COLUMN]@row, ",\"", ", "), "\"", ""), "[", ""), "]", "")
____________________
This is perfect, Thank you!!!!
-
@Carson Penticuff I believe you can use CHAR(34) in place of quotes instead of the backslash. Gets rid of one of the SUBSTITUTE functions (and can be used to insert quotes in a text string output as well). Might be helpful in the future.
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE([YOUR COLUMN]@row, "[", ""), "]", ""), CHAR(34), "")
-
@Paul Newcome Thanks, Paul. I didn't think about using CHAR() to avoid having to escape the quotes. I added the extra SUBSTITUTE() to preserve the space after the comma as in Jennifer's example. Learning something new every day!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.1K Get Help
- 414 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!