Hi,
I'm sure this has been done before so...
I have 5 and 9 digit zip codes stored in a database without any hyphens. I would like to insert one when necessary. Some of the zip codes are not well formed, in that case I would like to do nothing.
i.e.
12345 => 12345
1234567 => 1234567
123456789 => 12345-6789
Anyone have a formula that would do this for me?
I'm sure this has been done before so...
I have 5 and 9 digit zip codes stored in a database without any hyphens. I would like to insert one when necessary. Some of the zip codes are not well formed, in that case I would like to do nothing.
i.e.
12345 => 12345
1234567 => 1234567
123456789 => 12345-6789
Anyone have a formula that would do this for me?