Here's a CSV (UTF-8 BOM encoding), with some values delimited with quote marks:
AAAAA,BBBBB,CCCCC,DDDDD
"a2",b2,c2,d2
a3,"b3",c3,d3
a4,b4,"c4","d4"
a5,"this, works",c5,d5
"oh, no",b6,c6,d6
When I open this in Excel with the Windows language set to Danish, Excel expects CSVs to be semicolon-separated, so it opens the file as text. But why is it stripping out the quote-marks from the first column values (around "a2"
and "oh, no"
)?
This prevents "Text to columns" working as the comma in "oh, no"
is no longer escaped and the remaining data is pushed over one column.
Giving the file a .txt extension and opening it that way produces the same result.
Can anyone explain what's happening here and ideally how to prevent it?
edit: a simpler example is this text:
"hello" world
hello "world"
"hello world"
Excel will display this as:
hello world
hello "world"
hello world
Get&Transform=>from Text/CSV
). And if you have users for whom this is difficult, you can always use a button to trigger a macro that brings up the select file dialog, and the rest is automated.