Difference between revisions of "Documentation/How Tos/Calc: VARA function"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Issues:)
Line 128: Line 128:
 
* Calc always evaluates text values as <tt>'''0'''</tt>. The forthcoming international standard ODFF optionally allows numerical text to be converted to number form. Portability between ODFF compliant spreadsheets may therefore be an issue.
 
* Calc always evaluates text values as <tt>'''0'''</tt>. The forthcoming international standard ODFF optionally allows numerical text to be converted to number form. Portability between ODFF compliant spreadsheets may therefore be an issue.
  
* Text given as a parameter fails: <tt>'''VARA("red";1;2)'''</tt> returns Err:504 ([http://www.openoffice.org/issues/show_bug.cgi?id=87855 issue 87855], target OOo3.0).
+
* <s>Text given as a parameter fails: <tt>'''VARA("red";1;2)'''</tt> returns Err:504</s> ([https://bz.apache.org/ooo/show_bug.cgi?id=87855 issue 87855], FIXED).
  
 
{{SeeAlso|EN|
 
{{SeeAlso|EN|

Revision as of 15:25, 25 January 2024


VARA

Returns the sample variance (allowing text and logical values).

Syntax:

VARA(number1; number2; ... number30)

number1 to number30 are up to 30 numbers or ranges containing numbers. Logical values and text may also be included.
VARA returns the standard deviation where number1 to number30 are a sample of the entire population.
Logical values are regarded as 1 (TRUE) and 0 (FALSE).
Text values are always regarded as zero.
With N values in the sample, the calculation formula is:
Calc sample var formula.png.

Example:

VARA(2; 6; 4)

returns 4.

VARA(B1:B3)

where cells B1, B2, B3 contain red, TRUE, and 2 returns 1, the variance of 0, 1 and 2.

Issues:

  • Calc always evaluates text values as 0. The forthcoming international standard ODFF optionally allows numerical text to be converted to number form. Portability between ODFF compliant spreadsheets may therefore be an issue.
  • Text given as a parameter fails: VARA("red";1;2) returns Err:504 (issue 87855, FIXED).



See Also
Retrieved from "https://wiki.openoffice.org/w/index.php?title=Documentation/How_Tos/Calc:_VARA_function&oldid=258750"
Views
Personal tools
Navigation
Tools