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 » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

convert cell contents to different data file format



 
 
Thread Tools Display Modes
  #1  
Old April 10th, 2005, 06:45 PM
adam
external usenet poster
 
Posts: n/a
Default convert cell contents to different data file format

How do I change my comma delimited file format to ASCII with each cell's text
content bracketed in single quotes?

eg: apple,banana,strawberry - 'apple','banana','strawberry'
  #2  
Old April 10th, 2005, 08:00 PM
Fredrik Wahlgren
external usenet poster
 
Posts: n/a
Default


"adam" wrote in message
...
How do I change my comma delimited file format to ASCII with each cell's

text
content bracketed in single quotes?

eg: apple,banana,strawberry - 'apple','banana','strawberry'


I assume the data comes from Excel. The easiest way is to make sure the data
appears as you want when you create the file. Assuming that apple is in
Sheet1, cell A1, enter ="'"&Sheet1!A1&"'" in some other worksheet and so on,
Then save as csv.

Another option, if you have something better than notepad, you should be
able to do this in two steps
1) Replace , with ','
2) replace newline with 'newline'

Maybe this editor can find newline characters http://www.textpad.com/

/Fredrik



  #3  
Old April 10th, 2005, 08:39 PM
Dave Peterson
external usenet poster
 
Posts: n/a
Default

Take a look at Earl Kiosterud's Text Write program:
www.smokeylake.com/excel
(or directly: http://www.smokeylake.com/excel/text_write_program.htm)

(Your file is already in excel, right?)

His program has lots of options.

adam wrote:

How do I change my comma delimited file format to ASCII with each cell's text
content bracketed in single quotes?

eg: apple,banana,strawberry - 'apple','banana','strawberry'


--

Dave Peterson
 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
File name equal cell contents -tinka General Discussion 14 June 17th, 2008 06:46 PM
share a database jwb General Discussion 11 April 4th, 2005 09:14 PM
How do I copy data from a cell in one file to another? acraig New Users 1 February 15th, 2005 03:09 PM
GET.CELL Biff Worksheet Functions 2 November 24th, 2004 07:16 PM
You do not have exclusive access... ERROR Robin General Discussion 1 July 6th, 2004 01:18 AM


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