AVERAGE 函數

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 (number1,number2...)

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

註解

  • 引數必須是數字或包含數字的參照。
  • 如果陣列或資料行參照引數包含文字、邏輯值或空白,則這些值將被忽略或傳回 #VALUE! 錯誤值;不過,值為零的引數會包含在內。

範例

列 1 Col2 Col3 Col4 Col5 公式 描述 (結果)
10 7 9 27 2 =AVERAGE ([Col1], [Col2], [Col3], [Col4], [Col5]) 欄數的平均值 (11)
10 7 9 27 2 =AVERAGE ([Col1], [Col2], [Col3], [Col4], [Col5], 5) 欄數和 5 (10) 的平均值