Excel公式查找差的绝对值之和 [英] Excel Formulas Find Sum of Abs Value of Differences
本文介绍了Excel公式查找差的绝对值之和的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在行中有数据:
EmployeeName | Score1 | Score2 | Score3 | ... | 得分50 |
---|---|---|---|---|---|
约翰·史密斯 | 100 | 85 | 55 | ... | |
简史密斯 | 80 | 70 | 60 | ... |
我想获取行之间每个差异的绝对值,然后将它们加起来.所以:
I want to take absolute value of each difference between rows, then add them all up. So:
100 - 80 = 20, 85 - 70 = 15, ABS(55-60) = 5. 20 + 15 + 5 = 40.
我开始手动输入公式 = SUM(ABS(B2-B3),ABS(C2-C3),...)
,但必须有一种更有效的方法.
I started to manually type the formula out
=SUM(ABS(B2-B3),ABS(C2-C3),...)
, but there has to be a more efficient way.
谢谢!
推荐答案
是,请使用SUMPRODUCT:
Yes use SUMPRODUCT:
=SUMPRODUCT(ABS(B2:D2-B3:D3))
这篇关于Excel公式查找差的绝对值之和的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文