Answer by richjhart for Formatting a comma-delimited CSV to force Excel to...
I had issues with Simon's answer if the text in question was too long (due, I think, to a bug in Excel: https://superuser.com/a/776614/1084793). Shane's answer didn't work for me if there was a comma...
View ArticleAnswer by ajabo for Formatting a comma-delimited CSV to force Excel to...
Like many, I have been struggling with the same decisions that Microsoft makes and tried various suggested solutions.For Excel 2007 the following goes:Putting all values in double quotes does NOT...
View ArticleAnswer by hdhondt for Formatting a comma-delimited CSV to force Excel to...
A simple way to force Excel to interpret the date as text is to put a single quote in front of the date, instead of using full quotes, as in:'10/11/2002If you can import the CSV instead of opening it,...
View ArticleAnswer by Shanerk for Formatting a comma-delimited CSV to force Excel to...
The example from Simon did not work for me, and I suspect it is a language difference. In C# here is what my working format string looks like:var linebreak = (i++ == list.Count) ? "" : "\r\n";csv +=...
View ArticleAnswer by DMA57361 for Formatting a comma-delimited CSV to force Excel to...
Using Excel's import functionality allows you to specify the format (auto, text or date) each column should be interpreted as and does not require any modification to the data files.You can find it as...
View ArticleAnswer by Simon E. for Formatting a comma-delimited CSV to force Excel to...
For those that have control over the source data, apparently Excel will auto-detect the format of a CSV field unless the CSV column is in this format:"=""Data Here"""eg...20, 5.5%, "0404 123 351",...
View ArticleFormatting a comma-delimited CSV to force Excel to interpret value as a string
I've been searching around for a while trying to figure out how to output a CSV file in such a way to force Excel to interpret the values as a string and not try to convert them to numbers or...
View Article