如何在Excel中显示图表中的日期? [英] How to show dates in a chart in Excel?

查看:903
本文介绍了如何在Excel中显示图表中的日期?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的日期数据以x轴为格式:11/15(不含年份)。
如何在Excel中的15Nov到29Apr的图表中显示日期?
下图不正确。第一个日期已经结束。

My date data in x axis is in this format: 11/15 (without year). How to show dates in a chart from 15Nov to 29Apr in Excel? Below chart is not correct. The first dates have moved to end.

推荐答案

当您输入月份和日期时,Excel将为您添加一个默认年份(当前年份)。所以15-Nov实际上是在2017年11月25日,也就是2017年4月29日。所以4月29日将在11月15日假定。我知道你想要明年1月15日 - 11月29日 - 4月29日,但是excel不知道你的意思。

Excel will add a default year (current year) for you when you enter just the month and day. so 15-Nov is actually 15-Nov-2017, and 29-Apr will also be 29-Apr-2017. So the 29-Apr will be assumed sooner than 15-Nov. I know you want 15-Nov for previous year and 29-Apr for next year but excel does no know your meaning..

所以,你必须加强您的日期的年份(甚至手动或使用公式)来指定日期的确切顺序,然后使用格式字符串隐藏单元格中的年份,如 mmm / dd

So, you have to add the year part to your dates (even manually or using an formula) to specify exact order of dates and then use a format string to hide year in your cells like as mmm/dd.

这篇关于如何在Excel中显示图表中的日期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆