本文选自excel天天练
如下图,表中是每天的价格,现在想要计算一下最近的平均价格,比如,计算当前日期前后10天的价格,怎么做呢?
解决方法
今天我们学习一个新函数AVERAGEIFS,这是一个多条件平均值函数,应该是从Office2013开始有的一个函数,正好解决今天这个问题。
在D2单元格输入公式:=AVERAGEIFS(C:C,B:B,">="&(B2-10),B:B,"<="&(B2+10)),并向下复制,就得到了结果。
特别声明:以上内容(如有图片或视频亦包括在内)为自媒体平台“网易号”用户上传并发布,本平台仅提供信息存储服务。
Notice: The content above (including the pictures and videos if any) is uploaded and posted by a user of NetEase Hao, which is a social media platform and only provides information storage services.