Excel教程:忽略错误值计算生产线平均值
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><a style="color: black;"><span style="color: black;"><img src="https://mmbiz.qpic.cn/mmbiz_png/k6kCsib3eJMzKkzxD9QPInoAkOJIExjv4L28eNMYvYSNuvFAB6DbAhtiaaK7ZicTcOiaNNPpJgFH8vkZllQYm6JqLA/640?wx_fmt=png&tp=webp&wxfrom=5&wx_lazy=1&wx_co=1" style="width: 50%; margin-bottom: 20px;"></span></a></p><span style="color: black;"><strong style="color: blue;"><span style="color: black;">↑ </span></strong><strong style="color: blue;"><span style="color: black;">点击<span style="color: black;">照片</span></span></strong><span style="color: black;">查看 Excel数据分析可视化看板课程</span><strong style="color: blue;"><span style="color: black;"> ↑</span></strong></span><span style="color: black;">咱们<span style="color: black;">每日</span>分享的Excel教程案例,<span style="color: black;">所有</span><span style="color: black;">源自</span>于学员们的<span style="color: black;">实质</span>工作问题。<span style="color: black;">倘若</span>你工作中<span style="color: black;">亦</span>遇到Excel问题,需要和<span style="color: black;">大众</span>交流,<span style="color: black;">能够</span>加入QQ群:598303778</span><span style="color: black;">下面的数据,是某工厂多条生产线的产量计算表。<span style="color: black;">每日</span>的生产线不固定,有可能是几条生产线,<span style="color: black;">亦</span>有可能是几十条生产线,<span style="color: black;">例如</span>GB3生产线停工,<span style="color: black;">那样</span>良品数、不良数、负荷时间均为0,<span style="color: black;">因此</span>出来高就会是一个错误值,这个错误值将影响到<span style="color: black;">咱们</span>最后的平均值统计。</span><img src="https://mmbiz.qpic.cn/mmbiz_jpg/k6kCsib3eJMwvURtZcp1UXJjA7Lqzk9XoaXCtUsbaUazVaHUP05EePYcKcGYnf3lQgsAYMdibV1yZ13UmmaopJmA/640?wx_fmt=jpeg&tp=webp&wxfrom=5&wx_lazy=1&wx_co=1" style="width: 50%; margin-bottom: 20px;"><span style="color: black;">在C18单元格<span style="color: black;">运用</span>公式计算出当天正常生产线的平均值,公式为数组公式,需要按CTRL+shift+回车结束输入。公式为:</span><span style="color: black;">=SUMPRODUCT(IFERROR(C2:C17,0)*(B2:B17="出来高"))/COUNTIFS(B2:B17,"出来高",C2:C17,">=0")</span><img src="https://mmbiz.qpic.cn/mmbiz_gif/k6kCsib3eJMwvURtZcp1UXJjA7Lqzk9XoEcJqicBMCaqT3QzL6oraqrcIPzDUTPHfBRWqUVWxaUFuzribG6BVHG8Q/640?wx_fmt=gif&tp=webp&wxfrom=5&wx_lazy=1" style="width: 50%; margin-bottom: 20px;"><span style="color: black;">
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">公式思路分享:</p>
</span><span style="color: black;">SUMPRODUCT(IFERROR(C2:C17,0)*(B2:B17="出来高")),这部分公式的意思是先计算几条生产线出来高的总和。<span style="color: black;">由于</span>有错误值DIV/0存在,<span style="color: black;">因此</span>增加IFERROR函数进行预处理。</span><span style="color: black;">COUNTIFS(B2:B17,"出来高",C2:C17, ">=0"),这部分公式计算有多少条正常生产线在生产。<span style="color: black;">一样</span>是<span style="color: black;">由于</span>有错误值DIV/0存在,<span style="color: black;">因此</span>需要加">=0",<span style="color: black;">或</span>是“<9E307”都<span style="color: black;">能够</span>。</span><span style="color: black;">在咱们部落窝教育的Excel课程里面,SUMPRODUCT、COUNTIFS、IFERROR这些工作经常<span style="color: black;">运用</span>到的函数,都有<span style="color: black;">仔细</span>讲解,<span style="color: black;">大众</span><span style="color: black;">倘若</span>忘记了,<span style="color: black;">能够</span>随时去翻阅课程回顾哈。</span><strong style="color: blue;"><span style="color: black;">↑ 点击观看Excel视频 ↑</span></strong>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">最后,欢迎<span style="color: black;">大众</span>加入<span style="color: black;">咱们</span>的<strong style="color: blue;">《Excel起步训练营》</strong>,和雅雯<span style="color: black;">一块</span>学习。<strong style="color: blue;"><span style="color: black;">微X</span>群互动答疑、视频课程永久观看、配套练习课件、课程笔记讲义</strong>,能<span style="color: black;">帮忙</span>伙伴们<span style="color: black;">火速</span><span style="color: black;">提高</span>自己的Excel技能。扫下面二维码加入,等你!</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://mmbiz.qpic.cn/mmbiz_jpg/k6kCsib3eJMydFQicdXnkCNOdmVYE6tLF5Ug8VjUBE08jPvLczYNzicjlPGUHfGT7ggtXksyCuR7jUSOSrBOq3byg/640?wx_fmt=jpeg&tp=webp&wxfrom=5&wx_lazy=1&wx_co=1" style="width: 50%; margin-bottom: 20px;"></p>
楼主听话,多发外链好处多,快到碗里来!外链论坛 http://www.fok120.com/
页:
[1]