![]() |
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' |
"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 |
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 |
All times are GMT +1. The time now is 06:55 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com