Just a thought, if there is a chance ANY of those numbers are less than 4, this would insure you always get 5 characters, no matter what:
=RIGHT("00000"&A1,5)