Difference between revisions of "Documentation/How Tos/Calc: AVERAGE function"
From Apache OpenOffice Wiki
< Documentation | How Tos
OOoWikiBot (Talk | contribs) m (Robot: Automated text replacement %s) |
m |
||
Line 16: | Line 16: | ||
<tt>'''AVERAGE(B1:B3)'''</tt> | <tt>'''AVERAGE(B1:B3)'''</tt> | ||
: where cells <tt>'''B1'''</tt>, <tt>'''B2'''</tt>, <tt>'''B3'''</tt> contain <tt>'''1'''</tt>, <tt>'''3'''</tt>, and <tt>'''apple'''</tt> returns <tt>'''2'''</tt>, the average of <tt>'''1'''</tt> and <tt>'''3'''</tt>. Text is ignored. | : where cells <tt>'''B1'''</tt>, <tt>'''B2'''</tt>, <tt>'''B3'''</tt> contain <tt>'''1'''</tt>, <tt>'''3'''</tt>, and <tt>'''apple'''</tt> returns <tt>'''2'''</tt>, the average of <tt>'''1'''</tt> and <tt>'''3'''</tt>. Text is ignored. | ||
+ | |||
+ | ===Issues: === | ||
+ | * Calc assumes that * [[Documentation/How_Tos/Calc: Logical functions#Logical values overview|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 33: | Line 37: | ||
* [[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 09:18, 2 March 2009
AVERAGE
Returns the average of the arguments, ignoring text.
Syntax:
AVERAGE(number1; number2; ... number30)
- number1 to number30 are up to 30 numbers or ranges containing numbers.
Example:
AVERAGE(2; 6; 4)
- returns 4, the average of the three numbers in the list.
AVERAGE(B1:B3)
- where cells B1, B2, B3 contain 1, 3, and apple returns 2, the average of 1 and 3. Text is ignored.
Issues:
- Calc assumes that * logical values are 1 (TRUE) and 0 (FALSE). Excel ignores logical values.