Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
JOET
 
Posts: n/a
Default How can I format the #of decimals, field types, etc. automaticall.

I am importing a delimited file, it can be a csv, tab delimted, doesn't
matter, but I want it to come up in excel properly formatted to the # of
decimal places each field is formatted with in the delimited file. I also
want zip code to come in with a leading 0, not be interpreted as a number
even though I have enclosed it in quotes.
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

If you double click on a .csv file, excel will open it the way it wants.

If you rename the file to .txt, you could see the import wizard and format each
field as text--but that makes arithmetic a little more difficult. (I wouldn't
do it this way.)

I'd rename the file to .txt and record a macro when I imported it. I'd use
general for the numeric fields and then format those fields after I imported it
(still recording the code).

Then I could just rerun this recorded macro when I wanted to open a text file
(.txt--not .csv) of the same format.

JOET wrote:

I am importing a delimited file, it can be a csv, tab delimted, doesn't
matter, but I want it to come up in excel properly formatted to the # of
decimal places each field is formatted with in the delimited file. I also
want zip code to come in with a leading 0, not be interpreted as a number
even though I have enclosed it in quotes.


--

Dave Peterson
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
Keep custom format in new worksheet Buddy Excel Discussion (Misc queries) 2 March 14th 05 10:03 AM
Format a Cell in Excel as an IP address field willvi Excel Discussion (Misc queries) 1 March 2nd 05 07:25 PM
Remove time from a date and time field? Format removes the displa. oaoboc Excel Worksheet Functions 1 February 16th 05 07:20 PM
Pivot Tables..I give up... Debutante Excel Worksheet Functions 4 January 21st 05 10:43 PM
How can I format a cell so date field only displays the Month? tk_2u Excel Discussion (Misc queries) 3 December 4th 04 12:54 AM


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

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"