COVAR Function in Excel calculates the covariance of two supplied sets of values.
Covariance is the measure of correlation between two sets of variables. Covariance is calculated using formula
- x and y are the sample means of two sets of values
- N is the number of values.
Syntax of COVAR Function in Excel:
Where the array arguments are numeric values for which you want to calculate the covariance.
Example of COVAR Function in Excel
The Above example calculates the covariance of two arrays with formula
= COVAR (A2:A13,B2:B13)
Which results in value 38.22222222
#N/A Error occurs if the two supplied arrays have different lengths.