Not really clear in terms of
a) no. of strings are being adjusted
b) whether originals are to be overridden
but in general terms I think you will want to use VBA - to that end the below is a basic example but there will be more efficient alternatives.
First however it would be good to know answers to both questions outlined above
edit: another alternative would to be to use UDF via 3rd Party Add-In like morefunc.xll
but I would say that using your own code would be preferable for a no. of reasons
Bookmarks