描述

SUM函数可添加值。

语法

SUM (number1, [number2]...)

争论

Argument 描述 Required/Optional
number1 The first number you want to add. The number can be a value, a cell reference, or a cell range. Required
number2, … You can specify up to 255 additional numbers. Optional

Notes

  • SUM函数始终将数字和日期计为数值。

  • 但是,文本表示形式和逻辑值的处理方式有所不同,具体取决于它们是存储在工作表单元格中的值,还是直接提供给函数的值。有关详细信息,请参见下表-

Value Within a Range of Cells Value Supplied Directly to Function
Numbers 已包含 已包含
Dates 已包含 已包含
Logical Values Ignored

已包含

(正确= 1;错误= 0)

Text Representations of Numbers & Dates Ignored 已包含
Other Text Ignored 已包含
Errors Error Error

如果直接提供给SUM函数的任何数字参数不能解释为数值,则SUM返回#VALUE!错误。

适用性

Excel 2007,Excel 2010,Excel 2013,Excel 2016

Example

SUM Function

参考链接

https://www.learnfk.com/javascript/advanced-excel-math-trignometric-sum-function.html