Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
adam
 
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   Report Post  
Fredrik Wahlgren
 
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   Report Post  
Dave Peterson
 
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
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM
inserting data from a row to a cell, when the row number is specified by a formula in a cell [email protected] New Users to Excel 2 January 6th 05 07:18 AM
Automatic cell increment with data from sheet 1 to sheet 2 Big G Excel Worksheet Functions 2 December 20th 04 05:59 PM
Cell contents vs. Formula contents Sarah Excel Discussion (Misc queries) 3 December 15th 04 06:02 PM
Display actual contents of cell xmasbob Excel Discussion (Misc queries) 1 December 6th 04 05:09 PM


All times are GMT +1. The time now is 08:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"