Difference between revisions of "Documentation/How Tos/Calc: HARMEAN function"
From Apache OpenOffice Wiki
< Documentation | How Tos
OOoWikiBot (Talk | contribs) m (Robot: Automated text replacement %s) |
m |
||
Line 16: | Line 16: | ||
<tt>'''HARMEAN(2; 4; 4)'''</tt> | <tt>'''HARMEAN(2; 4; 4)'''</tt> | ||
: returns <tt>'''3'''</tt>, calculated as 3/(1/2 + 1/4 + 1/4). | : returns <tt>'''3'''</tt>, calculated as 3/(1/2 + 1/4 + 1/4). | ||
+ | |||
+ | ===Issues: === | ||
+ | * Calc assumes that logical values are <tt>'''1'''</tt> (<tt>'''TRUE'''</tt>) and <tt>'''0'''</tt> (<tt>'''FALSE'''</tt>). Excel ignores logical values. | ||
{{Documentation/SeeAlso| | {{Documentation/SeeAlso| | ||
Line 25: | Line 28: | ||
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] | * [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] | ||
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} | * [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} | ||
− | |||
− | |||
− |
Revision as of 10:33, 2 March 2009
HARMEAN
Returns the harmonic mean of the arguments.
Syntax:
HARMEAN(number1; number2; ... number30)
- number1 to number30 are up to 30 numbers or ranges containing numbers. Numbers must not be zero.
Example:
HARMEAN(2; 4; 4)
- returns 3, calculated as 3/(1/2 + 1/4 + 1/4).
Issues:
- Calc assumes that logical values are 1 (TRUE) and 0 (FALSE). Excel ignores logical values.