Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default open xml file in Excel

I'm using excel to open an XML file of address, but it truncates the leading
zero if a zip begins with one. I don't have the option of modifying the
source file and putting in an apostrophe. Is there a way around this?


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,091
Default open xml file in Excel

If the zip is in its own column, A for example, you might use a helper
column. For a zip such as 1234 which should be 01234 you could use a formula
like
=IF(LEN(A1)=4,"0"&A1,A1). For a zip such as 1234-5678 You could use
=IF(LEN(A1)=9,"0"&A1,A1)
The results of both formulas will be text. If you're satisfied with the
results, you can delete column A and use the helper column as the zip code.

Tyro


"Joe" wrote in message
...
I'm using excel to open an XML file of address, but it truncates the
leading zero if a zip begins with one. I don't have the option of
modifying the source file and putting in an apostrophe. Is there a way
around this?




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
excel 2003 saved file will not open without a blank workbook open Bob Excel Discussion (Misc queries) 4 November 11th 06 04:24 PM
Excel hangs when trying to open a file but it's ok if i open exce. jomary Excel Discussion (Misc queries) 0 October 18th 06 05:14 PM
In Excel - Use Windows Explorer instead of File Open to open file KymY Excel Discussion (Misc queries) 1 August 5th 06 09:59 PM
Open email windows can't open, excel shreadsheet file .xls ? skiz Excel Discussion (Misc queries) 0 October 2nd 05 07:03 PM
How do I stop Excel from closing the open file each time I open a. Welsin Setting up and Configuration of Excel 3 January 8th 05 11:16 PM


All times are GMT +1. The time now is 05:32 AM.

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

About Us

"It's about Microsoft Excel"