How to convert numbers into words

I have been trying to convert numbers to words using formula but I am not getting good results. For example:
(1) 101 = One Hundred and One (only).
(2) 1111 = One Thousand One Hundred and Eleven (only).
I did take help of search engines also, but I couldn't find a solution. Is there anyone who can help me out with this problem?
