Find and replace or substitute
Hello,
What is the best way to turn ###-###-#### into ########## ? Some entries have parentheses, dashes or spaces, but it needs to pull just the numbers.
I figured it would be either find and replace or substitute, but I'm not sure if I need an additional app to do those. Any help would be appreciated!
Best Answer
-
Hi @Desertbird
I hope you're well and safe!
Try something like this.
You'd use the SUBSTITUTE function for each option in a string.
=SUBSTITUTE(SUBSTITUTE(your_cell@row, "-", ""), ".", "")
Did that work/help?
I hope that helps!
Have a fantastic week & Happy Holidays!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up, Awesome, or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
Answers
-
@Desertbird Substitute would probably be the best as you could use it to replace all instances with an empty string "". I would say just use some nested substitute statements and search for parentheses, dashes, and spaces. That should do the trick.
The best solution if possible would be to do this cleanup on the entry of the data or enforce validation, but that may not be an option if you are just processing existing data.
I made a quick video to show how to use the Nested substitute functions:
Darren Mullen, join the Smartsheet Guru Elite
Get my 7 Smartsheet tips here
Author of: Smartsheet Architecture Solutions
-
Hi @Desertbird
I hope you're well and safe!
Try something like this.
You'd use the SUBSTITUTE function for each option in a string.
=SUBSTITUTE(SUBSTITUTE(your_cell@row, "-", ""), ".", "")
Did that work/help?
I hope that helps!
Have a fantastic week & Happy Holidays!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up, Awesome, or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!