Can I display daily data in month buckets using only excel's chart formatting?

只愿长相守 提交于 2019-12-22 04:06:20

问题


I have daily sales figures that I'd like to plot on a simple linegraph.

I would like them to be shown in monthly buckets (i.e. if I sold 5€ on Jan 01 and 10€ on Jan 24, I would like to see only one data point for January with 15€ in it).

Please note that I don't want to use any supporting formula/VBA script, I want to do this using only chart formatting.

I tried setting the chart's X-axis type to "date axis" and I chose "months" as the base unit. This almost works, but the line graph ends up being kind of weird. Changing the chart type to histogram doesn't help much either. The individual sales are not "piled up" like I would but, instead, they're hidden one behind the other. Stacked histogram doesn't work either.

Any clue on how I can force excel to bucketize my data using only chart formatting? This can't be that hard...


回答1:


Try creating a pivot chart, then grouping the dates by month (right-click a date in the pivot table, and click "Group by... Month".




回答2:


If you want to group by Years as well - hold down the Ctrl Key whilst you select the Month (both categories will then show up)



来源:https://stackoverflow.com/questions/9775357/can-i-display-daily-data-in-month-buckets-using-only-excels-chart-formatting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!