[英]calculate sum of values dynamically using offset in Excel
I have a table that looks like this我有一张看起来像这样的桌子
TOTAL SCORE SPORT Basketball Volleyball Football Hockey
14 SCORE 3 2 6 3
I want to be able to dynamically work out the SUM of the score using the OFFSET function (not excel table)我希望能够使用偏移量 function (不是 excel 表)动态计算得分的总和
=SUM(B2:E2) =总和(B2:E2)
=SUM(OFFSET(B2,0,0,1,5)) =总和(偏移量(B2,0,0,1,5))
both of these formulas are not dynamic as if I add an extra score or 10 new scores it cant calculate the sum of this这两个公式都不是动态的,好像我添加了一个额外的分数或 10 个新分数它无法计算这个的总和
How can I make this dynamic我怎样才能使这个动态
=SUM(OFFSET(B2,COUNTA(2:2),0)) =SUM(偏移量(B2,COUNTA(2:2),0))
THIS works however is there a more efficient way of doing this?这有效但是有没有更有效的方法来做到这一点?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.