Skip to main content
Mail a PDF copy of this page to:
(Your email address will not be added to a mailing list)
Show menu Show menu

VCOVAR function


VCOVAR(variable1,variable2[,filter]) returns the covariance of 2 variables. An optional filter can be specified.

Covariance formula$$ covar(x,y) = \frac {1}{n} \sum_{}^{}{ (x-\bar{x})(y-\bar{y}) } $$


This function calculates a statistic on a variable. Be careful when you use this function in cells of the columns that correspond to the variable, because this actually adds a value to the variable which can lead to unexpected and faulty results. You can exclude the cell to avoid this.

Related functions