简体   繁体   English

Excel:求和公式,从一个单元格中的值到另一个单元格中的值

[英]Excel: Summation formula, from a value in a cell, to a value in another cell

I have the following summation formula : 我有以下求和公式

http://imagizer.imageshack.us/v2/150x100q90/674/QKWX9O.png

In text: 在文字中:

SUM (k*1.07^n), n=c1 to n=c2 SUM(k * 1.07 ^ n),n = c1至n = c2

k , c1 and c2 are 3 single numbers, specified in respective individual cells. kc1c2是3个单数,分别在各个单元格中指定。

k is a constant, but c1 and c2 should be dynamically changeable. k是一个常数,但是c1c2应该可以动态更改。

Is that possible to do in Excel, and if so, how? 这可以在Excel中完成吗?如果可以,怎么办?


I know it's a fairly simple mathematical concept so I'd be surprised if Excel couldn't do it, but I haven't been able to find the formula myself. 我知道这是一个相当简单的数学概念,所以如果Excel无法做到这一点,我会感到惊讶,但我自己却找不到该公式。 I've tried SUM and SUMIF , but from what I understand, that requires me to fill a whole range of cells each time I want to calculate something. 我已经尝试过SUMSUMIF ,但是据我了解,这要求我每次想计算某些东西时都要填充整个单元格范围。 I've also found some suggestions to use arrays in Excel, which I understand is automatically filling cells - which is at least a little more automated - but I'd rather not fill extra cells, if it's possible. 我还发现了一些在Excel中使用数组的建议,据我了解可以自动填充单元格-至少自动化程度更高-但是,如果可能的话,我宁愿不填充多余的单元格。

As a sidenote, I read Excel's accuracy is bad in high digit numbers, but as long as the first 5 digits are correct, it'll be accurate enough for my purpose. 附带说明一下,我读到Excel的精度在高位数字中不好,但是只要前5位数字正确,就足以达到我的目的。

With k , c 1 , and c 2 in A1, B1 and C1 respectively, use the following formula: 对于A1,B1和C1中的kc 1c 2 ,分别使用以下公式:

=A1*SUMPRODUCT(1.07^ROW(INDIRECT(B1&":"&C1)))

Regards 问候

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM