convert cell contents to different data file format

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top