Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
kteicher
 
Posts: n/a
Default Formatting a .txt file / fixed width


Hello:

I have a text file that I need to edit. The fields in the text file
are all fixed length (not tabbed). For example:

tzwaaaaaa lcust 000001waaaaaa lcust 7903
waaaaaa lcust 0078442040592

I would like to import a table of records like the one above in Excel
and be able to add additional rows. The paramaters being:

1) where 000001 is, I will have to increment each row by one.
2) where 0078442040592 is will be a totally different number, but with
the same exact # of digits.

When I save this "modified" file the field lengths must be exactly the
same as the original. I imported and created columns for ONLY the
sections that will not be exactly the same. However, when I saved the
file back out as text the spacing was not exact. (Spaces missing,
etc.)

I have tried a few things and have gotten close, but not exact. Any
help would be appreciated.

Can anyone give me any guidance on how to approach this, I am pretty
unsophisticated with Excel!

Thanks,

Keith


--
kteicher
------------------------------------------------------------------------
kteicher's Profile: http://www.excelforum.com/member.php...o&userid=21468
View this thread: http://www.excelforum.com/showthread...hreadid=499904

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 to export to fixed width text file? Mike Excel Worksheet Functions 1 October 17th 05 09:30 PM
save an excel file in fixed length records whose fields are blank ascii save Excel Discussion (Misc queries) 1 October 13th 05 06:01 PM
Automate the Text Import Wizard (Fixed Width) Yagnesh Excel Worksheet Functions 5 August 25th 05 08:08 PM
fixed column width with text string Sarah Excel Discussion (Misc queries) 1 February 8th 05 10:09 PM
Export to fixed width text file FinChase Excel Discussion (Misc queries) 0 January 24th 05 08:25 PM


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