COUNT 函數

套用到
SharePoint Server 2019 SharePoint Server 2016 SharePoint Server 2013 SharePoint Server 2013 企業版 SharePoint Foundation 2010 SharePoint Server 2010 Windows SharePoint Services 3.0

計算包含數字的參數數量。

語法

(數值1值2......)

值1,值2,... 是 1 到 30 個參數,可以包含或指向多種不同類型的資料,但只計算數字。

註解

  • 包含數字、日期或數字文字表示的參數會被計數;錯誤值或無法轉換為數字的文字會被忽略。
  • 如果你需要計算邏輯值、文字值或錯誤值,請使用 COUNTA 函式。

範例

第一條 第二條 第三條 第四列 第五大筆 第六條 第七大筆 公式 描述 (結果)
銷售 12/8/2008 19 22.24 TRUE #DIV/0! =計數 ([Col1],[Col2],[Col3],[Col4],[Col5],[Col6],[Col7]) 計算包含清單中數字的參數數量 (3)
19 22.24 TRUE #DIV/0! =計數 ([Col4],[Col5],[Col6],[Col7]) 計算包含清單最後4列中數字的參數數 (2)
銷售 2/8/2008 19 22.24 TRUE #DIV/0! 計數 ([Col1]、[Col2],[Col3],[Col4],[Col5],[Col6],[Col7],2) 計算包含數值的參數數量,以及值 2 (4)