Excel 折线图 - 将表格中的 2 个不同变量放在 X 轴上
我无法将数据从表中的数据放到 x 轴上的 2 种不同类型的数据上。如何将表格中的月份和年份数据转换为这样的折线图?
就像图中所示,我希望所有内容都按年份范围(2001-2002)对 x 轴进行分组、2002-2003 年等)。然后在每年范围内,我希望显示该年从八月到五月的每个月的值。并在每年的间隔中再次重复此操作。
我应该在选择数据源上选择什么才能使其看起来像所示的图表?
I'm having trouble putting data on 2 different types of data on my x-axis from the data in my table. How can I get the month and year data from my table to a line graph like this?
Like in the graph shown, I want all to group the x-axis by year range (2001-2002, 2002-2003, etc). And then within each year range, I want the values for each month to show for that year from August to May. And repeat this again for each year interval.
What should I select on select data source to make it look like the graph shown?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在 Excel 中,您可以这样排列数据(我只包含 3 年):
每个单元格看起来空白确实是空白,也就是说,它不包含公式或空格或任何未出现的内容。第二列第二个单元格中的“XXX”是临时的。使用此数据创建折线图,然后删除“XXX”并设置图表格式。
In Excel, you can arrange your data this way (I've only included 3 years):
Every cell that seems blank is really blank, that is, it doesn't contain a formula or a space or anything that doesn't appear. The "XXX" in the second cell of the second column is temporary. Create your line chart with this data, then delete the "XXX" and format the chart.
建议将月份和年份维度合并到单个月份-年份列中,并将值排列在单个列中。然后将月-年放在 x 轴上,将值放在 y 轴上。
Recommend combining the month and year dimensions into a single month-year column and making the values line up in a single column. Then put month-year on the x axis and values on the y axis.