Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
VS VS is offline
external usenet poster
 
Posts: 2
Default zip codes as numbers

Hello,
I'm populating each Excel cell with data from a different database that has
addresses in it.
Zip codes that look like '01234' get interpreted as a number and the 0 gets
dropped.

How do I get the cell to read and enter the zip code into the cell as a
string?
Thanks,
V


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 691
Default zip codes as numbers

To convert the numeric ones to text see macro FixUSzip5
http://www.mvps.org/dmcritchie/excel/join.htm#fixuszip5

If you then want to do mail merge, to print labels, I have a page on that
http://www.mvps.org/dmcritchie/excel/mailmerg.htm
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"VS" wrote in message ...
Hello,
I'm populating each Excel cell with data from a different database that has
addresses in it.
Zip codes that look like '01234' get interpreted as a number and the 0 gets
dropped.

How do I get the cell to read and enter the zip code into the cell as a
string?
Thanks,
V




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default zip codes as numbers

Try formating the cell receiving the info as text - this
usually works for me when excel tries to make a number
into a date. Click on format, cells, and under the
number tab, choose text. Also, you can try the past
special option under edit
-----Original Message-----
Hello,
I'm populating each Excel cell with data from a

different database that has
addresses in it.
Zip codes that look like '01234' get interpreted as a

number and the 0 gets
dropped.

How do I get the cell to read and enter the zip code

into the cell as a
string?
Thanks,
V


.

  #4   Report Post  
Posted to microsoft.public.excel.programming
VS VS is offline
external usenet poster
 
Posts: 2
Default zip codes as numbers


Thanks for the quick response!

"David McRitchie" wrote in message
...
To convert the numeric ones to text see macro FixUSzip5
http://www.mvps.org/dmcritchie/excel/join.htm#fixuszip5

If you then want to do mail merge, to print labels, I have a page on

that
http://www.mvps.org/dmcritchie/excel/mailmerg.htm
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"VS" wrote in message

...
Hello,
I'm populating each Excel cell with data from a different database that

has
addresses in it.
Zip codes that look like '01234' get interpreted as a number and the 0

gets
dropped.

How do I get the cell to read and enter the zip code into the cell as a
string?
Thanks,
V






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding area codes only to phone numbers missing an area code RC Excel Discussion (Misc queries) 5 May 3rd 23 05:06 PM
Converting multiple data codes to numbers Natasha Excel Discussion (Misc queries) 1 February 2nd 10 03:06 AM
How can I create BAR CODES for UPC numbers I've created Hank Excel Discussion (Misc queries) 1 August 18th 09 06:02 PM
Custom number format codes for negative numbers IJ Excel Discussion (Misc queries) 5 September 7th 06 09:54 PM
where are my VB codes Jane[_4_] Excel Programming 1 October 23rd 03 11:50 PM


All times are GMT +1. The time now is 12:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"