ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Why Saving a file to a CSV, Excel does not put text into Quotes? (https://www.excelbanter.com/excel-discussion-misc-queries/127867-why-saving-file-csv-excel-does-not-put-text-into-quotes.html)

Paul Bytes

Why Saving a file to a CSV, Excel does not put text into Quotes?
 
I have 300 records in excel, and when I save as a CSV file, it does not put "
" around TEXT fields. i.e. CSV File
Phone # customer name address 1
5556570987,John, Smith Attorney,124 Main Street
------------- Should Be ---------------
5556570987,"John, Smith Attorney","124 Main Street"
I need a Field Delimiter of " and a field seperator of ,


Earl Kiosterud

Why Saving a file to a CSV, Excel does not put text into Quotes?
 
Paul,

Quotes, aka text qualifiers around these here parts, are really only
specified if the data contains a field delimiter (comma), or a text
qualifier character (quote mark). Otherwise they're not necessary. If
you're sure you need them, use the Text Write Program at
http://www.smokeylake.com/excel/text_write_program.htm. There's an option
to force quotes around all fields. I think it puts them around numeric
fields also.
--
Earl Kiosterud
www.smokeylake.com
-----------------------------------------------------------------------
"Paul Bytes" wrote in message
...
I have 300 records in excel, and when I save as a CSV file, it does not put
"
" around TEXT fields. i.e. CSV File
Phone # customer name address 1
5556570987,John, Smith Attorney,124 Main Street
------------- Should Be ---------------
5556570987,"John, Smith Attorney","124 Main Street"
I need a Field Delimiter of " and a field seperator of ,





All times are GMT +1. The time now is 02:25 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com