Opening a CSV file

hsmckee

New Member
Joined
Apr 28, 2009
Messages
10
When I open a CSV file in Excel, all of the data is being placed in to one cell, with quotation marks around each value.

What settings do I need to change to have the file open correctly?
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
i take it from the file description of CSV that the values are separated by a comma.

if this is the case then you need to change the default separator within windows to a comma or whatever the field separator is within your file, as follows

goto your windows control panel > Regional Options > Numbers Tab > List Separator and change this character

Excel will then open CSV and place in columns
 
Upvote 0
Hi Everybody, i am new here :rofl: (not so new to excel itself)...


Any ID on how to change the delimitter from within excel-VBA ?

I think that it should be checked-out before trying to import csv's to get the right results (some csv's can be downloaded with other delimitters than ",") If one can set whatever value for the delimitter then you can use whatever is needed to download a csv in the right way)

Kind of like this:
If IsCsvSeparator <> "," then ChangeCsvSeparator(",")

Where GlobalVar WasCsvSeparator grabs the delimitter-value at startup

And where functions
IsCsvSeparator checks the current value
ChangeCsvSeparator change the delimitter to "whatever-needed-char" or restores the old one)

AnyOne? :rolleyes:
 
Upvote 0

Forum statistics

Threads
1,223,240
Messages
6,170,951
Members
452,368
Latest member
jayp2104

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top