convert cell contents to different data file format

A

adam

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'
 
F

Fredrik Wahlgren

adam said:
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
 
Top