无涯教程-JavaScript - VARA函数

120 阅读1分钟

描述

VARA函数根据样本估算方差。除数字外,计算中还包括文本和逻辑值,如TRUE和FALSE。

语法

VARA (value1, [value2] ...)

争论

Argument 描述 Required/Optional
value1 1 to 255 value arguments corresponding to a sample of a population. Required
Value2,... Optional

Notes

  • VARA使用以下公式-

    $$\frac {\sum \left(x- \bar {x} \right)^ 2} {\left(n-1 \right)} $$

    其中x是样本均值AVERAGE(值1,值2,…),n是样本量。

  • VARA假定其论点只是总体样本。如果您的数据代表整个总体,则必须使用VARPA计算方差。

  • 争论 can be the following: numbers; names, arrays, or references that contain numbers; text representations of numbers; or logical values, such as TRUE and FALSE, in a reference.

  • 您直接在参数列表中键入的逻辑值和数字的文本表示形式将被计算在内。

  • 争论 that contain TRUE evaluate as 1. 争论 that contain text or FALSE evaluate as 0 (zero).

  • 如果参数是数组或引用,则仅使用该数组或引用中的值。数组或引用中的空单元格和文本值将被忽略。

  • 争论 that are error values or text that cannot be translated into numbers cause errors.

  • 如果不想在引用中包括逻辑值和数字的文本表示作为计算的一部分,请使用VAR函数。

  • 如果提供给函数的数值少于2个,则VARA返回#DIV/0!错误值。

  • 如果直接提供给函数的任何值是无法解释为数字值的文本值,则VARA返回#VALUE!错误值。

适用性

Excel 2007,Excel 2010,Excel 2013,Excel 2016

Example

Vara Function

参考链接

www.learnfk.com/javascript/…