I ran into a problem today where I needed to replace the spaces in a field with their encoding for use in a URL. After much searching it seemed that this was not as simple as it would first seem. I did, however, come up with a solution, however ineloquent it may be.
The basics of how I did this to use a series of calculated columns each using the FIND and REPLACE functions in conjunction. The easiest way to show this is with an example. For the purposes of this example, the original text will be in the "Title" column.
The formula for the first calculated column titled "Encode1" looks like this:
=IF(ISNUMBER(FIND(" ",[Title])),REPLACE([Title],FIND(" ",[Title]),1,"%20"),[Title])The formula for the second calculated column title "Encode2" looks like this:
