Sigma方程的Excel公式 [英] Excel Formula for Sigma Equation

查看:45
本文介绍了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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆