Excel-取每月数据的平均值 [英] Excel - Take Average of Monthly Data
问题描述
我有一个用于商品定价的历史数据集.在整个数据集中,数据开始输入特定日期的价格,而不是整个月的平均值.为了保持每月只有平均价格的流量.
I have a historical data set for commodity pricing. Throughout the data set, the data starts inputting prices on specific days, rather than the average of the entire month. In order to keep the flow of having only the average pricing for the months.
在最佳情况下,我将使用Averageif函数,但是每个月的数据显示的天数并不一致.
In the best case scenario, I would use an Averageif function, however, the data for each month doesn't display a consistent amount of days.
如何自动执行此过程:如果月份与上一行相同但与下一行不同,请计算^行的平均值,直到您达到下个月为止.
How can I automate this the process: If the month is the same as the previous row and different than the next row, calculate the average of the ^ rows until you hit the next month.
这是我的意思的简单显示:
Here's a simple display of what I mean: