12-17-2014 04:55 PM
@altenbach wrote:
@RavensFan wrote:
MICROSOFT YOU IDIOTS. CSV=COMMA SEPARATED VALUE. RECOGNIZE THE COMMA AS A SEPARATOR!
Well, in countries with comma as decimal seperator, a comma will not work as field separator. There is no good standard, but as Matt said, using a semicolon as field delimiter sometimes works. (see also this disucssion)
Instead of using csv files, I would recommend to use the default tab delimiter and save the file as *.txt. Excel will have no problem opening it.
True, but that is a problem with using CSV files in those countries. You can't use a value separator that also is the same character as your decimal separator.
The problem is once you accept the terminology that CSV stands for "comma separated values", and Microsoft understands that CSV extensions mean comma separated values enough to be able to open it as a text file, yet Microsoft doesn't pay attention to that when importing the text file. And I have yet to find a setting in Excel that let's you define a comma as a default setting to separate values when importing CSV files which would work fine for those of us in the US, or other English-speaking, or other non-European countries.
For countries that use commas as decimal separators, then they should not be using CSV files or even giving them the extension of CSV.
12-17-2014 05:15 PM
This worked.
On my other (originally English) laptop, commas worked fine.
On this (French, then English converted) laptop, semicolon works. Comma doesnt work. Tried many things. Q_Q
Thanks all
12-18-2014 08:19 AM
@dan190 wrote:
This worked.
On my other (originally English) laptop, commas worked fine.
On this (French, then English converted) laptop, semicolon works. Comma doesnt work. Tried many things. Q_Q
Thanks all
This is one of the reasons I had the english versions of Windows 7 and MS Office installed. My collegues with the french versions have the same issue, they have to use Text to Columns under the Data menu or as also said use semicolon as separator. Altenbach solution is also interesting but the user still has to right-clic and select open with Excel. I agree with Raven's Fan that when you use the .csv extension Excel should use the comma in the file as separator.
Ben64
12-18-2014 10:43 AM - edited 12-18-2014 10:47 AM
Excel is relatively forgiving and will try to open anything as long as the file has an extension that is configured to be opened by excel. What you often see here in the forum is that users write a tab delimited text file, but give it an *.xls extension. This works fine.
The main problem with that is that some users think that it acutally IS an excel file, which it isn't. So if they would open it in excel and then save it as a real excel file, they would not be able to open it in LabVIEW later (at least not in the expected way)..