Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Excel 2007 is stupid dealing with zipcodes

On Thu, 3 Sep 2009 12:51:01 -0700, Richnet
wrote:

OK fine then. I'll try first to format the zip column in the spreadsheet to
zip+9 so everything is in the same format and the OLEDB provider won't get
confused. You would think that the zips that are 5 digit i.e. 32904 would
change to 32904-0000 right? Nope, Excel gives you 0003-2904. Brilliant.


I have no idea how your DB treats formatted Excel data. But if you want to
format cells that can have either 5 or 9 digit zip codes in Excel, and you are
getting the results you post, then you are not using the correct format option.

Formatting does not change the contents of the cell -- merely its appearance.

But if you want both 5 and 9 digit numbers to look like:
00000-0000

Then the format you should use is
Format/Cells/Number/Custom Type: [<100000]00000"-0000";00000-0000

or, if you want to turn the contents into a text string, you could set up a
helper column and use a formula like:

=TEXT(A1,"[<100000]00000""-0000"";00000-0000")


--ron
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
Vlookup with large file of zipcodes DTTODGG Excel Worksheet Functions 4 December 17th 08 02:44 AM
dealing with csv imported file in excel [email protected] Excel Discussion (Misc queries) 2 July 25th 06 12:12 PM
Not printing 0 in zipcodes from excel spreadsheet. iamdevoe Excel Discussion (Misc queries) 1 December 22nd 05 03:42 PM
Am I stupid, or is it Excel??????? Confuddled User!!!!!!!!!!!!! Excel Discussion (Misc queries) 5 December 9th 05 02:26 PM
How do I convert 9 digit zipcodes to 5 digits? Robert Judge Excel Discussion (Misc queries) 3 November 18th 05 05:57 PM


All times are GMT +1. The time now is 01:26 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"