Why is Excel not sorting the X axis











up vote
0
down vote

favorite












I have a number of points where the X value is a number. Excel sees it as a number. But when displaying the chart, it does not sort the X axis.



Why?



enter image description here










share|improve this question


















  • 1




    Excel treates X-values as category names, not numbers. Build scatter chart. Article.
    – Akina
    Nov 18 at 14:34

















up vote
0
down vote

favorite












I have a number of points where the X value is a number. Excel sees it as a number. But when displaying the chart, it does not sort the X axis.



Why?



enter image description here










share|improve this question


















  • 1




    Excel treates X-values as category names, not numbers. Build scatter chart. Article.
    – Akina
    Nov 18 at 14:34















up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have a number of points where the X value is a number. Excel sees it as a number. But when displaying the chart, it does not sort the X axis.



Why?



enter image description here










share|improve this question













I have a number of points where the X value is a number. Excel sees it as a number. But when displaying the chart, it does not sort the X axis.



Why?



enter image description here







microsoft-excel charts






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 18 at 14:33









David Thielen

1609




1609








  • 1




    Excel treates X-values as category names, not numbers. Build scatter chart. Article.
    – Akina
    Nov 18 at 14:34
















  • 1




    Excel treates X-values as category names, not numbers. Build scatter chart. Article.
    – Akina
    Nov 18 at 14:34










1




1




Excel treates X-values as category names, not numbers. Build scatter chart. Article.
– Akina
Nov 18 at 14:34






Excel treates X-values as category names, not numbers. Build scatter chart. Article.
– Akina
Nov 18 at 14:34












1 Answer
1






active

oldest

votes

















up vote
2
down vote



accepted










Odds are you have created a Line Chart. In a line chart, the x axis is equally spaced and points are plotted from left to right in the order the appear the list of data. The line chart will ignore their actual value and relative distance between x values.



line chart



In order for the chart to plot the x position according to the X values, you need to use a scatter plot, and the x values must all be numerical values and not strings. If for some reason you had a bunch of numbers that were formatted as strings, excel will treat the chart as a line chart until all x values are corrected to numerical values.



To convert your chart to a scatter chart, right click on the chart and select Change Chart Type...



Change chart



From the chart type window that appears, first select X Y (Scatter) on the left and then the appropriate style from top on the right, and finally the appropriate option from the bottom right area.



Change Chart 2



Or alternatively you can simply re-select your data and insert a new scatter chart.



enter image description here






share|improve this answer























  • thank you - it's counter intuitive (to me at least) that a line chart with numbers on the X is not a numeric axis.
    – David Thielen
    Nov 18 at 20:10











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1376452%2fwhy-is-excel-not-sorting-the-x-axis%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
2
down vote



accepted










Odds are you have created a Line Chart. In a line chart, the x axis is equally spaced and points are plotted from left to right in the order the appear the list of data. The line chart will ignore their actual value and relative distance between x values.



line chart



In order for the chart to plot the x position according to the X values, you need to use a scatter plot, and the x values must all be numerical values and not strings. If for some reason you had a bunch of numbers that were formatted as strings, excel will treat the chart as a line chart until all x values are corrected to numerical values.



To convert your chart to a scatter chart, right click on the chart and select Change Chart Type...



Change chart



From the chart type window that appears, first select X Y (Scatter) on the left and then the appropriate style from top on the right, and finally the appropriate option from the bottom right area.



Change Chart 2



Or alternatively you can simply re-select your data and insert a new scatter chart.



enter image description here






share|improve this answer























  • thank you - it's counter intuitive (to me at least) that a line chart with numbers on the X is not a numeric axis.
    – David Thielen
    Nov 18 at 20:10















up vote
2
down vote



accepted










Odds are you have created a Line Chart. In a line chart, the x axis is equally spaced and points are plotted from left to right in the order the appear the list of data. The line chart will ignore their actual value and relative distance between x values.



line chart



In order for the chart to plot the x position according to the X values, you need to use a scatter plot, and the x values must all be numerical values and not strings. If for some reason you had a bunch of numbers that were formatted as strings, excel will treat the chart as a line chart until all x values are corrected to numerical values.



To convert your chart to a scatter chart, right click on the chart and select Change Chart Type...



Change chart



From the chart type window that appears, first select X Y (Scatter) on the left and then the appropriate style from top on the right, and finally the appropriate option from the bottom right area.



Change Chart 2



Or alternatively you can simply re-select your data and insert a new scatter chart.



enter image description here






share|improve this answer























  • thank you - it's counter intuitive (to me at least) that a line chart with numbers on the X is not a numeric axis.
    – David Thielen
    Nov 18 at 20:10













up vote
2
down vote



accepted







up vote
2
down vote



accepted






Odds are you have created a Line Chart. In a line chart, the x axis is equally spaced and points are plotted from left to right in the order the appear the list of data. The line chart will ignore their actual value and relative distance between x values.



line chart



In order for the chart to plot the x position according to the X values, you need to use a scatter plot, and the x values must all be numerical values and not strings. If for some reason you had a bunch of numbers that were formatted as strings, excel will treat the chart as a line chart until all x values are corrected to numerical values.



To convert your chart to a scatter chart, right click on the chart and select Change Chart Type...



Change chart



From the chart type window that appears, first select X Y (Scatter) on the left and then the appropriate style from top on the right, and finally the appropriate option from the bottom right area.



Change Chart 2



Or alternatively you can simply re-select your data and insert a new scatter chart.



enter image description here






share|improve this answer














Odds are you have created a Line Chart. In a line chart, the x axis is equally spaced and points are plotted from left to right in the order the appear the list of data. The line chart will ignore their actual value and relative distance between x values.



line chart



In order for the chart to plot the x position according to the X values, you need to use a scatter plot, and the x values must all be numerical values and not strings. If for some reason you had a bunch of numbers that were formatted as strings, excel will treat the chart as a line chart until all x values are corrected to numerical values.



To convert your chart to a scatter chart, right click on the chart and select Change Chart Type...



Change chart



From the chart type window that appears, first select X Y (Scatter) on the left and then the appropriate style from top on the right, and finally the appropriate option from the bottom right area.



Change Chart 2



Or alternatively you can simply re-select your data and insert a new scatter chart.



enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 18 at 18:21









fixer1234

17.3k144281




17.3k144281










answered Nov 18 at 18:02









Forward Ed

415213




415213












  • thank you - it's counter intuitive (to me at least) that a line chart with numbers on the X is not a numeric axis.
    – David Thielen
    Nov 18 at 20:10


















  • thank you - it's counter intuitive (to me at least) that a line chart with numbers on the X is not a numeric axis.
    – David Thielen
    Nov 18 at 20:10
















thank you - it's counter intuitive (to me at least) that a line chart with numbers on the X is not a numeric axis.
– David Thielen
Nov 18 at 20:10




thank you - it's counter intuitive (to me at least) that a line chart with numbers on the X is not a numeric axis.
– David Thielen
Nov 18 at 20:10


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1376452%2fwhy-is-excel-not-sorting-the-x-axis%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Plaza Victoria

In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...