Sigma公式的Excel公式 [英] Excel Formula for Sigma Equation
本文介绍了Sigma公式的Excel公式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何为上述方程式创建Excel公式?
How to create an excel formula for the above equation?
例如. N = 10,P = 9.4
Eg. N = 10, P = 9.4
谢谢!
推荐答案
尝试以下用户定义的函数:
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.
这篇关于Sigma公式的Excel公式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文