Hi Everyone!
I'm very new to VBA, so please bear with me!
I have a series of numbers starting from E2 and down, and I'm trying to apply the following formula to it using VBA:
=IF(LEN(E2)=1,"000"&E2,IF(LEN(E2)=2,"00"&E2,IF(LEN(E2)=3,"0"&E2,IF(LEN(E2)=4,E2))))
Basically what I want it to do is to take the current number in E2, and convert it to a #### format.
So if E2 = 3, then I would like it to says 0003 instead.
If E3 = 14, then I would like it to says 0014 instead.
Can someone helps me complete this?
I would very appreciate it!
Thanks!
Bookmarks