Number format in charts automatically changed to custom (Bug?)

Tobbe

New Member
Joined
Mar 5, 2014
Messages
3
Hey,

I got the following problem in Excel 2010 (Win7): My data is formatted as Number with two decimal places. Now when I create a chart out of this data, a strange thing happens. The number format on the axis (and labels) is always automatically changed to Custom (0.0). So, for example, the value 25.8 in raw data becomes 2.6 in the chart (Screenshot: https://www.dropbox.com/s/8foxzl89fu5f93z/NumberFormatIssue.png)

Do you have any idea what is happening?
 
Last edited:

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Is the default chart a custom template that you saved? Otherwise there's no reason for the format to be anything other General or whatever is in the data range.
 
Upvote 0
I'd guess it is the standard chart, I have never saved any custom template. As I use a corporate computer I am not sure about globally customized settings, though. But it should be standard.

Using 2 or 0 decimal places in the data range works fine, everything else gets messed up. I even tested other formats, and the result is:

1 decimal (origininal problem): 25.8 --> 2.6
3 decimals: 25.800 --> 0.026
4 decimals: 25.8000 --> 0.0026
and so on...

I agree: I cannot imagine a reason for this weird behavior...
 
Upvote 0
Using 2 or 0 decimal places in the data range works fine, everything else gets messed up. I even tested other formats, and the result is:
1 decimal (origininal problem): 25.8 --> 2.6
3 decimals: 25.800 --> 0.026
4 decimals: 25.8000 --> 0.0026
and so on...

Weird. In the first case, the decimal point is moved (like dividing by 10). In the second, it's like the number was divided by 1000. In the third, by 10,000. At first I thought it might have been a comma/period switch like you see in different localizations. But I don't know what could be causing this strange behavior.
 
Upvote 0
Localization was a hint... I am using "." as decimal separator and " " as thousands (not system settings).
If I switch to system settings ("," as decimal separator), everything works fine...

But I still want to use ".", as I paste data ranges from other programs that use "." as separator, to get the right format when pasting...
 
Upvote 0
The only ways to get the period as a decimal separator are through system settings or by overriding them. You can't get it from a number format if some other character is set as the decimal separator.
 
Upvote 0

Forum statistics

Threads
1,215,371
Messages
6,124,529
Members
449,169
Latest member
mm424

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top