Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Word Processing (https://www.askmehelpdesk.com/forumdisplay.php?f=397)
-   -   9 digit zip code imports as 0, not 9 digits (https://www.askmehelpdesk.com/showthread.php?t=39437)

  • Oct 27, 2006, 03:15 PM
    zix
    9 digit zip code imports as 0, not 9 digits
    I am using MS Word and MS Excel 2003. From MS Word, I have done a MAIL MERGE, and some of the zip codes are 5 digit, while others are 9 digit, as in 12345-6789. After doing the mail merge, and previewing the letters, the 9 digit zip codes get imported as 0. Certainly the MS Word software should be able to recognize a 9 digit zip code as a zip code? The 5 digit zip codes import properly as 5 digit zip codes.

    How can I make the 9 digit zip codes display properly after doing the mail merge into MS Word? What am I doing wrong?
  • Oct 27, 2006, 04:29 PM
    zix
    I found A solution. I went back into the spreadsheet and changed the ZIP CODE fields format to TEXT and then re-merged. Apparently if a 9 digit zip is not in a text format, it converts the 9 digit zip code to the number 0.
  • Oct 31, 2006, 02:13 PM
    Dale F Wiley
    Hi Zix,

    I tried to duplicate what is going on with you and no success.
    My Mail Merge worked just fine with 9 digits, well 10 counting the dash.
    Try formatting the Zip Code column as General or Text in Excel.
    There is always the possibility of a corrupted document or a corrupted Normal.dot or worse.
    If this doesn't work try a new document and see if the same thing happens.

    Good Luck.
    Dale :cool:
  • Oct 31, 2006, 02:17 PM
    ScottGem
    To Dale, The dash means that the cell was formatted as text hence the reason you didn't have the problem. I suspect, that in Zix's case the dash causes Excel to consider it a subtraction not text.
  • Oct 31, 2006, 03:00 PM
    Dale F Wiley
    Quote:

    Originally Posted by ScottGem
    To Dale, The dash means that the cell was formatted as text hence the reason you didn't have the problem. I suspect, that in Zix's case the dash causes Excel to consider it a subtraction not text.

    Good point, well done. :cool:
  • Nov 6, 2006, 11:32 PM
    zix
    One other problem I had was when it converted zip codes beginning with 0 such as 06543, it dropped the zero and changed it to a 4 digit zip of 6543!

    I had to add all the preceding zeros back in to the 4 digit zip codes!
  • Nov 7, 2006, 01:08 AM
    colbtech
    Select the Zip Code cells and then click on Format, Cells, Number, Custom. In the box below Type, enter 9 zeroes. Click OK. All the cells will be formatted with leading zeroes.
  • Nov 7, 2006, 07:04 AM
    ScottGem
    Quote:

    Originally Posted by zix
    One other problem I had was when it converted zip codes beginning with 0 such as 06543, it dropped the zero and changed it to a 4 digit zip of 6543!

    I had to add all the preceding zeros back in to the 4 digit zip codes!

    This is why ZipCodes should be text data types, not numbers. In a database, only numbers that are using in calculations, should be formatted as a number datatype.
  • Nov 16, 2006, 07:16 AM
    zix
    Quote:

    Originally Posted by colbtech
    Select the Zip Code cells and then click on Format, Cells, Number, Custom. In the box below Type, enter 9 zeroes. Click OK. All the cells will be formatted with leading zeroes.

    I suppose this would have worked, but not for me, since my spreadsheet has both 5 digit zip codes AND 9 digit zip codes. When I tried it, it turned my zips like 12345 into 000012345.

  • All times are GMT -7. The time now is 01:46 AM.