Hi!
Let’s say I have a table that I download from my bank statement and want to organise the payments. Problem is that when copy pasting from my bank the format of the numbers is like follows (forces errors when runing f.e. “SUM”);
a good use case of basic chain formula in coda This is one of the MANY solutions you can use to solve this, not necessary the best as i’m no regex expert !
Removes the " - " in front > split() the chain by “-” and take the last part
Removes the space between f.e “14 078” > split the chain by blank space and join with NO space
Removes the last decimals and the coma “,00” > split the chain by “,” and take the first part
Here you go. This does exactly what you ask, if you want to be more accurate/specific/generic, it may require some adaptations depending on the format of your source data
hi @Miguel_Gomez_Limmert ,
I liked the contributions of @Quentin_Morel and @Pch very much. Like @Pch I hesitated a long time before I dove into the Regex Universe. Since this is actually an other syntax, I’d rather follow the path @Quentin_Morel explored. In the question the idea was to get rid of the last two digits
In my contribution (not a solution) below I keep them because in my perso context this would be more relevant.
This was a very easy to understand solution. Needed this one for formatting numbers from “norwegian system” to “english/international”. This was a perfect fit to change the decimal point from “,” to “.”.
Which again reminds me, perhaps this could be an optional setting within Coda, define your decimal character, and perhaps it could be set as a document standard… Just a thought.
Thanks @Christian_Antonsen, it has the advantage to see “in chain” what we’re doing.
Also Hope coda’s working on “document standard” for currency, date format, etc…