ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Importing CSV files (https://www.excelbanter.com/excel-discussion-misc-queries/94744-importing-csv-files.html)

nnappy

Importing CSV files
 

Hi Everyone,

I'm trying to import a csv file that has a field where users post
comments online. When I import it though, Excel reads through the
comments and creates separate columns whenever a user uses a comma in
their comment which from what I understand isn't supposed to happen
because the comments are enclosed like "....".

I thought that Excel only creates columns when the commas lie outside
two pairs of ", any suggestions??


--
nnappy
------------------------------------------------------------------------
nnappy's Profile: http://www.excelforum.com/member.php...o&userid=35570
View this thread: http://www.excelforum.com/showthread...hreadid=553309


David Biddulph

Importing CSV files
 
"nnappy" wrote in
message ...

Hi Everyone,

I'm trying to import a csv file that has a field where users post
comments online. When I import it though, Excel reads through the
comments and creates separate columns whenever a user uses a comma in
their comment which from what I understand isn't supposed to happen
because the comments are enclosed like "....".

I thought that Excel only creates columns when the commas lie outside
two pairs of ", any suggestions??


Importing the CSV should be OK that way. Are you sure that the double quote
marks in the file are the right characters? [Are you also sure that you
haven't got extra quote characters within the field? If you need a quote
mark within the field, you need a pair of them together, i.e. ""]

It might be worth trying to rename the .csv file as .txt, and then Excel
should allow you to open it through a wizard which lets you specify the
delimiter as a comma and the text qualifier as double quotes. If need be,
copy the quote marks from your txt file to be sure you've got the right ones
in your import.
--
David Biddulph




All times are GMT +1. The time now is 07:18 PM.

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