+ Reply to Thread
Results 1 to 9 of 9

Zip Code Format, commas and first digit 0 problem

  1. #1
    Registered User
    Join Date
    12-19-2011
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    4

    Zip Code Format, commas and first digit 0 problem

    Hi There
    Have an issue I am not able to figure out?
    I have 5000 zip codes that need a comma placed at the end of it, some zip codes start with a 0 digit. This is not a big deal, change the format to zip code fixes the 0 issue and format the cell with a =A1"," command....However, the problem is getting the 0 to stick and the coma together. WIth the special format, it is dumping the 0 and leaving the comma? Anyone have a fix? I must be overlooking something...
    Thanks

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Zip Code Format, commas and first digit 0 problem

    Hi brooksey and welcome in the forum

    A posible solution is this:

    Format A1, as TEXT

    IN B1, type this: =A1&","

    Is it OK?

    Hope to helps you
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    12-19-2011
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Zip Code Format, commas and first digit 0 problem

    Thank you.
    This still truncates the initial 0 ?
    so zip code 01005
    I want to change it to 01005,
    this is what I am getting: 1005,

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Zip Code Format, commas and first digit 0 problem

    Hi again

    Pls take a look to the attachment

    Hope to be OK, now.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-19-2011
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Zip Code Format, commas and first digit 0 problem

    Attachment looks great. When I change the data back to text the 0 disappears ? I must be missing something?

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Zip Code Format, commas and first digit 0 problem

    With a number in A1 (e.g., 1005), =TEXT(A1, "00000\,")
    Last edited by shg; 12-19-2011 at 04:02 PM.
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Zip Code Format, commas and first digit 0 problem

    You can't change the format and take your result.

    You have to greate the list, using text format, OR, add to the formula, as many Zeroes, as you want, like this:

    =0&0&0&Α3&","

    Now???
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    12-19-2011
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Zip Code Format, commas and first digit 0 problem

    thx shg and fotis....got it. I learned something.

  9. #9
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Zip Code Format, commas and first digit 0 problem

    Glad to helped you..

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1