我想在Excel中使用数字格式的周数,特别是在XY图中。
内置函数WEEKNUM()可用于从日期中提取周数。有了这些周数,我可以用两种不同的方式进行:
为了说明,请参阅这两个图表。图表显示了项目计划的跟踪,即计划与实际计划。第一张图表是一年中某个地方的正确图表;第二张图表或多或少是相同的图表跨越年末。
Correct chart, in the midst of a year
Chart showing problem at year's end
现在我被卡住了。我首选的路线是在Excel中为通用数字格式化方法添加数字格式。例如。类似于能够使用yyyy多年和ddd几天,我想用ww作为周数。
我怎样才能做到这一点?
答案 0 :(得分:0)
Not certain I'm understanding the question fully, but if you're wanting to ensure the end result is treated as a number you could use =Text(WEEKNUM(A1), "#") which would convert it to a numeric value.
For the chart, sounds like you could use the axis options (right click on the axis labels >> Format Axis). There are multiple options that would allow you to change how the labels are displayed.