View Single Post
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

One way

=TEXT(A1,"00000")

Regards,

Peo Sjoblom

"Calendar Control" wrote:

I have a column of Zip codes in an Excel spreadsheet. Some of the values are
4 digits in length and some are 5 digits in length. I need to have the
column in text format, but since the format was numeric the leading zero
disappears. I need a formula that determines that if the length of the value
is 4 characters than add a leading zero.