Excel Formula for Sigma Equation

前端 未结 2 935
不知归路
不知归路 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.

提交回复
热议问题