Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
osios
 
Posts: n/a
Default Save trailing empty cells in a tab delimited text file


Hi,

I have a tab delimited text file which contains some empty values in
some of the cells, and some of the lines have empty cells at the end of
the line. In my original file (outputted by some software) empty cells
at the end of the line are represnted by a number of '\t' characters
with empty strings in between.

When I open the file to edit it in excel and then resave it, empty
cells at the end of a line are not saved.

An example:
If this is the original line string (spaces are not part of the string
- they just seperate chracters here, for clarity):

1 \t 2 \t \t \t \n

Excel will save it as:

1 \t 2 \n


I need the file saved in the first format of the example rather then in
the second format outputted by excel in order to continue processing it
in other software. Any way to do it, if I know in advance how many
columns I need in each line?


--
osios
------------------------------------------------------------------------
osios's Profile: http://www.excelforum.com/member.php...o&userid=33756
View this thread: http://www.excelforum.com/showthread...hreadid=535308

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bryan Hessey
 
Posts: n/a
Default Save trailing empty cells in a tab delimited text file


Hi,

You could put $$4$$ in the next empty column, edit the output file in
Notepad and Replace All ,$$4$$ with nothing.

Hope this helps

--

osios Wrote:
Hi,

I have a tab delimited text file which contains some empty values in
some of the cells, and some of the lines have empty cells at the end of
the line. In my original file (outputted by some software) empty cells
at the end of the line are represnted by a number of '\t' characters
with empty strings in between.

When I open the file to edit it in excel and then resave it, empty
cells at the end of a line are not saved.

An example:
If this is the original line string (spaces are not part of the string
- they just seperate chracters here, for clarity):

1 \t 2 \t \t \t \n

Excel will save it as:

1 \t 2 \n


I need the file saved in the first format of the example rather then in
the second format outputted by excel in order to continue processing it
in other software. Any way to do it, if I know in advance how many
columns I need in each line?



--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=535308

  #3   Report Post  
Posted to microsoft.public.excel.misc
osios
 
Posts: n/a
Default Save trailing empty cells in a tab delimited text file


Thanks for the idea - I think it would work just fine.


--
osios
------------------------------------------------------------------------
osios's Profile: http://www.excelforum.com/member.php...o&userid=33756
View this thread: http://www.excelforum.com/showthread...hreadid=535308

  #4   Report Post  
Posted to microsoft.public.excel.misc
Bryan Hessey
 
Posts: n/a
Default Save trailing empty cells in a tab delimited text file


Oh yes, it works, and thanks for the response

--

osios Wrote:
Thanks for the idea - I think it would work just fine.



--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=535308

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
imported doc from pdf file, want to seperate text & date in cells Christian Excel Discussion (Misc queries) 2 February 2nd 06 08:13 PM
Formulas dealing with text data Bagia Excel Worksheet Functions 6 June 20th 05 10:29 PM
Export excel file to semicolon delimited text file capitan Excel Discussion (Misc queries) 5 April 7th 05 03:06 AM
save excel file from a table delimited file (.txt) using macros sedamfo New Users to Excel 1 February 15th 05 04:19 AM
I have a Comma delimited text file how do I import in to excel an. trevord Excel Discussion (Misc queries) 1 February 3rd 05 11:41 PM


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