AVERAGEA 函數

Applies To
SharePoint Server 2019 SharePoint Server 2016 SharePoint Server 2013 SharePoint Server 2013 Enterprise SharePoint Foundation 2010 SharePoint Server 2010 Windows SharePoint Services 3.0

計算引數清單中各值的平均值 (算術平均值)。 與 AVERAGE 函數不同,計算中會包含文字和邏輯值,例如 TRUE 和 FALSE。

語法

AVERAGEA (value1,value2...)

Value1, value2,... 是您想要取平均值的 1 到 30 個引數。

註解

  • 包含文字的引數會評估為 0 (零) 。 空白文字 ("") 會視為 0 (零)。 如果計算的平均值中不能包括文字值,請使用 AVERAGE 函數。
  • 包含 TRUE 的引數會視為 1,包含 FALSE 的引數會視為 0 (零)。

範例

列 1 Col2 Col3 Col4 Col5 Col6 公式 描述 (結果)
10 7 9 2 0 =AVERAGEA ([Col1],[Col2],[Col3],[Col4],[Col5]) 數字的平均值,空引數 (5.6)
10 10 9 2 1 =AVERAGEA ([Col1],[Col2],[Col3],[Col4],[Col6]) 數字的平均值 (6.4)