Excel Formula for Sigma Equation

前端 未结 2 934
不知归路
不知归路 2021-01-17 07:45

\"enter How to create an excel formula for the above equation?

Eg. N = 10, P = 9.4

相关标签:
2条回答
  • 2021-01-17 08:35

    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.

    0 讨论(0)
  • 2021-01-17 08:36

    Here it is as an excel formula:

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

    0 讨论(0)
提交回复
热议问题