Is there a smart macro in Excel (2000 upwards) to remove the last part of a string, if it has a certain separator?
If the separator is not there, the string should be preserved
For instance, for "."
abcd.1 => abcd
abcd => abcd
I guess I could write something using a combination of Instr and Mid and such, but I am curious to know whether there is a smarter shorthand for it, like "Strip('abcd.1';'.')" or so.