There is a CSV file that we would like to distribute to our customers; it contains multi-line records (i.e. records with newline characters). Depending on the language settings of the clients, the file may or may not be correctly imported into Excel. Usually we recommend using a file to import, but it seems that there is some error with multi-line entries, so they are "broken" into separate lines (oddly enough, this does not happen when the file is opened directly).
With some languages (for example, in English), csv with a semicolon opens correctly, but not a file with a semicolon. In other languages (for example, in German) csv with a semicolon can open directly, but not with commas.
Import does not help with multiline entries.
Example csv file (2 lines of csv):
A; B; "some
stuff"; C;
1; 2; "another line"; 3;
Correct import (2 lines with multi-line recording):
A B (some
stuff) C
1 2 (another line) 3
Incorrect import (3 lines):
A; B; C; "some
stuff";D;
1; 2; "another line"; 3;
There is another way to intervene - select a column and click "Text to Columns" in the "Data" section. This separates the lines neatly based on the separator, but still does not bypass the newline.
Is it possible to import a csv file so that multi-line recordings are always recorded?
source
share