Sign in to join the conversation:
How can I use substitute to replace not only one but multiple letters?
For eg: -0.-9 I want to get 09 only.
Hi,
Try something like this.
=SUBSTITUTE(SUBSTITUTE(Text@row; "-"; ""); "."; "")
The same version but with the below changes for your and others convenience.
=SUBSTITUTE(SUBSTITUTE(Text@row, "-", ""), ".", "")
Depending on your country you’ll need to exchange the comma to a period and the semi-colon to a comma.
Did it work?
Have a fantastic weekend!
Best,
Andrée Starå
Workflow Consultant @ Get Done Consulting
I have found the easiest way to nest SUBSTITUTE functions is to build out from the middle instead of trying to work from left to right.
To remove the "-", you would use
=SUBSTITUTE(Text@row, "-", "")
.
To remove the "."
=SUBSTITUTE(Text@row, ".", "")
To nest them, just drop one of the SUBSTITUTE formulas into the Text@row portion of the other.
=SUBSTITUTE(SUBSTITUTE(Text@row, ".", ""), "-", "")
If you then wanted to remove a "?"
=SUBSTITUTE(Text@row, "?", "")
and then just drop that into the Text@row portion again just like the last one.
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(Text@row, "?", ""), ".", ""), "-", "")
Thank you Guys.
Happy to help!
Let us know how it goes!
Hello, I'm working through the writing formulas optional activity and in the 'Nested IF function - Progress Column' task it directs you to put in the following formula '=IF([% Complete]@row = 0, “Empty”)'. However, when I put this formula into the spreadsheet, '04a_Marketing Request Tracker - Formulas', I get an…
I have an automation that has a condition where I am looking at the column "LEA Interco Supporting Site(s)" and trying to find columns that have the value "Fort Loramie" in them. This works well when "Fort Loramie" is the first item listed in the cell, but it doesn't work when "Fort Loramie" is the second or third value in…
Have any of you created a Smartsheet that would show the savings for a project by the month? In other words, if I saved $1200 annually and the project ended in say March, then the savings would go $120 per month, Mar 2025-Feb 2026. I have done it on Excel sheets manually, but I think there should be a way to do it with…