Windows 7, system locale is UK. Excel 2010 everything is English but...
Open Excel 2010, create a blank workbook
Select cell A1
Home tab, Number group, dropdown the Number format options
Select the bottom option, i.e. 'More number...'
Select Category Special and do nothing other than note that the Locale is English (U.K.)
Select Category 'Custom'
Select a Type say 0 (but I've tried several, it doesn't seem to mater which one you choose) and edit it to 000, i.e. I want numbers in cell A1 that are less than 100 to be preceded with leading one/two zeros
OK out of the dialog
The Number format dropdown then says 'Special' and when the dropdown is selected the date options are shown in Chinese. When I click on 'More number...' the left hand pane of the dialog box has 'Special' selected and on the right the Type: are all in Chinese and the Locale (location): is set to Chinese (Taiwan).
Once the locale is messed up like this I don't seem to be able to get to the Custom options to default to English UK
Ken
creating custom format appears to change locale
-
- Panoramic Lounger
- Posts: 8176
- Joined: 25 Jan 2010, 09:09
- Location: retirement
-
- gamma jay
- Posts: 25455
- Joined: 17 Mar 2010, 17:33
- Location: Cape Town
Re: creating custom format appears to change locale
Does the same in Excel 2013 ??
Any I was originally on South Africa Locale
Any I was originally on South Africa Locale
You do not have the required permissions to view the files attached to this post.
Regards,
Rudi
If your absence does not affect them, your presence didn't matter.
Rudi
If your absence does not affect them, your presence didn't matter.
-
- gamma jay
- Posts: 25455
- Joined: 17 Mar 2010, 17:33
- Location: Cape Town
Re: creating custom format appears to change locale
It seems as if the 000 format is a match to what Excel uses for one of its Chinese formats.
If you type 00000 then you will notice that Excel changes to an American locale since 5 zeros is part of their custom formats.
If you type 00000 then you will notice that Excel changes to an American locale since 5 zeros is part of their custom formats.
Regards,
Rudi
If your absence does not affect them, your presence didn't matter.
Rudi
If your absence does not affect them, your presence didn't matter.
-
- Panoramic Lounger
- Posts: 8176
- Joined: 25 Jan 2010, 09:09
- Location: retirement
Re: creating custom format appears to change locale
Yes, that sounds from a geeky coder's perspective 'logical' but not from a real world user point of view.
Oh well, think this takes the bizarre Excel thing counter to #21587458
Ken
Oh well, think this takes the bizarre Excel thing counter to #21587458
Ken
-
- gamma jay
- Posts: 25455
- Joined: 17 Mar 2010, 17:33
- Location: Cape Town
Re: creating custom format appears to change locale
It is a bit of a "buggy" scenario me thinks... It's certainly something that should be cleared up by Microsoft!!
Regards,
Rudi
If your absence does not affect them, your presence didn't matter.
Rudi
If your absence does not affect them, your presence didn't matter.
-
- Panoramic Lounger
- Posts: 8176
- Joined: 25 Jan 2010, 09:09
- Location: retirement
Re: creating custom format appears to change locale
OK, armed with your deductions, further Googling suggested a workaround. I've tested it and it works.
You need to add an explicit locale requirement to the type. In my case this means that to format a cell to 000 with a UK locale then the custom type that I must define is [$-809]000
A list of magic numbers for other locales is here:
http://office.microsoft.com/en-gb/excel ... 34635.aspx
Ken
You need to add an explicit locale requirement to the type. In my case this means that to format a cell to 000 with a UK locale then the custom type that I must define is [$-809]000
A list of magic numbers for other locales is here:
http://office.microsoft.com/en-gb/excel ... 34635.aspx
Ken
-
- gamma jay
- Posts: 25455
- Joined: 17 Mar 2010, 17:33
- Location: Cape Town
Re: creating custom format appears to change locale
Excellent...
South Africa locale format will be this: [$-1C09]000
South Africa locale format will be this: [$-1C09]000
Regards,
Rudi
If your absence does not affect them, your presence didn't matter.
Rudi
If your absence does not affect them, your presence didn't matter.
-
- Panoramic Lounger
- Posts: 8176
- Joined: 25 Jan 2010, 09:09
- Location: retirement
Re: creating custom format appears to change locale
What a team! The Lounge is greater than the sum of its parts
or was it the blind leading the blind?
Ken
or was it the blind leading the blind?
Ken
Last edited by stuck on 08 Aug 2014, 11:28, edited 1 time in total.
-
- gamma jay
- Posts: 25455
- Joined: 17 Mar 2010, 17:33
- Location: Cape Town
Re: creating custom format appears to change locale
The latter....BUT a miracle happened and now we can see...
Regards,
Rudi
If your absence does not affect them, your presence didn't matter.
Rudi
If your absence does not affect them, your presence didn't matter.
-
- 5StarLounger
- Posts: 817
- Joined: 24 Jan 2010, 15:56
Re: creating custom format appears to change locale
Does it actually make any difference what locale is showing?
Regards,
Rory
Rory
-
- Administrator
- Posts: 78474
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: creating custom format appears to change locale
It's not serious, of course, but it's annoying to have the Special number formats displayed in a script most of us can't read even when you select a different cell:
You have to select your own language each time...
You have to select your own language each time...
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans
Hans
-
- Panoramic Lounger
- Posts: 8176
- Joined: 25 Jan 2010, 09:09
- Location: retirement
Re: creating custom format appears to change locale
Also, I have a suspicion that the odd formatting was causing some instability in my workbook. However, I can't prove anything and the rest of the workbook is quite complicated and involves some ropey VBA I wrote ages ago.
Ken
Ken
-
- Microsoft MVP
- Posts: 656
- Joined: 24 Jan 2010, 17:51
- Status: Microsoft MVP
- Location: Weert, The Netherlands
Re: creating custom format appears to change locale
Odd, sounds like a bug to me.
It reproduces in 2003 too, so I expect this has been in Excel for a long time.
It reproduces in 2003 too, so I expect this has been in Excel for a long time.