A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

excel dos txt save



 
 
Thread Tools Display Modes
  #1  
Old May 11th, 2004, 03:47 PM
TIM
external usenet poster
 
Posts: n/a
Default excel dos txt save

I need to save a sheet in dos .txt format but when I save
it excel put " quotes" on each side of the first colum.
Does anyone no how to get rid of the " "
thanks
  #2  
Old May 11th, 2004, 04:31 PM
Mark Graesser
external usenet poster
 
Posts: n/a
Default excel dos txt save


  #3  
Old May 11th, 2004, 04:41 PM
Mark Graesser
external usenet poster
 
Posts: n/a
Default excel dos txt save

Hi Tim,
Maybe I should type something before I send.

I haven't been able to duplicate this problem in Excel 97.

However, You could open the .txt file in WORD and the use EditReplace. Enter " for the Find What, and leave the Replace With field empty.


Good Luck,
Mark Graesser

Boston MA

----- TIM wrote: -----

I need to save a sheet in dos .txt format but when I save
it excel put " quotes" on each side of the first colum.
Does anyone no how to get rid of the " "
thanks

  #4  
Old May 11th, 2004, 09:03 PM
Trevor
external usenet poster
 
Posts: n/a
Default excel dos txt save

Excel will automatically place the values in " when it is non-numeric data
AND if the value of the field includes either a , or ". Commas are the
indication of the division between a cell, so if a cell's data contains a ,
then " must be added to make sure everything goes in one cell. Therefore, "
inside a cell must be replaced with two quotes.

So, what I always do in this situation is to create a separate column which
contains the following formula:
="~"&A1&"~"
This creates a colunm with your values with a ~ on either side. Then copy
the resulting column, shoose Paste-Special-Values on top of the original
column, and delete your temporary column. Now save the file, open it in a
text editor and replace all occurances of "~ and ~" with blanks, then
replace all "" with " and you'll ahve the file you want.

By the way, if you use this file to load data into a database, you'll need
to leave those extra quotes in there. the database interprets the data the
same way excel does, so it knows what those quotes are for.

"TIM" wrote in message
...
I need to save a sheet in dos .txt format but when I save
it excel put " quotes" on each side of the first colum.
Does anyone no how to get rid of the " "
thanks



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:20 PM.


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