Excel Formula for Sigma Equation

末鹿安然 提交于 2020-01-11 08:05:30

问题


How to create an excel formula for the above equation?

Eg. N = 10, P = 9.4

Thanks!


回答1:


Try the following user defined function:

Public Function Zigma(N As Long, p As Double) As Double
    Dim i As Long
    Zigma = N
    For i = 1 To N - 1
        Zigma = Zigma - (i / N) ^ p
    Next i
End Function

This allows you to avoid array formulas.




回答2:


Here it is as an excel formula:

=A1-SUMPRODUCT((ROW(A1:INDEX(A:A, A1-1))/A1)^A2)



来源:https://stackoverflow.com/questions/51242105/excel-formula-for-sigma-equation

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!