I created a CSV file with lines like this:
1.000.000,00;2.000.000,00;3.000.000,00;4.000.000,00
Then I changed my Regional Settings to Danish. Then I opened the file in
Excel 2007. Being a CSV the file was directly opened by Excel (i.e., no
Text Import Wizard). The data came in perfectly. Excel 2007 SP1.
--
Jim
| Hi
|
| Thanks for the reply.
|
| I have already defined the field as Text but that doesn't work.
|
| We live in Denmark so our Regional Settings in Windows XP is of course set
| to Danish. We use "," and "." different from GB/US. So if you define a
number
| (A million) in Denmark it's: "1.000.000,00" where as in GB/US it's:
| "1,000,000.00"
|
| If we change our Regional Settings to English, import the .CSV file, save
| the file and then change Regional Settings back to Danish everything is
| working perfectly!
|
| It seems like the function to swap "," and "." in Excel 2007 doesn't work
| properly when our Regional Settings are set to Danish.
|
| Hope this makes sense.
|
| /Lasse
|
| "Gary''s Student" wrote:
|
| > Define the field as Text and you should have no problems
| > --
| > Gary''s Student - gsnu200820
| >
| >
| > "Lasse" wrote:
| >
| > > Hi
| > >
| > > I don't quit know how to explain this but I will give it a try
| > >
| > > One of our users want to import a .CSV file to Excel 2007. During the
import
| > > wizard it's possible to change how Excel handles "." and "," (Without
the
| > > quotes) in numbers when importing. It should be possible to swap them
around,
| > > it worked in Excel 2003 but not in 2007.
| > >
| > > Any idea?
| > >
| > > /Lasse