MAX 函數

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

會傳回一組數值中的最大值。

語法

MAX (number1,number2...)

數字1,數字2,... 是您要尋找最大值的 1 到 30 個數字。

註解

  • 您可以指定引數為數字、空引數、邏輯值或數字的文字表示法。 若引數為錯誤值或無法轉換成數字的文字,則會產生錯誤。
  • 如果不能忽略邏輯值和文字,請改用 MAXA。
  • 如果引數不包含數字,則 MAX 函數會傳回 0 (零)。

範例

列 1 Col2 Col3 col4 Col5 公式 描述 (結果)
10 7 9 27 2 =MAX ([Col1],[Col2],[Col3],[Col4],[Col5]) 數字中最大的 (27)
10 7 9 27 2 =MAX (Col1],[Col2],[Col3],[Col4],[Col5],30) 數字中最大的 30 (30)