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 |
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
这一章《JavaScript - SUM函数》你学到了什么?在下面做个笔记吧!做站不易,你的分享是对我们最大的支持