描述
PRODUCT函数将所有作为参数给出的数字相乘并返回乘积。
如,如果单元格A1和A2包含数字,要将这两个数字相乘,可以使用以下公式
=产品(A1,A2)
这与与(*)数学运算符相乘相同。即
= A1 * A2
当您需要将多个单元格相乘时,PRODUCT功能非常有用。
Example
=产品(A1:A3,C1:C3)
这和
= A1 * A2 * I * 1 * 2 * Ts。
语法
PRODUCT (number1, [number2] ...)
争论
Argument | 描述 | Required/Optional |
---|---|---|
number1 | The first number or range that you want to multiply. | Required |
number2, ... | Additional numbers or ranges that you want to multiply, up to a maximum of 255 arguments. | Optional |
Notes
-
产品功能始终将数字和日期计为数值。但是,文本和逻辑值的处理方式有所不同,具体取决于它们是存储在工作表单元格中的值,还是直接提供给函数的值。
-
下表给出了产品功能计算中包括哪些值,哪些值被忽略或产生错误-
Value Within a Range of Cells | Value Supplied Directly to Function | |
---|---|---|
Numbers | Included | Included |
Dates | Included | Included |
Logical Values | Ignored | Included (True=1; False=0) |
Text Representations of Numbers & Dates | Ignored | Included |
Other Text | Ignored | #VALUE! Error |
Errors | Error | Error |
如果直接提供给Product函数的任何参数都不能解释为数值,则Product Function返回#VALUE!错误。
适用性
Excel 2007,Excel 2010,Excel 2013,Excel 2016
Example
参考链接
https://www.learnfk.com/javascript/advanced-excel-math-trignometric-product-function.html