Apache OpenOffice (AOO) Bugzilla – Issue 59069
Choose number formats on CSV import
Last modified: 2005-12-09 15:32:03 UTC
When I open a csv file with OO.o I need to be able to tell the application that the numbers in the file are formatted with a decimal comma and not a decimal point (or vice versa). Otherwise numbers with the wrong decimal separator are imported as strings. Changing the format of the cells doesn't help because OO.o helpfully puts a ' before the 'string' to stop it turning into a number. The only way work around this problem at present seems to be to change the default language before opening the file.
Hi, your description is not correct ! If you open the csv file you can choose the column type in the csv import dialog to be US-English. Frank
closed wfm
I don't want to choose the column type to be US English. I want it to be a number. OO.o doesn't recognise it as a number because it has a comma not a point as the decimal separator. I'll attach a pruned copy of the file in question. To reproduce the problem: 1. Make sure that your default language uses a decimal point. 2. Open the file. Choose semicolon as the separator. 3. Watch the numbers (in the column headed 'SOLL') turn to strings.
Created attachment 32225 [details] csv file with European formatted numbers
US English has a dot as decimal separator. Choosing this setting converts decimal dots into commas. So this is exactly what you need and what you want. Frank
closed invalid
Please read more carefully. Converting decimal dots into commas is precisely the opposite of what I need.
Perhaps duplicate of issue 49978?
Issue 49978 is indeed essentially the same problem. (Not quite sure why I didn't find it.) Both could be dealt with by replacing the enigmatic 'US English' option with "Number (decimal comma)" if the current default decimal separator is a point and "Number (decimal point)" if the default is comma.
Hi, US-English is for dots imported into comma using locales and Issue 49978 deals with the other way round. So closing as double. Frank *** This issue has been marked as a duplicate of 49978 ***
closed double