Converting text to a number

Or you could even use @Matt_Blais’s clever formula for converting numbers to text.
And you might be able to simplify if you can assume the numbers will never be more than 999 for example.