Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default convert text file to excel

The data in my text file, *.txt, contains columns of numbers. each row is
few numbers. is there a way to convert such a file to excel one, keeping the
same format?
thanks a lot,
--
abugoli
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 140
Default convert text file to excel

As far as I am aware txt files do not support formatting

but importing the txt file into Excel via Data/Import External Data/Import
Data
will import your data in a General format.

only problem is if your numeric data has leading 0's - these will be lost

"abugoli" wrote:

The data in my text file, *.txt, contains columns of numbers. each row is
few numbers. is there a way to convert such a file to excel one, keeping the
same format?
thanks a lot,
--
abugoli

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default convert text file to excel

do File=Open, this will open the text import wizard.

select delimited or fix width as appropriate. If the cells contain leading
zeros, on the last dialog in the wizard (3rd dialog I believe), you can
specify how the data in that column is to be treated. Selectin text will
cause the data to be treated as text and not alter the formatting (or remove
leading zeros), but the data will be text.

--
Regards,
Tom Ogilvy


"abugoli" wrote:

The data in my text file, *.txt, contains columns of numbers. each row is
few numbers. is there a way to convert such a file to excel one, keeping the
same format?
thanks a lot,
--
abugoli

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
how can i convert text file to excel file ? elcipser New Users to Excel 2 December 1st 05 04:09 PM
How do I convert excel file into ASCII text file with alignment? Rosaiah Excel Discussion (Misc queries) 2 June 27th 05 12:17 PM
how do I convert an excel file to a flat text file Lannutslp Excel Discussion (Misc queries) 1 June 3rd 05 10:17 AM
Convert excel file to flat text file Lannutslp Excel Discussion (Misc queries) 1 June 1st 05 03:48 AM
Convert excel file to flat text file Gary's Student Excel Discussion (Misc queries) 0 June 1st 05 12:17 AM


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