Difference between revisions of "Documentation/How Tos/Calc: PRODUCT function"
From Apache OpenOffice Wiki
< Documentation | How Tos
(Initial content) |
m |
||
Line 3: | Line 3: | ||
== PRODUCT == | == PRODUCT == | ||
Multiplies all the numbers given as arguments and returns the product. | Multiplies all the numbers given as arguments and returns the product. | ||
− | |||
=== Syntax: === | === Syntax: === | ||
Line 9: | Line 8: | ||
: <tt>'''number1'''</tt> to <tt>'''number30'''</tt> are up to 30 numbers or ranges of numbers whose product is to be calculated. | : <tt>'''number1'''</tt> to <tt>'''number30'''</tt> are up to 30 numbers or ranges of numbers whose product is to be calculated. | ||
: <tt>'''PRODUCT'''</tt> returns <tt>'''number1 * number2 * number3 * ........ '''</tt> | : <tt>'''PRODUCT'''</tt> returns <tt>'''number1 * number2 * number3 * ........ '''</tt> | ||
− | |||
=== Example: === | === Example: === | ||
Line 17: | Line 15: | ||
<tt>'''PRODUCT(A1:A2)'''</tt> | <tt>'''PRODUCT(A1:A2)'''</tt> | ||
: where <tt>'''A1'''</tt> and <tt>'''A2'''</tt> contain <tt>'''3'''</tt> and <tt>'''5'''</tt>, returns <tt>'''15'''</tt> (<tt>'''3 * 5'''</tt>). | : where <tt>'''A1'''</tt> and <tt>'''A2'''</tt> contain <tt>'''3'''</tt> and <tt>'''5'''</tt>, returns <tt>'''15'''</tt> (<tt>'''3 * 5'''</tt>). | ||
− | |||
=== See also: === | === See also: === |
Revision as of 07:04, 2 March 2008
PRODUCT
Multiplies all the numbers given as arguments and returns the product.
Syntax:
PRODUCT(number1; number2; ... number30)
- number1 to number30 are up to 30 numbers or ranges of numbers whose product is to be calculated.
- PRODUCT returns number1 * number2 * number3 * ........
Example:
PRODUCT(2; 3; 4)
- returns 24 (2 * 3 * 4).
PRODUCT(A1:A2)
- where A1 and A2 contain 3 and 5, returns 15 (3 * 5).