Hi, I have a special need to let Excel generate random numbers in a string of text like this.
="PCTECHTV"&(INT(RAND()*100000))&"INT3"
The result PCTECHTV34729INT3 with the random being 34729 or what ever it generates.
Now this if working for me except I need 5 numbers always and it is some time generating 4. I guess this is because some times INT(RAND()*100000) comes up with number s with zeros with it and that is fine but I want the zeros to show. I don't want to us INT(RAND()*100000) in a separate cell and format that to display 5 numbers and then have to add it to the =. Does any one know of a way to do this in the formula? Or?
Thanks
="PCTECHTV"&(INT(RAND()*100000))&"INT3"
The result PCTECHTV34729INT3 with the random being 34729 or what ever it generates.
Now this if working for me except I need 5 numbers always and it is some time generating 4. I guess this is because some times INT(RAND()*100000) comes up with number s with zeros with it and that is fine but I want the zeros to show. I don't want to us INT(RAND()*100000) in a separate cell and format that to display 5 numbers and then have to add it to the =. Does any one know of a way to do this in the formula? Or?
Thanks